	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evrpc_schedule_request_closure
_evrpc_schedule_request_closure:        ## @evrpc_schedule_request_closure
	.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
	movq	%rdi, %rbx
	movq	_EVRPC_TERMINATE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_5
## %bb.1:
	movq	48(%rbx), %r14
	movq	32(%rbx), %r13
	movq	40(%rbx), %r12
	movl	28(%rbx), %edi
	callq	_evrpc_construct_uri
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	cmpq	$0, (%r13)
	jle	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdi
	callq	_evutil_timerclear
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	leaq	24(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	callq	_evtimer_add
LBB0_4:
	movq	_EVHTTP_REQ_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_evhttp_make_request
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_mm_free
	cmpl	$-1, %r14d
	jne	LBB0_6
LBB0_5:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_EVRPC_STATUS_ERR_UNSTARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	_evrpc_request_wrapper_free
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVRPC_TERMINATE,4,2            ## @EVRPC_TERMINATE
	.comm	_EVHTTP_REQ_POST,4,2            ## @EVHTTP_REQ_POST
	.comm	_EVRPC_STATUS_ERR_UNSTARTED,4,2 ## @EVRPC_STATUS_ERR_UNSTARTED
	.no_dead_strip	_evrpc_schedule_request_closure
.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_closure
_evrpc_schedule_request_closure:        ; @evrpc_schedule_request_closure
	.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	x19, x0
Lloh0:
	adrp	x8, _EVRPC_TERMINATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVRPC_TERMINATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.1:
	ldp	x21, x20, [x19, #40]
	ldr	x23, [x19, #32]
	ldr	w0, [x19, #28]
	bl	_evrpc_construct_uri
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, sp
	bl	_evutil_timerclear
	ldr	x8, [x23]
	str	x8, [sp]
	add	x0, x19, #24
	mov	x1, sp
	bl	_evtimer_add
LBB0_4:
Lloh3:
	adrp	x8, _EVHTTP_REQ_POST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVHTTP_REQ_POST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_evhttp_make_request
	mov	x20, x0
	mov	x0, x22
	bl	_mm_free
	cmn	w20, #1
	b.ne	LBB0_6
LBB0_5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x8, _EVRPC_STATUS_ERR_UNSTARTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVRPC_STATUS_ERR_UNSTARTED@GOTPAGEOFF]
Lloh8:
	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
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVRPC_TERMINATE,4,2            ; @EVRPC_TERMINATE
	.comm	_EVHTTP_REQ_POST,4,2            ; @EVHTTP_REQ_POST
	.comm	_EVRPC_STATUS_ERR_UNSTARTED,4,2 ; @EVRPC_STATUS_ERR_UNSTARTED
	.no_dead_strip	_evrpc_schedule_request_closure
.subsections_via_symbols
