	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_application_url
_try_application_url:                   ## @try_application_url
	.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	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PARSE_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	$0, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_CoInternetParseUrl
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	callq	_RegOpenKeyW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.3:
	movl	-100(%rbp), %edi
	leaq	_try_application_url.wszURLProtocol(%rip), %rsi
	leaq	-120(%rbp), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegQueryValueExW
	movq	%rax, %rbx
	movl	-100(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_1
## %bb.4:
	movq	-120(%rbp), %rax
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	leaq	-96(%rbp), %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	$12, -112(%rbp)
	movl	%r14d, -104(%rbp)
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	%rbx, %rdi
	callq	_ShellExecuteExW
	jmp	LBB0_6
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_try_application_url.wszURLProtocol:    ## @try_application_url.wszURLProtocol
	.asciz	"URL Protocol"

	.comm	_PARSE_SCHEMA,4,2               ## @PARSE_SCHEMA
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HKEY_CLASSES_ROOT,4,2          ## @HKEY_CLASSES_ROOT
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ## @REG_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening application %s\n"

	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.no_dead_strip	_try_application_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_application_url
_try_application_url:                   ; @try_application_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x8, _PARSE_SCHEMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARSE_SCHEMA@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	add	x0, sp, #40
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x3, sp, #40
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x5, #0
	mov	w6, #0
	bl	_CoInternetParseUrl
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #40
	add	x2, sp, #20
	bl	_RegOpenKeyW
Lloh9:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [sp, #20]
Lloh11:
	adrp	x1, _try_application_url.wszURLProtocol@PAGE
Lloh12:
	add	x1, x1, _try_application_url.wszURLProtocol@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	mov	x4, #0
	mov	x5, #0
	bl	_RegQueryValueExW
	mov	x20, x0
	ldr	w0, [sp, #20]
	bl	_RegCloseKey
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _REG_SZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _REG_SZ@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	x0, sp, #40
	bl	_debugstr_w
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	w20, #12
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	str	w19, [sp, #32]
Lloh18:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w20, w8, [sp, #24]
	add	x0, sp, #24
	bl	_ShellExecuteExW
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_try_application_url.wszURLProtocol:    ; @try_application_url.wszURLProtocol
	.asciz	"URL Protocol"

	.comm	_PARSE_SCHEMA,4,2               ; @PARSE_SCHEMA
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HKEY_CLASSES_ROOT,4,2          ; @HKEY_CLASSES_ROOT
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ; @REG_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening application %s\n"

	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.no_dead_strip	_try_application_url
.subsections_via_symbols
