	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetChmStream                   ## -- Begin function GetChmStream
	.p2align	4, 0x90
_GetChmStream:                          ## @GetChmStream
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	%rsi, %rdi
	callq	_debugstr_w
	movl	%eax, %r12d
	movq	8(%r14), %rdi
	callq	_debugstr_w
	movl	%eax, %r13d
	movq	(%r14), %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_TRACE
	movq	8(%r14), %rax
	movq	%rbx, %rcx
	orq	%rax, %rcx
	jne	LBB0_1
## %bb.4:
	movq	(%r15), %rbx
	movq	%rbx, -48(%rbp)
	movq	%rbx, %rdi
	callq	_IStorage_AddRef
	jmp	LBB0_5
LBB0_1:
	testq	%rax, %rax
	movl	8(%r15), %edi
	cmovneq	%rax, %rbx
	movq	_STGM_READ@GOTPCREL(%rip), %rax
	movq	_STGM_SHARE_DENY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_IITStorage_StgOpenStorage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	-48(%rbp), %rbx
LBB0_5:
	movq	(%r14), %rsi
	movq	_STGM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_IStorage_OpenStream
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_IStorage_Release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
LBB0_7:
	movq	-56(%rbp), %rax
LBB0_8:
	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 (%s :: %s)\n"

	.comm	_STGM_READ,4,2                  ## @STGM_READ
	.comm	_STGM_SHARE_DENY_WRITE,4,2      ## @STGM_SHARE_DENY_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Could not open storage: %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not open stream: %08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetChmStream                   ; -- Begin function GetChmStream
	.p2align	2
_GetChmStream:                          ; @GetChmStream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp]
	mov	x0, x1
	bl	_debugstr_w
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_debugstr_w
	mov	x23, x0
	ldr	x0, [x19]
	bl	_debugstr_w
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_TRACE
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _STGM_READ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STGM_READ@GOTPAGEOFF]
	orr	x9, x20, x8
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x20, [x21]
	str	x20, [sp, #8]
	mov	x0, x20
	bl	_IStorage_AddRef
	b	LBB0_5
LBB0_2:
	ldr	w0, [x21, #8]
	cmp	x8, #0
	csel	x1, x20, x8, eq
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _STGM_SHARE_DENY_WRITE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _STGM_SHARE_DENY_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x6, sp, #8
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_IITStorage_StgOpenStorage
	mov	x20, 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, x20
	bl	_WARN
	mov	x0, #0
	b	LBB0_8
LBB0_4:
	ldr	x20, [sp, #8]
LBB0_5:
	ldr	x1, [x19]
	ldr	w3, [x22]
	mov	x5, sp
	mov	x0, x20
	mov	x2, #0
	mov	w4, #0
	bl	_IStorage_OpenStream
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_IStorage_Release
	mov	x0, x19
	bl	_FAILED
	cbz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_WARN
LBB0_7:
	ldr	x0, [sp]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s (%s :: %s)\n"

	.comm	_STGM_READ,4,2                  ; @STGM_READ
	.comm	_STGM_SHARE_DENY_WRITE,4,2      ; @STGM_SHARE_DENY_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Could not open storage: %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not open stream: %08x\n"

.subsections_via_symbols
