	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serf_response_read
_serf_response_read:                    ## @serf_response_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %r14
	movq	%r14, %rsi
	callq	_wait_for_body
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:
	movq	$0, (%r15)
	jmp	LBB0_9
LBB0_4:
	movl	16(%r14), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_serf_bucket_read
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SERF_BUCKET_READ_ERROR
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.7:
	movq	_STATE_TRAILERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_TRAILERS,4,2             ## @STATE_TRAILERS
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_STATE_DONE,4,2                 ## @STATE_DONE
	.no_dead_strip	_serf_response_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serf_response_read
_serf_response_read:                    ; @serf_response_read
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x20, [x0]
	mov	x1, x20
	bl	_wait_for_body
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_APR_STATUS_IS_EOF
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_APR_STATUS_IS_EAGAIN
	cbz	x0, LBB0_5
LBB0_3:
	str	xzr, [x21]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20, #16]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_serf_bucket_read
	mov	x19, x0
	bl	_SERF_BUCKET_READ_ERROR
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	mov	x0, x19
	bl	_APR_STATUS_IS_EOF
	cbz	x0, LBB0_5
; %bb.7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _STATE_TRAILERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_TRAILERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh3:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	b	LBB0_5
LBB0_9:
Lloh6:
	adrp	x8, _STATE_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATE_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_TRAILERS,4,2             ; @STATE_TRAILERS
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_STATE_DONE,4,2                 ; @STATE_DONE
	.no_dead_strip	_serf_response_read
.subsections_via_symbols
