	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chm_resolve_object             ## -- Begin function chm_resolve_object
	.p2align	4, 0x90
_chm_resolve_object:                    ## @chm_resolve_object
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%rbx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r12
	movl	4(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	movq	__chm_pmgl_marker@GOTPCREL(%rip), %r13
	movq	__chm_pmgi_marker@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	imull	%ecx, %eax
	movslq	%eax, %rdx
	addq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	__chm_fetch_bytes
	cmpl	(%rbx), %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	__chm_find_in_PMGI
	cmpl	$-1, %eax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	__chm_find_in_PMGL
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	__chm_parse_PMGL_entry
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	movq	_CHM_RESOLVE_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	movq	_CHM_RESOLVE_FAILURE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHM_RESOLVE_FAILURE,4,2        ## @CHM_RESOLVE_FAILURE
	.comm	__chm_pmgl_marker,4,2           ## @_chm_pmgl_marker
	.comm	_CHM_RESOLVE_SUCCESS,4,2        ## @CHM_RESOLVE_SUCCESS
	.comm	__chm_pmgi_marker,4,2           ## @_chm_pmgi_marker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chm_resolve_object             ; -- Begin function chm_resolve_object
	.p2align	2
_chm_resolve_object:                    ; @chm_resolve_object
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_GetProcessHeap
	ldr	w2, [x22]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x19, x0
	ldr	w0, [x22, #4]
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
Lloh0:
	adrp	x23, __chm_pmgl_marker@GOTPAGE
Lloh1:
	ldr	x23, [x23, __chm_pmgl_marker@GOTPAGEOFF]
Lloh2:
	adrp	x24, __chm_pmgi_marker@GOTPAGE
Lloh3:
	ldr	x24, [x24, __chm_pmgi_marker@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w3, [x22]
	mul	w9, w3, w0
	add	x2, x8, w9, sxtw
	mov	x0, x22
	mov	x1, x19
	bl	__chm_fetch_bytes
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	__chm_find_in_PMGI
	cmn	w0, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	__chm_find_in_PMGL
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	x1, x20
	bl	__chm_parse_PMGL_entry
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
Lloh4:
	adrp	x8, _CHM_RESOLVE_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CHM_RESOLVE_SUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
Lloh6:
	adrp	x8, _CHM_RESOLVE_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHM_RESOLVE_FAILURE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHM_RESOLVE_FAILURE,4,2        ; @CHM_RESOLVE_FAILURE
	.comm	__chm_pmgl_marker,4,2           ; @_chm_pmgl_marker
	.comm	_CHM_RESOLVE_SUCCESS,4,2        ; @CHM_RESOLVE_SUCCESS
	.comm	__chm_pmgi_marker,4,2           ; @_chm_pmgi_marker
.subsections_via_symbols
