	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_chunk_find
_image_chunk_find:                      ## @image_chunk_find
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_image_chunk_find.last(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, (%rdi)
	jle	LBB0_3
LBB0_2:
	movq	_image_chunks@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	_ch_list@GOTPCREL(%rip), %r14
	movq	_secsz@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	callq	_TAILQ_NEXT
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rcx
	cmpq	%rbx, %rcx
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rdi), %eax
	cltd
	idivl	(%r15)
	cltq
	addq	%rax, %rcx
	cmpq	%rbx, %rcx
	jle	LBB0_7
## %bb.6:
	movq	%rdi, _image_chunk_find.last(%rip)
	jmp	LBB0_9
LBB0_8:
	xorl	%edi, %edi
LBB0_9:
	movq	%rdi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_image_chunk_find.last,8,3 ## @image_chunk_find.last
	.comm	_image_chunks,4,2               ## @image_chunks
	.comm	_secsz,4,2                      ## @secsz
	.comm	_ch_list,4,2                    ## @ch_list
	.no_dead_strip	_image_chunk_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_chunk_find
_image_chunk_find:                      ; @image_chunk_find
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	adrp	x20, _image_chunk_find.last@PAGE
	ldr	x0, [x20, _image_chunk_find.last@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	cmp	x8, x19
	b.le	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, _image_chunks@GOTPAGE
Lloh1:
	ldr	x0, [x0, _image_chunks@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_8
LBB0_3:
Lloh2:
	adrp	x21, _ch_list@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ch_list@GOTPAGEOFF]
Lloh4:
	adrp	x22, _secsz@GOTPAGE
Lloh5:
	ldr	x22, [x22, _secsz@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21]
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x0, #8]
	ldr	w10, [x22]
	sdiv	w9, w9, w10
	add	x8, x8, w9, sxtw
	cmp	x8, x19
	b.le	LBB0_4
; %bb.7:
	str	x0, [x20, _image_chunk_find.last@PAGEOFF]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_image_chunk_find.last,8,3 ; @image_chunk_find.last
	.comm	_image_chunks,4,2               ; @image_chunks
	.comm	_secsz,4,2                      ; @secsz
	.comm	_ch_list,4,2                    ; @ch_list
	.no_dead_strip	_image_chunk_find
.subsections_via_symbols
