	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_doc_ready_state
_get_doc_ready_state:                   ## @get_doc_ready_state
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movl	(%rdi), %edi
	movq	_IID_IDispatch@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	-32(%rbp), %rdi
	movq	_DISPID_READYSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOCALE_SYSTEM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DISPATCH_PROPERTYGET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	-36(%rbp), %rax
	leaq	-20(%rbp), %rbx
	movq	_IID_NULL@GOTPCREL(%rip), %rdx
	leaq	-64(%rbp), %r9
	pushq	$0
	pushq	%rax
	pushq	%rbx
	callq	_IDispatch_Invoke
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	callq	_IDispatch_Release
	movq	%rbx, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_WARN
	jmp	LBB0_7
LBB0_3:
	leaq	-20(%rbp), %rdi
	callq	_V_VT
	movq	_VT_I4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	-20(%rbp), %rdi
	callq	_V_I4
	movl	%eax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_V_VT
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_WARN
	movq	%rbx, %rdi
	callq	_VariantClear
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IDispatch,4,2              ## @IID_IDispatch
	.comm	_DISPID_READYSTATE,4,2          ## @DISPID_READYSTATE
	.comm	_IID_NULL,4,2                   ## @IID_NULL
	.comm	_LOCALE_SYSTEM_DEFAULT,4,2      ## @LOCALE_SYSTEM_DEFAULT
	.comm	_DISPATCH_PROPERTYGET,4,2       ## @DISPATCH_PROPERTYGET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invoke(DISPID_READYSTATE failed: %08x\n"

	.comm	_VT_I4,8,3                      ## @VT_I4
L_.str.1:                               ## @.str.1
	.asciz	"V_VT(var) = %d\n"

	.comm	_E_FAIL,8,3                     ## @E_FAIL
	.comm	_S_OK,8,3                       ## @S_OK
	.no_dead_strip	_get_doc_ready_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_doc_ready_state
_get_doc_ready_state:                   ; @get_doc_ready_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, _IID_IDispatch@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IDispatch@GOTPAGEOFF]
	add	x2, sp, #16
	bl	_IUnknown_QueryInterface
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x0, [sp, #16]
Lloh2:
	adrp	x8, _DISPID_READYSTATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DISPID_READYSTATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _LOCALE_SYSTEM_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOCALE_SYSTEM_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _DISPATCH_PROPERTYGET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISPATCH_PROPERTYGET@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	str	xzr, [sp]
Lloh11:
	adrp	x2, _IID_NULL@GOTPAGE
Lloh12:
	ldr	x2, [x2, _IID_NULL@GOTPAGEOFF]
	add	x5, sp, #24
	add	x6, sp, #8
	add	x7, sp, #12
	bl	_IDispatch_Invoke
	mov	x20, x0
	ldr	x0, [sp, #16]
	bl	_IDispatch_Release
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_WARN
	b	LBB0_7
LBB0_3:
	add	x0, sp, #8
	bl	_V_VT
Lloh15:
	adrp	x8, _VT_I4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VT_I4@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_V_I4
	str	w0, [x19]
Lloh18:
	adrp	x8, _S_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	bl	_V_VT
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	add	x0, sp, #8
	bl	_VariantClear
Lloh22:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_6:
	ldr	x20, [x8]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IDispatch,4,2              ; @IID_IDispatch
	.comm	_DISPID_READYSTATE,4,2          ; @DISPID_READYSTATE
	.comm	_IID_NULL,4,2                   ; @IID_NULL
	.comm	_LOCALE_SYSTEM_DEFAULT,4,2      ; @LOCALE_SYSTEM_DEFAULT
	.comm	_DISPATCH_PROPERTYGET,4,2       ; @DISPATCH_PROPERTYGET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invoke(DISPID_READYSTATE failed: %08x\n"

	.comm	_VT_I4,8,3                      ; @VT_I4
l_.str.1:                               ; @.str.1
	.asciz	"V_VT(var) = %d\n"

	.comm	_E_FAIL,8,3                     ; @E_FAIL
	.comm	_S_OK,8,3                       ; @S_OK
	.no_dead_strip	_get_doc_ready_state
.subsections_via_symbols
