	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_navigate_proc
_doc_navigate_proc:                     ## @doc_navigate_proc
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 16(%rsi)
	je	LBB0_5
## %bb.2:
	movq	_VARIANT_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	8(%rbx), %esi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	callq	_on_before_navigate2
	cmpq	$0, -32(%rbp)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_4:
	movl	(%r14), %edi
LBB0_5:
	movq	_IID_IHTMLPrivateWindow@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rsi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	%r14, %rdi
	callq	_html_window_navigate
	movq	-32(%rbp), %rdi
	callq	_IHTMLPrivateWindow_Release
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_WARN
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skip nav\n"

	.comm	_VARIANT_FALSE,8,3              ## @VARIANT_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Navigation canceled\n"

	.comm	_IID_IHTMLPrivateWindow,4,2     ## @IID_IHTMLPrivateWindow
L_.str.2:                               ## @.str.2
	.asciz	"Could not get IHTMLPrivateWindow iface: %08x\n"

	.no_dead_strip	_doc_navigate_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_navigate_proc
_doc_navigate_proc:                     ; @doc_navigate_proc
	.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, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _VARIANT_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARIANT_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldp	w3, w1, [x20, #4]
	ldr	w2, [x20]
	add	x4, sp, #8
	mov	x0, x19
	bl	_on_before_navigate2
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	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	_ERR
LBB0_5:
	ldr	w0, [x19]
LBB0_6:
Lloh7:
	adrp	x1, _IID_IHTMLPrivateWindow@GOTPAGE
Lloh8:
	ldr	x1, [x1, _IID_IHTMLPrivateWindow@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_IUnknown_QueryInterface
	mov	x21, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x1, [sp, #8]
	ldp	w3, w2, [x20, #4]
	ldr	w4, [x20]
	mov	x0, x19
	bl	_html_window_navigate
	ldr	x0, [sp, #8]
	bl	_IHTMLPrivateWindow_Release
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_WARN
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skip nav\n"

	.comm	_VARIANT_FALSE,8,3              ; @VARIANT_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Navigation canceled\n"

	.comm	_IID_IHTMLPrivateWindow,4,2     ; @IID_IHTMLPrivateWindow
l_.str.2:                               ; @.str.2
	.asciz	"Could not get IHTMLPrivateWindow iface: %08x\n"

	.no_dead_strip	_doc_navigate_proc
.subsections_via_symbols
