	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_doc_navigate
_async_doc_navigate:                    ## @async_doc_navigate
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	$40, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_SysAllocString
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_SysAllocString
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.5:
	movq	_VT_UI1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_SafeArrayCreateVector
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
LBB0_8:
	movq	%r14, 8(%rbx)
	movq	_doc_navigate_proc@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_abort_dochost_tasks
	movl	(%r14), %edx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_doc_navigate_task_destr@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_push_dochost_task
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_doc_navigate_task_destr
LBB0_10:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_VARIANT_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rbx), %rsi
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rdx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	callq	_on_before_navigate2
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_doc_navigate_task_destr
LBB0_13:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_VT_UI1,4,2                     ## @VT_UI1
	.comm	_VARIANT_FALSE,8,3              ## @VARIANT_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Navigation canceled\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_doc_navigate_proc,4,2          ## @doc_navigate_proc
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_async_doc_navigate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_doc_navigate
_async_doc_navigate:                    ; @async_doc_navigate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	mov	x0, x1
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	w0, #40
	bl	_heap_alloc_zero
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x0, x25
	bl	_SysAllocString
	str	x0, [x20, #32]
	cbz	x0, LBB0_9
; %bb.2:
	cbz	x24, LBB0_4
; %bb.3:
	mov	x0, x24
	bl	_SysAllocString
	str	x0, [x20, #16]
	cbz	x0, LBB0_9
LBB0_4:
	cbz	w23, LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _VT_UI1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VT_UI1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x22
	bl	_SafeArrayCreateVector
	str	x0, [x20, #24]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x0]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
LBB0_7:
	cbz	x21, LBB0_11
LBB0_8:
	str	x21, [x20, #8]
Lloh5:
	adrp	x21, _doc_navigate_proc@GOTPAGE
Lloh6:
	ldr	x21, [x21, _doc_navigate_proc@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_abort_dochost_tasks
	ldr	w2, [x21]
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x3, _doc_navigate_task_destr@GOTPAGE
Lloh11:
	ldr	x3, [x3, _doc_navigate_task_destr@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_push_dochost_task
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_doc_navigate_task_destr
LBB0_10:
Lloh12:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x8, _VARIANT_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VARIANT_FALSE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldp	x2, x1, [x20, #24]
	ldr	x3, [x20, #16]
	add	x4, sp, #8
	mov	x0, x19
	bl	_on_before_navigate2
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.12:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_doc_navigate_task_destr
LBB0_13:
Lloh19:
	adrp	x8, _S_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_VT_UI1,4,2                     ; @VT_UI1
	.comm	_VARIANT_FALSE,8,3              ; @VARIANT_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Navigation canceled\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_doc_navigate_proc,4,2          ; @doc_navigate_proc
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_async_doc_navigate
.subsections_via_symbols
