	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_chunk_skipto
_image_chunk_skipto:                    ## @image_chunk_skipto
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_chunk_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_image_chunks@GOTPCREL(%rip), %rdi
	callq	_TAILQ_LAST
	movq	%rax, %r15
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rcx
	movq	8(%r15), %rax
	movq	_secsz@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.2:
	cqto
	idivq	%rsi
	movq	%rax, %r13
	jmp	LBB0_5
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
LBB0_5:
	addq	%rcx, %r13
LBB0_6:
	xorl	%edi, %edi
	cmpq	%rbx, %r13
	setle	%dil
	callq	_assert
	cmpq	%rbx, %r13
	je	LBB0_22
## %bb.7:
	subq	%r13, %rbx
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_secsz@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r12
	movq	%rax, %rcx
	orq	%r12, %rcx
	shrq	$32, %rcx
	je	LBB0_10
## %bb.8:
	cqto
	idivq	%r12
	cmpq	%rax, %rbx
	jle	LBB0_11
LBB0_9:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %rbx
	jg	LBB0_9
LBB0_11:
	imulq	%rbx, %r12
	testq	%r15, %r15
	je	LBB0_18
## %bb.12:
	movq	16(%r15), %rax
	movq	_CH_TYPE_ZEROES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.13:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_image_chunk_grow
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movq	%rax, %r12
	movq	(%r15), %rcx
	movq	8(%r15), %rax
	movq	(%rbx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_16
## %bb.15:
	cqto
	idivq	%rsi
	movq	%rax, %r13
	jmp	LBB0_17
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
LBB0_17:
	addq	%rcx, %r13
LBB0_18:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r13, (%rbx)
	movq	%r12, 8(%rbx)
	movq	_CH_TYPE_ZEROES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_ch_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_image_chunks@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	_image_nchunks@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_22
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_image_chunks,4,2               ## @image_chunks
	.comm	_chunk_head,4,2                 ## @chunk_head
	.comm	_secsz,8,3                      ## @secsz
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_CH_TYPE_ZEROES,8,3             ## @CH_TYPE_ZEROES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ch_list,4,2                    ## @ch_list
	.comm	_image_nchunks,4,2              ## @image_nchunks
	.no_dead_strip	_image_chunk_skipto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_chunk_skipto
_image_chunk_skipto:                    ; @image_chunk_skipto
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _chunk_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chunk_head@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _image_chunks@GOTPAGE
Lloh4:
	ldr	x0, [x0, _image_chunks@GOTPAGEOFF]
	bl	_TAILQ_LAST
	mov	x19, x0
Lloh5:
	adrp	x22, _secsz@GOTPAGE
Lloh6:
	ldr	x22, [x22, _secsz@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19]
	ldr	x10, [x22]
	sdiv	x9, x9, x10
	add	x21, x9, x8
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	cmp	x21, x20
	cset	w0, le
	bl	_assert
	cmp	x21, x20
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_15
LBB0_5:
Lloh7:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x8]
	ldr	x8, [x22]
	sdiv	x10, x9, x8
	sub	x9, x20, x21
	cmp	x9, x10
	b.le	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _EFBIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mul	x20, x8, x9
Lloh12:
	adrp	x23, _CH_TYPE_ZEROES@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CH_TYPE_ZEROES@GOTPAGEOFF]
	cbz	x19, LBB0_11
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_image_chunk_grow
	cbz	x0, LBB0_15
; %bb.10:
	mov	x20, x0
	ldp	x8, x9, [x19]
	ldr	x10, [x22]
	sdiv	x9, x9, x10
	add	x21, x9, x8
LBB0_11:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.12:
	mov	x19, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	stp	x21, x20, [x19]
	ldr	x8, [x23]
	str	x8, [x19, #16]
Lloh14:
	adrp	x8, _ch_list@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ch_list@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x0, _image_chunks@GOTPAGE
Lloh18:
	ldr	x0, [x0, _image_chunks@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	w0, #0
Lloh19:
	adrp	x8, _image_nchunks@GOTPAGE
Lloh20:
	ldr	x8, [x8, _image_nchunks@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_15
LBB0_13:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_image_chunks,4,2               ; @image_chunks
	.comm	_chunk_head,4,2                 ; @chunk_head
	.comm	_secsz,8,3                      ; @secsz
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_CH_TYPE_ZEROES,8,3             ; @CH_TYPE_ZEROES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ch_list,4,2                    ; @ch_list
	.comm	_image_nchunks,4,2              ; @image_nchunks
	.no_dead_strip	_image_chunk_skipto
.subsections_via_symbols
