	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_detect_cb
_close_detect_cb:                       ## @close_detect_cb
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_evhttp_connection_get_base
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_response_code
	movq	_HTTP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_tt_abort_msg
LBB0_3:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_evutil_timerclear
	movq	$0, -32(%rbp)
	movl	$600000, -40(%rbp)              ## imm = 0x927C0
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_close_detect_launch@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$-1, %esi
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_event_base_once
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_OK,8,3                    ## @HTTP_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed"

	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.comm	_close_detect_launch,4,2        ## @close_detect_launch
	.no_dead_strip	_close_detect_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_detect_cb
_close_detect_cb:                       ; @close_detect_cb
	.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
	mov	x0, x1
	bl	_evhttp_connection_get_base
	mov	x20, x0
	cbz	x21, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_evhttp_request_get_response_code
Lloh0:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tt_abort_msg
LBB0_3:
	mov	x0, sp
	bl	_evutil_timerclear
	str	xzr, [sp, #8]
	mov	w8, #10176
	movk	w8, #9, lsl #16
	str	w8, [sp]
Lloh5:
	adrp	x8, _EV_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _close_detect_launch@GOTPAGE
Lloh9:
	ldr	x8, [x8, _close_detect_launch@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x5, sp
	mov	x0, x20
	mov	w1, #-1
	mov	x4, x19
	bl	_event_base_once
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_OK,8,3                    ; @HTTP_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed"

	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.comm	_close_detect_launch,4,2        ; @close_detect_launch
	.no_dead_strip	_close_detect_cb
.subsections_via_symbols
