	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_databuf_prep
_common_databuf_prep:                   ## @common_databuf_prep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rdi)
	jle	LBB0_1
LBB0_5:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, (%r14)
	movq	_APR_EOF@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	16(%rbx), %edx
	movl	24(%rbx), %edi
	leaq	-24(%rbp), %rcx
	movl	$4, %esi
	callq	*32(%rbx)
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_SERF_BUCKET_READ_ERROR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	-24(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_APR_EOF,4,2                    ## @APR_EOF
	.no_dead_strip	_common_databuf_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_databuf_prep
_common_databuf_prep:                   ; @common_databuf_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #8]
	cmp	x8, #1
	b.lt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_APR_STATUS_IS_EOF
	cbz	x0, LBB0_6
; %bb.3:
	str	xzr, [x20]
Lloh2:
	adrp	x8, _APR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APR_EOF@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #24]
	ldr	w2, [x19, #16]
	add	x3, sp, #8
	mov	w1, #4
	blr	x8
	mov	x20, x0
	bl	_SERF_BUCKET_READ_ERROR
	cbnz	x0, LBB0_5
; %bb.7:
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	str	w20, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_APR_EOF,4,2                    ; @APR_EOF
	.no_dead_strip	_common_databuf_prep
.subsections_via_symbols
