	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf_context_run               ## -- Begin function serf_context_run
	.p2align	4, 0x90
_serf_context_run:                      ## @serf_context_run
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r13
	callq	_serf_context_prerun
	movl	%eax, %ebx
	movq	_APR_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.1:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r15d, %esi
	callq	_apr_pollset_poll
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.2:
	subl	$1, -44(%rbp)
	jb	LBB0_11
## %bb.3:
	movq	-56(%rbp), %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	%r14, %rdi
	callq	_serf_event_trigger
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx
	addq	$8, %rdx
	movq	%rdx, -56(%rbp)
	subl	$1, -44(%rbp)
	jae	LBB0_4
	jmp	LBB0_10
LBB0_6:
	movl	%ebx, %edi
	callq	_APR_STATUS_IS_EINTR
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movl	(%r12), %ebx
	jmp	LBB0_11
LBB0_7:
	movl	%ebx, %edi
	callq	_APR_STATUS_IS_TIMEUP
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_APR_TIMEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_APR_TIMEUP,4,2                 ## @APR_TIMEUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf_context_run               ; -- Begin function serf_context_run
	.p2align	2
_serf_context_run:                      ; @serf_context_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	bl	_serf_context_prerun
	mov	x20, x0
Lloh0:
	adrp	x22, _APR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _APR_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.1:
	ldr	w0, [x23]
	add	x2, sp, #12
	mov	x3, sp
	mov	x1, x21
	bl	_apr_pollset_poll
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	str	w9, [sp, #12]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	x2, [sp]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x2]
	mov	x0, x19
	bl	_serf_event_trigger
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	add	x2, x8, #8
	str	x2, [sp]
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	str	w9, [sp, #12]
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_APR_STATUS_IS_EINTR
	cbz	x0, LBB0_8
LBB0_7:
	ldr	w20, [x22]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_APR_STATUS_IS_TIMEUP
Lloh2:
	adrp	x8, _APR_TIMEUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APR_TIMEUP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_APR_TIMEUP,4,2                 ; @APR_TIMEUP
.subsections_via_symbols
