	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_web_browser               ## -- Begin function hs20_web_browser
	.p2align	4, 0x90
_hs20_web_browser:                      ## @hs20_web_browser
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MSG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	xorl	%eax, %eax
	callq	_eloop_init
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -112(%rbp)
	movq	_http_req@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rdi
	leaq	-104(%rbp), %rcx
	movl	$12345, %esi                    ## imm = 0x3039
	callq	_http_server_init
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_9
## %bb.3:
	je	LBB0_15
## %bb.4:
	movq	_browser_timeout@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-104(%rbp), %rbx
	movl	$30, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	xorl	%eax, %eax
	callq	_eloop_run
	movl	(%r12), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	%r14, %rdi
	callq	_http_server_deinit
	xorl	%eax, %eax
	callq	_eloop_destroy
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.12(%rip), %rdi
	callq	_system
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	-104(%rbp), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_8:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_http_server_deinit
LBB0_10:
	xorl	%eax, %eax
	callq	_eloop_destroy
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
LBB0_15:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -96(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -88(%rbp)
	leaq	L_.str.6(%rip), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.7(%rip), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str.8(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str.9(%rip), %rdi
	leaq	-96(%rbp), %rsi
	callq	_execv
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.10(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Launching Android browser to %s"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"eloop_init failed"

	.comm	_http_req,4,2                   ## @http_req
L_.str.2:                               ## @.str.2
	.asciz	"http_server_init failed"

L_.str.3:                               ## @.str.3
	.asciz	"fork: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"browser-android"

L_.str.5:                               ## @.str.5
	.asciz	"start"

L_.str.6:                               ## @.str.6
	.asciz	"-a"

L_.str.7:                               ## @.str.7
	.asciz	"android.intent.action.VIEW"

L_.str.8:                               ## @.str.8
	.asciz	"-d"

L_.str.9:                               ## @.str.9
	.asciz	"/system/bin/am"

L_.str.10:                              ## @.str.10
	.asciz	"execv: %s"

	.comm	_browser_timeout,4,2            ## @browser_timeout
L_.str.11:                              ## @.str.11
	.asciz	"Closing Android browser"

L_.str.12:                              ## @.str.12
	.asciz	"/system/bin/input keyevent KEYCODE_HOME"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to inject keyevent"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_web_browser               ; -- Begin function hs20_web_browser
	.p2align	2
_hs20_web_browser:                      ; @hs20_web_browser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x19, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	bl	_eloop_init
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #24]
Lloh7:
	adrp	x8, _http_req@GOTPAGE
Lloh8:
	ldr	x8, [x8, _http_req@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x3, sp, #16
	mov	w1, #12345
	bl	_http_server_init
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	bl	_fork
	tbnz	x0, #63, LBB0_9
; %bb.3:
	cbz	x0, LBB0_15
; %bb.4:
Lloh10:
	adrp	x19, _browser_timeout@GOTPAGE
Lloh11:
	ldr	x19, [x19, _browser_timeout@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x3, sp, #16
	mov	w0, #30
	mov	w1, #0
	mov	x4, #0
	bl	_eloop_register_timeout
	bl	_eloop_run
	ldr	w0, [x19]
	add	x1, sp, #16
	mov	x2, #0
	bl	_eloop_cancel_timeout
	mov	x0, x20
	bl	_http_server_deinit
	bl	_eloop_destroy
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.11@PAGE
Lloh13:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x0, l_.str.12@PAGE
Lloh15:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_system
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.13@PAGE
Lloh17:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	ldr	w0, [sp, #16]
	b	LBB0_12
LBB0_7:
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	x0, x20
	bl	_http_server_deinit
LBB0_10:
	bl	_eloop_destroy
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	bl	___stack_chk_fail
LBB0_15:
Lloh39:
	adrp	x8, l_.str.4@PAGE
Lloh40:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh41:
	adrp	x9, l_.str.5@PAGE
Lloh42:
	add	x9, x9, l_.str.5@PAGEOFF
	stp	x8, x9, [sp, #32]
Lloh43:
	adrp	x8, l_.str.6@PAGE
Lloh44:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh45:
	adrp	x9, l_.str.7@PAGE
Lloh46:
	add	x9, x9, l_.str.7@PAGEOFF
	stp	x8, x9, [sp, #48]
Lloh47:
	adrp	x8, l_.str.8@PAGE
Lloh48:
	add	x8, x8, l_.str.8@PAGEOFF
	stp	x8, x19, [sp, #64]
	str	xzr, [sp, #80]
Lloh49:
	adrp	x0, l_.str.9@PAGE
Lloh50:
	add	x0, x0, l_.str.9@PAGEOFF
	add	x1, sp, #32
	bl	_execv
Lloh51:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w19, [x8]
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Launching Android browser to %s"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"eloop_init failed"

	.comm	_http_req,4,2                   ; @http_req
l_.str.2:                               ; @.str.2
	.asciz	"http_server_init failed"

l_.str.3:                               ; @.str.3
	.asciz	"fork: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"browser-android"

l_.str.5:                               ; @.str.5
	.asciz	"start"

l_.str.6:                               ; @.str.6
	.asciz	"-a"

l_.str.7:                               ; @.str.7
	.asciz	"android.intent.action.VIEW"

l_.str.8:                               ; @.str.8
	.asciz	"-d"

l_.str.9:                               ; @.str.9
	.asciz	"/system/bin/am"

l_.str.10:                              ; @.str.10
	.asciz	"execv: %s"

	.comm	_browser_timeout,4,2            ; @browser_timeout
l_.str.11:                              ; @.str.11
	.asciz	"Closing Android browser"

l_.str.12:                              ; @.str.12
	.asciz	"/system/bin/input keyevent KEYCODE_HOME"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to inject keyevent"

.subsections_via_symbols
