	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SearchCHM_Storage
_SearchCHM_Storage:                     ## @SearchCHM_Storage
	.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	$40, %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, %r15
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r8
	movq	%rsi, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_IStorage_EnumElements
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movl	$1, %esi
	callq	_IEnumSTATSTG_Next
	movq	_NOERROR@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	leaq	-72(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_IEnumSTATSTG_Next
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_wcschr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_wcschr
	movq	%rax, %r13
	incq	%r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_SearchCHM_Folder
	movq	%rax, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	_SearchCHM_Storage.szHTMext(%rip), %rsi
	callq	_wcsstr
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_SearchCHM_File
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rsi
	movq	%rax, %rdi
	callq	_alloc_search_item
	movq	%rax, (%rbx)
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_IEnumSTATSTG_Release
LBB0_15:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_SearchCHM_Storage.szHTMext:            ## @SearchCHM_Storage.szHTMext
	.asciz	".htm"

	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not enumerate '/' storage elements: %08x\n"

	.comm	_NOERROR,8,3                    ## @NOERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled IStorage stream element.\n"

	.no_dead_strip	_SearchCHM_Storage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SearchCHM_Storage
_SearchCHM_Storage:                     ; @SearchCHM_Storage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	add	x4, sp, #40
	mov	x0, x1
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_IStorage_EnumElements
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.1:
	ldr	x0, [sp, #40]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	w1, #1
	bl	_IEnumSTATSTG_Next
Lloh3:
	adrp	x25, _NOERROR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NOERROR@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.2:
Lloh5:
	adrp	x22, _SearchCHM_Storage.szHTMext@PAGE
Lloh6:
	add	x22, x22, _SearchCHM_Storage.szHTMext@PAGEOFF
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_FIXME
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #40]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	w1, #1
	bl	_IEnumSTATSTG_Next
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x24, [sp, #24]
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	w1, #47
	bl	_wcschr
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x24
	mov	w1, #47
	bl	_wcschr
	add	x24, x0, #1
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #32]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	bl	_SearchCHM_Folder
	mov	x19, x0
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_wcsstr
	cbz	w0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_SearchCHM_File
	cbz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	bl	_alloc_search_item
	str	x0, [x19]
	mov	x19, x0
	b	LBB0_4
LBB0_14:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	x19, #0
	b	LBB0_16
LBB0_15:
	ldr	x0, [sp, #40]
	bl	_IEnumSTATSTG_Release
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_SearchCHM_Storage.szHTMext:            ; @SearchCHM_Storage.szHTMext
	.asciz	".htm"

	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not enumerate '/' storage elements: %08x\n"

	.comm	_NOERROR,8,3                    ; @NOERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled IStorage stream element.\n"

	.no_dead_strip	_SearchCHM_Storage
.subsections_via_symbols
