	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindContextAlias               ## -- Begin function FindContextAlias
	.p2align	4, 0x90
_FindContextAlias:                      ## @FindContextAlias
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movq	_STGM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_FindContextAlias.wszIVB(%rip), %rsi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_IStorage_OpenStream
	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	_WARN
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	movl	$4, %edx
	callq	_IStream_Read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	movq	-56(%rbp), %rdi
	callq	_IStream_Release
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_heap_alloc
	movq	%rax, %r15
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %edx
	leaq	-60(%rbp), %rcx
	movq	%rax, %rsi
	callq	_IStream_Read
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	callq	_IStream_Release
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_WARN
	movq	%r15, %rdi
	callq	_heap_free
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, -44(%rbp)
	cmpl	$8, %eax
	jl	LBB0_7
## %bb.9:
	cmpl	$2, %ecx
	movl	$1, %eax
	cmovgel	%ecx, %eax
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%r15,%rcx,8)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_11:
	movl	4(%r15,%rcx,8), %esi
	movq	%r13, %rdi
	callq	_GetChmString
	movq	%rax, %r12
LBB0_12:
	movq	%r15, %rdi
	callq	_heap_free
	movq	%r12, %rdi
	callq	_debugstr_a
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%r12, %rdi
	callq	_strdupAtoW
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_FindContextAlias.wszIVB:               ## @FindContextAlias.wszIVB
	.asciz	"#IVB"

	.comm	_STGM_READ,4,2                  ## @STGM_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open #IVB stream: %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Read failed: %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"returning %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindContextAlias               ; -- Begin function FindContextAlias
	.p2align	2
_FindContextAlias:                      ; @FindContextAlias
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _STGM_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STGM_READ@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, _FindContextAlias.wszIVB@PAGE
Lloh4:
	add	x1, x1, _FindContextAlias.wszIVB@PAGEOFF
	add	x5, sp, #8
	mov	x2, #0
	mov	w4, #0
	bl	_IStorage_OpenStream
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_WARN
	mov	x0, #0
	b	LBB0_13
LBB0_2:
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	mov	x3, sp
	mov	w2, #4
	bl	_IStream_Read
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_WARN
	ldr	x0, [sp, #8]
	bl	_IStream_Release
	mov	x0, #0
	b	LBB0_13
LBB0_4:
	ldr	w0, [sp, #4]
	bl	_heap_alloc
	mov	x21, x0
	ldr	x0, [sp, #8]
	ldr	w2, [sp, #4]
	mov	x3, sp
	mov	x1, x21
	bl	_IStream_Read
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_IStream_Release
	mov	x0, x22
	bl	_FAILED
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_WARN
	mov	x0, x21
	bl	_heap_free
	mov	x0, #0
	b	LBB0_13
LBB0_6:
	ldr	w9, [sp, #4]
	asr	w8, w9, #3
	str	w8, [sp, #4]
	cmp	w9, #8
	b.lt	LBB0_10
; %bb.7:
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	add	x9, x21, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w20
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_10:
	mov	x19, #0
	b	LBB0_12
LBB0_11:
	ldr	w1, [x9]
	mov	x0, x19
	bl	_GetChmString
	mov	x19, x0
LBB0_12:
	mov	x0, x21
	bl	_heap_free
	mov	x0, x19
	bl	_debugstr_a
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_strdupAtoW
LBB0_13:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_FindContextAlias.wszIVB:               ; @FindContextAlias.wszIVB
	.asciz	"#IVB"

	.comm	_STGM_READ,4,2                  ; @STGM_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open #IVB stream: %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Read failed: %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"returning %s\n"

.subsections_via_symbols
