	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__process_connection       ## -- Begin function serf__process_connection
	.p2align	4, 0x90
_serf__process_connection:              ## @serf__process_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_APR_POLLIN@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_read_from_connection
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.3:
	movq	_APR_POLLHUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_14
## %bb.4:
	testl	%ebx, %ecx
	je	LBB0_7
LBB0_5:
	cmpq	$0, 32(%r14)
	je	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reset_connection               ## TAILCALL
LBB0_1:
	movq	_APR_POLLHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ebx, %ecx
	jne	LBB0_5
LBB0_7:
	movq	_APR_POLLERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.9:
	cmpl	$0, 28(%r14)
	je	LBB0_15
LBB0_10:
	movq	_APR_EGENERAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_SERF_ERROR_ABORTED_CONNECTION@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_APR_POLLOUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_to_connection            ## TAILCALL
LBB0_12:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_POLLIN,4,2                 ## @APR_POLLIN
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_APR_POLLHUP,4,2                ## @APR_POLLHUP
	.comm	_SERF_ERROR_ABORTED_CONNECTION,4,2 ## @SERF_ERROR_ABORTED_CONNECTION
	.comm	_APR_POLLERR,4,2                ## @APR_POLLERR
	.comm	_APR_EGENERAL,4,2               ## @APR_EGENERAL
	.comm	_APR_POLLOUT,4,2                ## @APR_POLLOUT
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__process_connection       ; -- Begin function serf__process_connection
	.p2align	2
_serf__process_connection:              ; @serf__process_connection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _APR_POLLIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_read_from_connection
Lloh3:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.2:
	ldr	w9, [x19]
Lloh6:
	adrp	x8, _APR_POLLHUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APR_POLLHUP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_13
; %bb.3:
	tst	w8, w20
	b.eq	LBB0_7
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reset_connection
LBB0_6:
Lloh9:
	adrp	x8, _APR_POLLHUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APR_POLLHUP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
LBB0_7:
Lloh12:
	adrp	x8, _APR_POLLERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APR_POLLERR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_5
LBB0_10:
Lloh15:
	adrp	x8, _APR_EGENERAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _APR_EGENERAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _SERF_ERROR_ABORTED_CONNECTION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SERF_ERROR_ABORTED_CONNECTION@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh19:
	adrp	x8, _APR_POLLOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _APR_POLLOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_to_connection
LBB0_16:
Lloh22:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
	b	LBB0_12
	.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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_POLLIN,4,2                 ; @APR_POLLIN
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_APR_POLLHUP,4,2                ; @APR_POLLHUP
	.comm	_SERF_ERROR_ABORTED_CONNECTION,4,2 ; @SERF_ERROR_ABORTED_CONNECTION
	.comm	_APR_POLLERR,4,2                ; @APR_POLLERR
	.comm	_APR_EGENERAL,4,2               ; @APR_EGENERAL
	.comm	_APR_POLLOUT,4,2                ; @APR_POLLOUT
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
.subsections_via_symbols
