	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NavigateToUrl                  ## -- Begin function NavigateToUrl
	.p2align	4, 0x90
_NavigateToUrl:                         ## @NavigateToUrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	leaq	_NavigateToUrl.url_indicator(%rip), %rsi
	movl	%ebx, %edi
	callq	_wcsstr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_navigate_url
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdi
	movl	%ebx, %edx
	callq	_SetChmPath
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_NavigateToChm
	movl	%eax, %ebx
	movl	-20(%rbp), %edi
	callq	_heap_free
	movl	-24(%rbp), %edi
	callq	_heap_free
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_NavigateToUrl.url_indicator:           ## @NavigateToUrl.url_indicator
	.asciz	"://"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NavigateToUrl                  ; -- Begin function NavigateToUrl
	.p2align	2
_NavigateToUrl:                         ; @NavigateToUrl
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_debugstr_w
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x1, _NavigateToUrl.url_indicator@PAGE
Lloh3:
	add	x1, x1, _NavigateToUrl.url_indicator@PAGEOFF
	mov	x0, x20
	bl	_wcsstr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_navigate_url
	bl	_SUCCEEDED
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_SetChmPath
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_NavigateToChm
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_heap_free
	ldr	w0, [sp, #8]
	bl	_heap_free
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_NavigateToUrl.url_indicator:           ; @NavigateToUrl.url_indicator
	.asciz	"://"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
