	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _chm_find_in_PMGI
__chm_find_in_PMGI:                     ## @_chm_find_in_PMGI
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CHM_MAX_PATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, -56(%rbp)
	movq	__CHM_PMGI_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	__unmarshal_pmgi_header
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %r13
	subq	-80(%rbp), %r13
	sarq	$2, %r13
	cmpq	%r13, -56(%rbp)
	jae	LBB0_8
## %bb.2:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	__chm_parse_cword
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	__chm_parse_UTF8
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	$-1, %ebx
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wcsicmp
	testq	%rax, %rax
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	__chm_parse_cword
	movq	%rax, %rbx
	cmpq	%r13, -56(%rbp)
	jae	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	__chm_parse_cword
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	__chm_parse_UTF8
	testl	%eax, %eax
	jne	LBB0_4
## %bb.7:
	movl	$-1, %ebx
LBB0_8:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHM_MAX_PATHLEN,4,2            ## @CHM_MAX_PATHLEN
	.comm	__CHM_PMGI_LEN,4,2              ## @_CHM_PMGI_LEN
	.no_dead_strip	__chm_find_in_PMGI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _chm_find_in_PMGI
__chm_find_in_PMGI:                     ; @_chm_find_in_PMGI
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CHM_MAX_PATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHM_MAX_PATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	x0, [x29, #-80]
Lloh8:
	adrp	x8, __CHM_PMGI_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, __CHM_PMGI_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-68]
	sub	x0, x29, #80
	sub	x1, x29, #68
	sub	x2, x29, #64
	bl	__unmarshal_pmgi_header
	cbz	w0, LBB0_6
; %bb.1:
	add	x8, x22, w21, sxtw #2
	ldur	x9, [x29, #-64]
	sub	x8, x8, x9
	asr	x22, x8, #2
	ldur	x8, [x29, #-80]
	cmp	x8, x22
	b.hs	LBB0_6
; %bb.2:
	sub	x0, x29, #80
	bl	__chm_parse_cword
	mov	x1, x0
	sub	x0, x29, #80
	mov	x2, x20
	bl	__chm_parse_UTF8
	mov	w21, #-1
	cbz	w0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_wcsicmp
	cmp	x0, #0
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #80
	bl	__chm_parse_cword
	mov	x21, x0
	ldur	x8, [x29, #-80]
	cmp	x8, x22
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #80
	bl	__chm_parse_cword
	mov	x1, x0
	sub	x0, x29, #80
	mov	x2, x20
	bl	__chm_parse_UTF8
	cbnz	w0, LBB0_3
LBB0_6:
	mov	w21, #-1
LBB0_7:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CHM_MAX_PATHLEN,4,2            ; @CHM_MAX_PATHLEN
	.comm	__CHM_PMGI_LEN,4,2              ; @_CHM_PMGI_LEN
	.no_dead_strip	__chm_find_in_PMGI
.subsections_via_symbols
