	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_from_connection
_read_from_connection:                  ## @read_from_connection
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	%r14, -56(%rbp)
	cmpq	$0, 72(%rdi)
	je	LBB0_2
## %bb.1:
	movq	$0, 72(%rbx)
	movl	$1, (%rbx)
	movq	24(%rbx), %rax
	movl	$1, (%rax)
LBB0_2:
	movl	64(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_apr_pool_create
	movl	%eax, %r12d
	movq	_APR_SUCCESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_45
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_apr_pool_clear
	leaq	48(%rbx), %r15
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_prepare_conn_streams
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_45
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi
	callq	_apr_pool_clear
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_prepare_conn_streams
	testl	%eax, %eax
	jne	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 56(%rbx)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_handle_async_response
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	jne	LBB0_44
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 40(%r14)
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	leaq	-88(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_serf_bucket_peek
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -60(%rbp)
	je	LBB0_44
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_45
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r14)
	je	LBB0_11
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %esi
	movl	24(%r14), %edx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	*32(%r14)
	movq	%rax, 16(%r14)
	movq	-48(%rbp), %rdi
	callq	_apr_pool_clear
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_handle_response
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_APR_STATUS_IS_ECONNRESET
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_ECONNABORTED
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SERF_ERROR_REQUEST_LOST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	jne	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rdi
	callq	_is_conn_closing
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SERF_ERROR_CLOSING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_45
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	%rax, 40(%rbx)
	movq	%r14, %rdi
	callq	_destroy_request
	movq	40(%rbx), %r14
	movq	%r14, -56(%rbp)
	testq	%r14, %r14
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 32(%rbx)
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	movl	$1, (%rbx)
	movl	$1, (%rax)
	movq	_SERF_ERROR_CLOSING@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	je	LBB0_35
## %bb.37:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	movq	_APR_SUCCESS@GOTPCREL(%rip), %r13
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, %rcx
	jl	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 16(%rbx)
LBB0_40:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_7
LBB0_42:
	movl	$1, (%rbx)
	jmp	LBB0_43
LBB0_8:
	movl	%eax, %r12d
	jmp	LBB0_45
LBB0_22:
	cmpq	$0, 8(%rbx)
	je	LBB0_23
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_reset_connection
	jmp	LBB0_44
LBB0_26:
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_or_data_pending
	testq	%rax, %rax
	je	LBB0_44
## %bb.27:
	cmpq	$0, -56(%rbp)
	jne	LBB0_44
## %bb.28:
	movl	$1, (%rbx)
	movq	24(%rbx), %rax
LBB0_43:
	movl	$1, (%rax)
LBB0_44:
	movl	(%r13), %r12d
LBB0_45:
	movq	-48(%rbp), %rdi
	callq	_apr_pool_destroy
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_SERF_ERROR_REQUEST_LOST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_45
## %bb.24:
	movq	_SERF_ERROR_ABORTED_CONNECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_45
LBB0_35:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_reset_connection
	movl	%r12d, %edi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	je	LBB0_45
## %bb.36:
	movl	(%rax), %r12d
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_SERF_ERROR_REQUEST_LOST,4,2    ## @SERF_ERROR_REQUEST_LOST
	.comm	_SERF_ERROR_ABORTED_CONNECTION,4,2 ## @SERF_ERROR_ABORTED_CONNECTION
	.comm	_SERF_ERROR_CLOSING,4,2         ## @SERF_ERROR_CLOSING
	.no_dead_strip	_read_from_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_from_connection
_read_from_connection:                  ; @read_from_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	ldr	x20, [x0, #40]
	str	x20, [sp, #32]
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #72]
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x19, #24]
	str	w8, [x9]
LBB0_2:
	ldr	w1, [x19, #64]
	add	x0, sp, #40
	bl	_apr_pool_create
	mov	x22, x0
Lloh0:
	adrp	x24, _APR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _APR_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_38
; %bb.3:
	ldr	x0, [sp, #40]
	bl	_apr_pool_clear
	add	x21, x19, #48
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_prepare_conn_streams
	mov	x22, x0
	cbnz	w0, LBB0_38
; %bb.4:
Lloh2:
	adrp	x25, _SERF_ERROR_REQUEST_LOST@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SERF_ERROR_REQUEST_LOST@GOTPAGEOFF]
Lloh4:
	adrp	x26, _SERF_ERROR_CLOSING@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SERF_ERROR_CLOSING@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #40]
	bl	_apr_pool_clear
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_prepare_conn_streams
	cbnz	w0, LBB0_34
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_handle_async_response
	mov	x22, x0
	bl	_APR_STATUS_IS_EAGAIN
	cbnz	x0, LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_5
	b	LBB0_38
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_serf_bucket_peek
	mov	x22, x0
	bl	_APR_STATUS_IS_EOF
	cbnz	x0, LBB0_36
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_APR_STATUS_IS_EAGAIN
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_37
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_APR_STATUS_IS_EAGAIN
	cbnz	x0, LBB0_16
	b	LBB0_38
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #32]
	ldr	w1, [x21]
	ldr	w2, [x20, #24]
	ldr	x3, [sp, #40]
	mov	x0, x20
	blr	x8
	str	x0, [x20, #16]
	ldr	x0, [sp, #40]
	bl	_apr_pool_clear
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x20
	bl	_handle_response
	mov	x22, x0
	bl	_APR_STATUS_IS_ECONNRESET
	cbnz	x0, LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_APR_STATUS_IS_ECONNABORTED
	cbnz	x0, LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_APR_STATUS_IS_EAGAIN
	cbnz	x0, LBB0_39
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #16]
	bl	_is_conn_closing
	mov	x23, x0
	mov	x0, x22
	bl	_APR_STATUS_IS_EOF
	cbnz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	cmp	w23, w8
	b.ne	LBB0_38
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	str	x8, [x19, #40]
	mov	x0, x20
	bl	_destroy_request
	ldr	x20, [x19, #40]
	str	x20, [sp, #32]
	cbnz	x20, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #32]
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	add	x8, x9, #1
	str	x8, [x19, #8]
	str	w27, [x19]
	ldr	x8, [x19, #24]
	str	w27, [x8]
	ldr	w10, [x26]
	cmp	w23, w10
	b.eq	LBB0_43
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x10
	b.lt	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #16]
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x20, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20]
	cbnz	w9, LBB0_5
LBB0_33:
	mov	w9, #1
	str	w9, [x19]
	str	w9, [x8]
	b	LBB0_37
LBB0_34:
	mov	x22, x0
	b	LBB0_38
LBB0_35:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_42
LBB0_36:
	mov	x0, x19
	mov	w1, #1
	bl	_reset_connection
LBB0_37:
	ldr	w22, [x24]
LBB0_38:
	ldr	x0, [sp, #40]
	bl	_apr_pool_destroy
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_39:
	add	x0, sp, #32
	mov	x1, x19
	bl	_request_or_data_pending
	cbz	x0, LBB0_37
; %bb.40:
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_37
; %bb.41:
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x19, #24]
	str	w8, [x9]
	b	LBB0_37
LBB0_42:
	ldr	w8, [x25]
Lloh6:
	adrp	x9, _SERF_ERROR_ABORTED_CONNECTION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SERF_ERROR_ABORTED_CONNECTION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w22, w9, w22, eq
	b	LBB0_38
LBB0_43:
	mov	x0, x19
	mov	w1, #1
	bl	_reset_connection
	mov	x0, x22
	bl	_APR_STATUS_IS_EOF
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w22, w22, w8, eq
	b	LBB0_38
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_SERF_ERROR_REQUEST_LOST,4,2    ; @SERF_ERROR_REQUEST_LOST
	.comm	_SERF_ERROR_ABORTED_CONNECTION,4,2 ; @SERF_ERROR_ABORTED_CONNECTION
	.comm	_SERF_ERROR_CLOSING,4,2         ; @SERF_ERROR_CLOSING
	.no_dead_strip	_read_from_connection
.subsections_via_symbols
