	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_req
_http_req:                              ## @http_req
	.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, %r14
	movq	%rdi, %r15
	movq	%rdi, -40(%rbp)
	movq	%rsi, %rdi
	callq	_http_request_get_uri
	movq	%rax, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_os_strncmp
	movb	$1, %r12b
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	addq	$5, %rbx
	movq	%rbx, %rdi
	callq	_atoi
	jmp	LBB0_4
LBB0_1:
	movl	$1, %eax
LBB0_4:
	movl	%eax, (%r15)
	xorl	%r12d, %r12d
LBB0_5:
	movl	$100, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_put_str
	testb	%r12b, %r12b
	jne	LBB0_10
## %bb.9:
	movq	_browser_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%r15), %edx
	leaq	-40(%rbp), %rcx
	xorl	%edi, %edi
	movl	$500000, %esi                   ## imm = 0x7A120
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_http_request_send_and_deinit
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_http_request_deinit
	testb	%r12b, %r12b
	je	LBB0_7
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_terminate                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Browser response received: %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"/osu/"

L_.str.3:                               ## @.str.3
	.asciz	"HTTP/1.1\r\n\r\nUser input completed"

	.comm	_browser_timeout,4,2            ## @browser_timeout
	.no_dead_strip	_http_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_req
_http_req:                              ; @http_req
	.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	x20, x0
	str	x0, [sp, #8]
	mov	x0, x1
	bl	_http_request_get_uri
	mov	x21, x0
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wpa_printf
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_os_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #5
	bl	_os_strncmp
	cbz	x0, LBB0_4
; %bb.2:
	mov	w21, #1
	b	LBB0_6
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	add	x0, x21, #5
	bl	_atoi
LBB0_5:
	mov	w21, #0
	str	w0, [x20]
LBB0_6:
	mov	w0, #100
	bl	_wpabuf_alloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpabuf_put_str
	tbnz	w21, #0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x21, _browser_timeout@GOTPAGE
Lloh12:
	ldr	x21, [x21, _browser_timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, #0
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	w0, #0
	mov	w1, #41248
	movk	w1, #7, lsl #16
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_http_request_send_and_deinit
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_http_request_deinit
	tbz	w21, #0, LBB0_12
LBB0_11:
	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
LBB0_12:
	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
	b	_eloop_terminate
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Browser response received: %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"/osu/"

l_.str.3:                               ; @.str.3
	.asciz	"HTTP/1.1\r\n\r\nUser input completed"

	.comm	_browser_timeout,4,2            ; @browser_timeout
	.no_dead_strip	_http_req
.subsections_via_symbols
