	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evrpc_schedule_request
_evrpc_schedule_request:                ## @evrpc_schedule_request
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	56(%rsi), %r14
	movq	_evrpc_reply_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_evhttp_request_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	*48(%r12)
	movq	%r15, 40(%r12)
	movq	%rbx, 32(%r12)
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	24(%r12), %rdi
	movq	%r15, %rsi
	callq	_evrpc_hook_associate_meta_
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_evrpc_process_hooks
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	movq	_evrpc_schedule_request_closure@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_evrpc_pause_request
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_9
LBB0_6:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_EVRPC_STATUS_ERR_UNSTARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	*16(%r12)
	movq	%r12, %rdi
	callq	_evrpc_request_wrapper_free
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_7:
	andl	$-3, %eax
	xorl	%edi, %edi
	cmpl	$128, %eax
	sete	%dil
	callq	_EVUTIL_ASSERT
LBB0_8:
	movq	%r12, %rdi
	movl	$130, %esi
	callq	_evrpc_schedule_request_closure
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_evrpc_reply_done,4,2           ## @evrpc_reply_done
	.comm	_EVRPC_STATUS_ERR_UNSTARTED,4,2 ## @EVRPC_STATUS_ERR_UNSTARTED
	.no_dead_strip	_evrpc_schedule_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evrpc_schedule_request
_evrpc_schedule_request:                ; @evrpc_schedule_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #56]
Lloh0:
	adrp	x8, _evrpc_reply_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _evrpc_reply_done@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_evhttp_request_new
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x0]
	ldr	w1, [x19, #8]
	blr	x8
	stp	x22, x21, [x19, #32]
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_8
; %bb.2:
	add	x0, x19, #24
	mov	x1, x21
	bl	_evrpc_hook_associate_meta_
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_evrpc_process_hooks
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w0, #130
	b.eq	LBB0_8
; %bb.4:
	cmp	w0, #129
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x2, _evrpc_schedule_request_closure@GOTPAGE
Lloh4:
	ldr	x2, [x2, _evrpc_schedule_request_closure@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_evrpc_pause_request
	cmn	w0, #1
	b.ne	LBB0_9
LBB0_6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh5:
	adrp	x8, _EVRPC_STATUS_ERR_UNSTARTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVRPC_STATUS_ERR_UNSTARTED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x19, #16]
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	add	x0, sp, #8
	blr	x8
	mov	x0, x19
	bl	_evrpc_request_wrapper_free
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	and	w8, w0, #0xfffffffd
	cmp	w8, #128
	cset	w0, eq
	bl	_EVUTIL_ASSERT
LBB0_8:
	mov	x0, x19
	mov	w1, #130
	bl	_evrpc_schedule_request_closure
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_evrpc_reply_done,4,2           ; @evrpc_reply_done
	.comm	_EVRPC_STATUS_ERR_UNSTARTED,4,2 ; @EVRPC_STATUS_ERR_UNSTARTED
	.no_dead_strip	_evrpc_schedule_request
.subsections_via_symbols
