	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navigate_history
_navigate_history:                      ## @navigate_history
	.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
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	%esi, 8(%rdi)
	movq	16(%rdi), %r14
	movl	%esi, %r15d
	callq	_update_navigation_commands
	cmpl	$0, (%r14,%r15,8)
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	movq	_IID_IPersistHistory@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r14,%r15,8), %edi
	movq	_STREAM_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_IStream_Seek
	movq	-32(%rbp), %rdi
	movl	(%r14,%r15,8), %esi
	xorl	%edx, %edx
	callq	_IPersistHistory_LoadHistory
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_IPersistHistory_Release
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r14,%r15,8), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_async_doc_navigate             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported doc_navigate FALSE\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IID_IPersistHistory,4,2        ## @IID_IPersistHistory
	.comm	_STREAM_SEEK_SET,4,2            ## @STREAM_SEEK_SET
	.no_dead_strip	_navigate_history
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navigate_history
_navigate_history:                      ; @navigate_history
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	w1, [x0, #8]
	ldr	x22, [x0, #16]
	bl	_update_navigation_commands
	add	x21, x22, w20, uxtw #3
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, _IID_IPersistHistory@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IPersistHistory@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_IUnknown_QueryInterface
	mov	x19, x0
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _STREAM_SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STREAM_SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_IStream_Seek
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	mov	x2, #0
	bl	_IPersistHistory_LoadHistory
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_IPersistHistory_Release
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh7:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	mov	w8, w20
	add	x8, x22, x8, lsl #3
	ldr	w1, [x8, #4]
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	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	_async_doc_navigate
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported doc_navigate FALSE\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IID_IPersistHistory,4,2        ; @IID_IPersistHistory
	.comm	_STREAM_SEEK_SET,4,2            ; @STREAM_SEEK_SET
	.no_dead_strip	_navigate_history
.subsections_via_symbols
