	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consume_chunk
_consume_chunk:                         ## @consume_chunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	incq	%rcx
	movq	%rcx, (%rdi)
	movq	$0, 16(%rdi)
	movq	_READ_DONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_APR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_READ_TERM@GOTPCREL(%rip), %rdx
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rdi)
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	_READ_HEADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdi)
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_DONE,8,3                  ## @READ_DONE
	.comm	_APR_EOF,4,2                    ## @APR_EOF
	.comm	_READ_TERM,8,3                  ## @READ_TERM
	.comm	_READ_HEADER,8,3                ## @READ_HEADER
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.no_dead_strip	_consume_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consume_chunk
_consume_chunk:                         ; @consume_chunk
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	add	x8, x8, #1
	str	x8, [x0]
	str	xzr, [x0, #16]
Lloh0:
	adrp	x9, _READ_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _READ_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _APR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh6:
	adrp	x9, _READ_TERM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _READ_TERM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	str	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _READ_HEADER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _READ_HEADER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x0]
LBB0_5:
Lloh12:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_DONE,8,3                  ; @READ_DONE
	.comm	_APR_EOF,4,2                    ; @APR_EOF
	.comm	_READ_TERM,8,3                  ; @READ_TERM
	.comm	_READ_HEADER,8,3                ; @READ_HEADER
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.no_dead_strip	_consume_chunk
.subsections_via_symbols
