	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function launch_request
_launch_request:                        ## @launch_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_total_n_launched@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_AF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -36(%rbp)
	movl	$8080, %edi                     ## imm = 0x1F90
	callq	_htons
	movl	%eax, -40(%rbp)
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_evutil_make_socket_nonblocking
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	%ebx, %edi
	callq	_frob_socket
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVUTIL_ERR_CONNECT_RETRIABLE
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	$0, 8(%rax)
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_bufferevent_socket_new
	movq	%rax, %rbx
	movq	_readcb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errorcb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_bufferevent_setcb
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_enable
	movq	%rbx, %rdi
	callq	_bufferevent_get_output
	movq	_resource@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_evbuffer_add_printf
	jmp	LBB0_8
LBB0_2:
	movl	%ebx, %edi
	callq	_evutil_closesocket
	jmp	LBB0_8
LBB0_6:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_total_n_launched,4,2           ## @total_n_launched
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_errno,4,2                      ## @errno
	.comm	_base,4,2                       ## @base
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.comm	_readcb,4,2                     ## @readcb
	.comm	_errorcb,4,2                    ## @errorcb
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"GET %s HTTP/1.0\r\n\r\n"

	.comm	_resource,4,2                   ## @resource
L_str:                                  ## @str
	.asciz	"Unable to allocate memory in launch_request()"

	.no_dead_strip	_launch_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function launch_request
_launch_request:                        ; @launch_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _total_n_launched@GOTPAGE
Lloh1:
	ldr	x8, [x8, _total_n_launched@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x19, _AF_INET@GOTPAGE
Lloh3:
	ldr	x19, [x19, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x19]
	str	w8, [sp, #8]
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #4]
	mov	w0, #8080
	bl	_htons
	str	w0, [sp]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_evutil_make_socket_nonblocking
	tbnz	x0, #63, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_frob_socket
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	bl	_connect
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_EVUTIL_ERR_CONNECT_RETRIABLE
	cbz	w0, LBB0_6
LBB0_4:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	str	xzr, [x0, #8]
	mov	x1, #0
	bl	_evutil_gettimeofday
Lloh10:
	adrp	x8, _base@GOTPAGE
Lloh11:
	ldr	x8, [x8, _base@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_bufferevent_socket_new
	mov	x19, x0
Lloh16:
	adrp	x8, _readcb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _readcb@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _errorcb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errorcb@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x2, #0
	mov	x4, x20
	bl	_bufferevent_setcb
Lloh22:
	adrp	x8, _EV_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_bufferevent_enable
	mov	x0, x19
	bl	_bufferevent_get_output
Lloh28:
	adrp	x8, _resource@GOTPAGE
Lloh29:
	ldr	x8, [x8, _resource@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_evbuffer_add_printf
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_evutil_closesocket
	b	LBB0_8
LBB0_7:
Lloh33:
	adrp	x0, l_str@PAGE
Lloh34:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_total_n_launched,4,2           ; @total_n_launched
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_errno,4,2                      ; @errno
	.comm	_base,4,2                       ; @base
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.comm	_readcb,4,2                     ; @readcb
	.comm	_errorcb,4,2                    ; @errorcb
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"GET %s HTTP/1.0\r\n\r\n"

	.comm	_resource,4,2                   ; @resource
l_str:                                  ; @str
	.asciz	"Unable to allocate memory in launch_request()"

	.no_dead_strip	_launch_request
.subsections_via_symbols
