	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navigate_bsc
_navigate_bsc:                          ## @navigate_bsc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_VARIANT_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	_READYSTATE_LOADING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_doc_state
	cmpq	$0, 16(%r12)
	je	LBB0_1
## %bb.2:
	movq	_VT_UI1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %edx
	xorl	%esi, %esi
	callq	_SafeArrayCreateVector
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	12(%r12), %edx
	movq	%rax, %rsi
	callq	_memcpy
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_on_before_navigate2
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_SafeArrayDestroy
LBB0_5:
	cmpq	$0, -56(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_notify_download_state
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	movq	_CSC_NAVIGATEBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_on_commandstate_change
	movq	_CSC_NAVIGATEFORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_on_commandstate_change
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_deactivate_document
LBB0_9:
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_CreateAsyncBindCtx
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %esi
	callq	_IOleInPlaceFrame_EnableModeless
LBB0_11:
	movl	4(%r12), %edx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	callq	_bind_to_object
	movl	%eax, %ebx
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IOleInPlaceFrame_EnableModeless
LBB0_13:
	movq	-48(%rbp), %rdi
	callq	_IBindCtx_Release
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VARIANT_FALSE,8,3              ## @VARIANT_FALSE
	.comm	_READYSTATE_LOADING,4,2         ## @READYSTATE_LOADING
	.comm	_VT_UI1,4,2                     ## @VT_UI1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Navigation canceled\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CSC_NAVIGATEBACK,4,2           ## @CSC_NAVIGATEBACK
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CSC_NAVIGATEFORWARD,4,2        ## @CSC_NAVIGATEFORWARD
	.no_dead_strip	_navigate_bsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navigate_bsc
_navigate_bsc:                          ; @navigate_bsc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _VARIANT_FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VARIANT_FALSE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _READYSTATE_LOADING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _READYSTATE_LOADING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_set_doc_state
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _VT_UI1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VT_UI1@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
	mov	w1, #0
	bl	_SafeArrayCreateVector
	mov	x22, x0
	ldr	w0, [x0]
	ldr	w2, [x20, #12]
	mov	x1, x22
	bl	_memcpy
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	ldp	w1, w3, [x20, #4]
	add	x4, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_on_before_navigate2
	cbz	x22, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_SafeArrayDestroy
LBB0_5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh10:
	adrp	x8, _S_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_7:
Lloh13:
	adrp	x22, _TRUE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_notify_download_state
	ldr	x8, [x23]
	str	x8, [x19, #16]
Lloh15:
	adrp	x8, _CSC_NAVIGATEBACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CSC_NAVIGATEBACK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x23, _FALSE@GOTPAGE
Lloh19:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_on_commandstate_change
Lloh20:
	adrp	x8, _CSC_NAVIGATEFORWARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CSC_NAVIGATEFORWARD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_on_commandstate_change
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_deactivate_document
LBB0_9:
	mov	x3, sp
	mov	w0, #0
	mov	x1, x20
	mov	w2, #0
	bl	_CreateAsyncBindCtx
	ldr	x0, [x19]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w1, [x23]
	bl	_IOleInPlaceFrame_EnableModeless
LBB0_11:
	ldr	w2, [x20, #4]
	ldr	x3, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x4, x20
	bl	_bind_to_object
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x22]
	bl	_IOleInPlaceFrame_EnableModeless
LBB0_13:
	ldr	x0, [sp]
	bl	_IBindCtx_Release
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VARIANT_FALSE,8,3              ; @VARIANT_FALSE
	.comm	_READYSTATE_LOADING,4,2         ; @READYSTATE_LOADING
	.comm	_VT_UI1,4,2                     ; @VT_UI1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Navigation canceled\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CSC_NAVIGATEBACK,4,2           ; @CSC_NAVIGATEBACK
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CSC_NAVIGATEFORWARD,4,2        ; @CSC_NAVIGATEFORWARD
	.no_dead_strip	_navigate_bsc
.subsections_via_symbols
