	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_detect_launch
_close_detect_launch:                   ## @close_detect_launch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdx, %rdi
	callq	_evhttp_connection_get_base
	movq	_close_detect_done@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tt_fail_msg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_close_detect_done,4,2          ## @close_detect_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Host"

L_.str.1:                               ## @.str.1
	.asciz	"somehost"

	.comm	_EVHTTP_REQ_GET,4,2             ## @EVHTTP_REQ_GET
L_.str.2:                               ## @.str.2
	.asciz	"/test"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't make request"

	.no_dead_strip	_close_detect_launch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_detect_launch
_close_detect_launch:                   ; @close_detect_launch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x0, x2
	bl	_evhttp_connection_get_base
	mov	x1, x0
Lloh0:
	adrp	x8, _close_detect_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _close_detect_done@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_evhttp_request_new
	mov	x20, x0
	bl	_evhttp_request_get_output_headers
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_evhttp_add_header
Lloh7:
	adrp	x8, _EVHTTP_REQ_GET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVHTTP_REQ_GET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_evhttp_make_request
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tt_fail_msg
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_close_detect_done,4,2          ; @close_detect_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Host"

l_.str.1:                               ; @.str.1
	.asciz	"somehost"

	.comm	_EVHTTP_REQ_GET,4,2             ; @EVHTTP_REQ_GET
l_.str.2:                               ; @.str.2
	.asciz	"/test"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't make request"

	.no_dead_strip	_close_detect_launch
.subsections_via_symbols
