	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__conn_update_pollset      ## -- Begin function serf__conn_update_pollset
	.p2align	4, 0x90
_serf__conn_update_pollset:             ## @serf__conn_update_pollset
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	96(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	88(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_APR_POLL_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%rax, -56(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -64(%rbp)
	movl	(%r12), %edi
	leaq	56(%r15), %r14
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	callq	*16(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_APR_STATUS_IS_NOTFOUND
	testl	%eax, %eax
	je	LBB0_20
LBB0_4:
	movq	_APR_POLLHUP@GOTPCREL(%rip), %rcx
	movq	_APR_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	cmpq	$0, 80(%r15)
	je	LBB0_16
## %bb.5:
	movq	8(%r15), %rcx
	movq	_SERF_CONN_INIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.6:
	movq	_APR_POLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -64(%rbp)
	cmpl	$1, 16(%r15)
	je	LBB0_16
## %bb.7:
	cmpq	$0, 72(%r15)
	je	LBB0_10
## %bb.8:
	movq	_SERF_CONN_CLOSING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.9:
	movq	_APR_POLLOUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	jmp	LBB0_16
LBB0_1:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_20
LBB0_10:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	%rax, 32(%r15)
	jg	LBB0_16
LBB0_12:
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	32(%r15), %rcx
	subq	48(%r15), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_16
LBB0_14:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_request_or_data_pending
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_APR_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
LBB0_16:
	cmpq	$0, 64(%r15)
	je	LBB0_17
## %bb.18:
	movq	_APR_POLLIN@GOTPCREL(%rip), %rcx
	movl	-64(%rbp), %eax
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	jmp	LBB0_19
LBB0_17:
	movl	-64(%rbp), %eax
LBB0_19:
	movl	%eax, (%r15)
	movl	(%r12), %edi
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	callq	*8(%r12)
	movq	%rax, %rbx
LBB0_20:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_POLL_SOCKET,4,2            ## @APR_POLL_SOCKET
	.comm	_APR_POLLHUP,4,2                ## @APR_POLLHUP
	.comm	_APR_POLLERR,4,2                ## @APR_POLLERR
	.comm	_SERF_CONN_INIT,8,3             ## @SERF_CONN_INIT
	.comm	_APR_POLLIN,4,2                 ## @APR_POLLIN
	.comm	_SERF_CONN_CLOSING,8,3          ## @SERF_CONN_CLOSING
	.comm	_APR_POLLOUT,4,2                ## @APR_POLLOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__conn_update_pollset      ; -- Begin function serf__conn_update_pollset
	.p2align	2
_serf__conn_update_pollset:             ; @serf__conn_update_pollset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldp	x8, x22, [x0, #88]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _APR_POLL_SOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APR_POLL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	x8, [sp, #16]
	mov	x20, x0
	ldr	w8, [x20], #56
	str	w8, [sp, #8]
	ldr	x8, [x22, #16]
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	x2, x20
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	bl	_APR_STATUS_IS_NOTFOUND
	cbz	w0, LBB0_21
LBB0_3:
Lloh3:
	adrp	x8, _APR_POLLHUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_POLLHUP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _APR_POLLERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APR_POLLERR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w8
	str	w9, [sp, #8]
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_17
; %bb.4:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x10, _SERF_CONN_INIT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SERF_CONN_INIT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_17
; %bb.5:
Lloh12:
	adrp	x10, _APR_POLLIN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _APR_POLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #8]
	ldr	w10, [x19, #16]
	cmp	w10, #1
	b.eq	LBB0_17
; %bb.6:
	ldr	x10, [x19, #72]
	cbz	x10, LBB0_10
; %bb.7:
Lloh15:
	adrp	x10, _SERF_CONN_CLOSING@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SERF_CONN_CLOSING@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_10
; %bb.8:
Lloh18:
	adrp	x8, _APR_POLLOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APR_POLLOUT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w8, w8, w9
	b	LBB0_16
LBB0_9:
Lloh21:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	x21, [x8]
	b	LBB0_21
LBB0_10:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x9, [x19, #32]
	cmp	x9, x8
	b.gt	LBB0_17
LBB0_12:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x9, [x19, #32]
	ldr	x10, [x19, #48]
	sub	x9, x9, x10
	cmp	x9, x8
	b.ge	LBB0_17
LBB0_14:
	mov	x0, #0
	mov	x1, x19
	bl	_request_or_data_pending
	cbz	x0, LBB0_17
; %bb.15:
Lloh24:
	adrp	x8, _APR_POLLOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _APR_POLLOUT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
LBB0_16:
	str	w8, [sp, #8]
LBB0_17:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_19
; %bb.18:
Lloh27:
	adrp	x8, _APR_POLLIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _APR_POLLIN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_20
LBB0_19:
	ldr	w8, [sp, #8]
LBB0_20:
	str	w8, [x19]
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	x2, x20
	blr	x8
	mov	x21, x0
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_POLL_SOCKET,4,2            ; @APR_POLL_SOCKET
	.comm	_APR_POLLHUP,4,2                ; @APR_POLLHUP
	.comm	_APR_POLLERR,4,2                ; @APR_POLLERR
	.comm	_SERF_CONN_INIT,8,3             ; @SERF_CONN_INIT
	.comm	_APR_POLLIN,4,2                 ; @APR_POLLIN
	.comm	_SERF_CONN_CLOSING,8,3          ; @SERF_CONN_CLOSING
	.comm	_APR_POLLOUT,4,2                ; @APR_POLLOUT
.subsections_via_symbols
