	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	xorl	%eax, %eax
	callq	_eloop_init
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -80(%rbp)
	movq	_http_req@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	leaq	-72(%rbp), %rcx
	movl	$12345, %esi                    ## imm = 0x3039
	callq	_http_server_init
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	je	LBB0_13
## %bb.4:
	movq	_browser_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-72(%rbp), %rbx
	movl	$120, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	xorl	%eax, %eax
	callq	_eloop_run
	movl	(%r15), %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	-72(%rbp), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_7:
	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
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_http_server_deinit
LBB0_8:
	xorl	%eax, %eax
	callq	_eloop_destroy
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
LBB0_13:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str.5(%rip), %rdi
	leaq	-64(%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.6(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	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 system 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-system"

L_.str.5:                               ## @.str.5
	.asciz	"/usr/bin/x-www-browser"

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

	.comm	_browser_timeout,4,2            ## @browser_timeout
.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, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	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_5
; %bb.1:
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #24]
Lloh8:
	adrp	x8, _http_req@GOTPAGE
Lloh9:
	ldr	x8, [x8, _http_req@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x3, sp, #16
	mov	w1, #12345
	bl	_http_server_init
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_fork
	tbnz	x0, #63, LBB0_7
; %bb.3:
	cbz	x0, LBB0_13
; %bb.4:
Lloh11:
	adrp	x19, _browser_timeout@GOTPAGE
Lloh12:
	ldr	x19, [x19, _browser_timeout@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x3, sp, #16
	mov	w0, #120
	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, [sp, #16]
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	x0, x20
	bl	_http_server_deinit
LBB0_8:
	bl	_eloop_destroy
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
LBB0_13:
Lloh34:
	adrp	x8, l_.str.4@PAGE
Lloh35:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x8, x19, [sp, #32]
	str	xzr, [sp, #48]
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #32
	bl	_execv
Lloh38:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w19, [x8]
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Launching system 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-system"

l_.str.5:                               ; @.str.5
	.asciz	"/usr/bin/x-www-browser"

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

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