	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_chainloops
_check_chainloops:                      ## @check_chainloops
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.1:
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	24(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	$-1, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	addq	$8, %rax
	incl	%r14d
	movl	%r14d, (%rax)
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ebt_next_entry
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rsi,%r12)
	movq	8(%r15), %r13
	movl	(%r15), %r8d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rsi,%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, -4(%r14)
	xorl	%eax, %eax
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	cmpl	%r8d, %eax
	jl	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %ebx
	je	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	cmpl	%r8d, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	shlq	$5, %rax
	movslq	(%rsi,%rax), %rbx
	cmpq	$-1, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rcx
	shlq	$5, %rcx
	movq	24(%rsi,%rcx), %rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi,%rax), %r13
	movl	(%rcx), %r8d
	movl	8(%rsi,%rax), %r14d
	movl	$0, 8(%rsi,%rax)
	movl	%r8d, %eax
	cmpl	%r8d, %r14d
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	(%r13), %rbx
	movl	(%r13,%rbx), %edi
	movq	_EBT_STANDARD_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_ebt_next_entry
	movq	%rax, %r13
	incl	%r14d
	movl	%r14d, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r8d, %eax
	jge	LBB0_11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rax
	addq	$4, %rax
	cmpq	8(%r13), %rax
	ja	LBB0_28
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13,%rbx), %r15d
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	-104(%rbp), %r15                ## 8-byte Folded Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	xorl	%ebx, %ebx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, (%rax)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	incq	%rbx
	addq	$32, %rax
	cmpq	%rbx, %rcx
	jne	LBB0_16
	jmp	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	shlq	$5, %r12
	cmpl	$0, 8(%rax,%r12)
	jne	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, 4(%rax,%r12)
	jne	LBB0_9
	jmp	LBB0_23
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
LBB0_26:
	callq	_BUGPRINT
	movl	$-1, %eax
LBB0_27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_26
LBB0_30:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EBT_STANDARD_TARGET,4,2        ## @EBT_STANDARD_TARGET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Standard target size too big\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad destination\n"

L_.str.2:                               ## @.str.2
	.asciz	"loop\n"

	.no_dead_strip	_check_chainloops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_chainloops
_check_chainloops:                      ; @check_chainloops
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w23, [x0]
	cmp	w23, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x21, x1
	mov	w8, #0
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x24, [x0, #8]
	mov	w9, #1
	lsl	w9, w9, w3
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	mov	w26, w2
	add	x9, x1, #24
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	mov	w19, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w25, #1
	str	w9, [x8]
	mov	x0, x24
	bl	_ebt_next_entry
	mov	w8, #0
	add	x9, x21, x22, lsl #5
	str	x0, [x9, #16]
	ldr	x24, [x28, #8]
	ldr	w23, [x28]
	str	w19, [x9]
	ldr	w9, [x20]
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	orr	w9, w9, w10
	str	w9, [x20]
	mov	x19, x27
	cmp	w8, w23
	b.lt	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmn	w19, #1
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w8, w23
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w19
	add	x8, x21, x8, lsl #5
	ldr	w19, [x8]
	cmn	w19, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x19
	sxtw	x9, w9
	add	x9, x21, x9, lsl #5
	ldr	x9, [x9, #24]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x8, #16]
	ldr	w23, [x9]
	ldr	w25, [x8, #8]
	str	wzr, [x8, #8]
	mov	x8, x23
	cmp	w25, w23
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x20, [x24]
	ldr	w0, [x24, x20]
Lloh0:
	adrp	x8, _EBT_STANDARD_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBT_STANDARD_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_ebt_next_entry
	mov	x24, x0
	add	w8, w25, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w23
	b.ge	LBB0_3
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x24]
	add	x8, x8, #4
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.hi	LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, x20]
	tbnz	w8, #31, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x28, x9, x8
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8]
	cmp	x9, x28
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x27, x27, #1
	add	x8, x8, #32
	cmp	x26, x27
	b.ne	LBB0_17
	b	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w27, w8
	b.eq	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, w27
	add	x20, x21, x22, lsl #5
	mov	x8, x20
	ldr	w9, [x8, #8]!
	cbnz	w9, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20, #4]!
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	tst	w9, w10
	b.ne	LBB0_11
	b	LBB0_2
LBB0_23:
	mov	w0, #0
	b	LBB0_26
LBB0_24:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_25:
	bl	_BUGPRINT
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_25
LBB0_28:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBT_STANDARD_TARGET,4,2        ; @EBT_STANDARD_TARGET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Standard target size too big\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad destination\n"

l_.str.2:                               ; @.str.2
	.asciz	"loop\n"

	.no_dead_strip	_check_chainloops
.subsections_via_symbols
