	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_bucket_read
_file_bucket_read:                      ## @file_bucket_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	40(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	8(%rdi), %rax
	movq	_APR_BUCKET_BUFF_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmovlq	%rdx, %rdi
	movq	%rax, -64(%rbp)
	movq	%rdi, (%r15)
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movl	16(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_apr_bucket_alloc
	movq	%rax, %r14
	movq	_APR_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_apr_file_seek
	movq	%rax, %r13
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rax, %r14
	callq	_apr_file_read
	movq	%rax, %r13
	movq	_APR_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%r14), %rax
	movq	%r15, %rax
	je	LBB0_5
## %bb.3:
	cmpq	(%rcx), %r13
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_apr_bucket_free
	jmp	LBB0_10
LBB0_1:
	movq	%r14, %rdi
	callq	_apr_bucket_free
	jmp	LBB0_10
LBB0_5:
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	_apr_bucket_free@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_apr_bucket_heap_make
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	%r12, %rax
	jle	LBB0_8
## %bb.6:
	movq	%rax, %r12
	movq	_APR_EOF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_8
## %bb.7:
	movl	16(%rbx), %esi
	movl	$48, %edi
	callq	_apr_bucket_alloc
	movq	(%r15), %rcx
	addq	-64(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	%r12, (%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%rax)
	movq	_apr_bucket_type_file@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	movq	_apr_bucket_free@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_APR_BUCKET_INSERT_AFTER
	jmp	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_file_bucket_destroy
LBB0_9:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_10:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_BUCKET_BUFF_SIZE,8,3       ## @APR_BUCKET_BUFF_SIZE
	.comm	_APR_SET,4,2                    ## @APR_SET
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ## @APR_EOF
	.comm	_apr_bucket_type_file,4,2       ## @apr_bucket_type_file
	.comm	_APR_FOPEN_XTHREAD,4,2          ## @APR_FOPEN_XTHREAD
	.no_dead_strip	_file_bucket_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_bucket_read
_file_bucket_read:                      ; @file_bucket_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #40]
	ldr	x25, [x22]
	ldp	x26, x8, [x0]
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _APR_BUCKET_BUFF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_BUCKET_BUFF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x26, x8
	csel	x0, x26, x8, lt
	str	x0, [x2]
	str	xzr, [x1]
	ldr	w1, [x20, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_apr_bucket_alloc
	mov	x21, x0
Lloh3:
	adrp	x8, _APR_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x25
	bl	_apr_file_seek
Lloh6:
	adrp	x27, _APR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _APR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x25
	mov	x1, x21
	mov	x2, x23
	bl	_apr_file_read
	mov	x24, x0
	ldr	x8, [x27]
Lloh8:
	adrp	x27, _APR_EOF@GOTPAGE
Lloh9:
	ldr	x27, [x27, _APR_EOF@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x2, [x23]
	sub	x26, x26, x2
Lloh10:
	adrp	x25, _apr_bucket_free@GOTPAGE
Lloh11:
	ldr	x25, [x25, _apr_bucket_free@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	bl	_apr_bucket_heap_make
	cmp	x26, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x8, [x27]
	cmp	x24, x8
	b.eq	LBB0_7
; %bb.4:
	ldr	w1, [x20, #16]
	mov	w0, #48
	bl	_apr_bucket_alloc
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	add	x8, x9, x8
	stp	x26, x8, [x0]
	str	x22, [x0, #40]
Lloh12:
	adrp	x8, _apr_bucket_type_file@GOTPAGE
Lloh13:
	ldr	x8, [x8, _apr_bucket_type_file@GOTPAGEOFF]
	stp	x25, x8, [x0, #24]
	ldr	w8, [x20, #16]
	str	w8, [x0, #16]
	mov	x0, x20
	bl	_APR_BUCKET_INSERT_AFTER
	b	LBB0_8
LBB0_5:
	mov	x24, x0
LBB0_6:
	mov	x0, x21
	bl	_apr_bucket_free
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_file_bucket_destroy
LBB0_8:
	str	x21, [x19]
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_BUCKET_BUFF_SIZE,8,3       ; @APR_BUCKET_BUFF_SIZE
	.comm	_APR_SET,4,2                    ; @APR_SET
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ; @APR_EOF
	.comm	_apr_bucket_type_file,4,2       ; @apr_bucket_type_file
	.comm	_APR_FOPEN_XTHREAD,4,2          ; @APR_FOPEN_XTHREAD
	.no_dead_strip	_file_bucket_read
.subsections_via_symbols
