	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_typelib
_load_typelib:                          ## @load_typelib
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LOCALE_SYSTEM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LIBID_SHDocVw@GOTPCREL(%rip), %rdi
	leaq	-16(%rbp), %r8
	movl	$1, %esi
	movl	$1, %edx
	callq	_LoadRegTypeLib
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_ERR
	jmp	LBB0_4
LBB0_2:
	movq	-16(%rbp), %rsi
	movq	_typelib@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_InterlockedCompareExchangePointer
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-16(%rbp), %rdi
	callq	_ITypeLib_Release
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBID_SHDocVw,4,2              ## @LIBID_SHDocVw
	.comm	_LOCALE_SYSTEM_DEFAULT,4,2      ## @LOCALE_SYSTEM_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LoadRegTypeLib failed: %08x\n"

	.comm	_typelib,4,2                    ## @typelib
	.no_dead_strip	_load_typelib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_typelib
_load_typelib:                          ; @load_typelib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _LOCALE_SYSTEM_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCALE_SYSTEM_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _LIBID_SHDocVw@GOTPAGE
Lloh4:
	ldr	x0, [x0, _LIBID_SHDocVw@GOTPAGEOFF]
	add	x4, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_LoadRegTypeLib
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_ERR
	b	LBB0_4
LBB0_2:
	ldr	x1, [sp, #8]
Lloh7:
	adrp	x0, _typelib@GOTPAGE
Lloh8:
	ldr	x0, [x0, _typelib@GOTPAGEOFF]
	mov	x2, #0
	bl	_InterlockedCompareExchangePointer
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_ITypeLib_Release
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBID_SHDocVw,4,2              ; @LIBID_SHDocVw
	.comm	_LOCALE_SYSTEM_DEFAULT,4,2      ; @LOCALE_SYSTEM_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadRegTypeLib failed: %08x\n"

	.comm	_typelib,4,2                    ; @typelib
	.no_dead_strip	_load_typelib
.subsections_via_symbols
