	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chm_retrieve_object            ## -- Begin function chm_retrieve_object
	.p2align	4, 0x90
_chm_retrieve_object:                   ## @chm_retrieve_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r13
	movq	(%rsi), %rax
	movq	%rax, %rbx
	subq	%rcx, %rbx
	jle	LBB0_5
## %bb.2:
	movq	%rdx, %r14
	leaq	(%r8,%r13), %rcx
	cmpq	%rax, %rcx
	cmovleq	%r8, %rbx
	movq	8(%rsi), %rax
	movq	_CHM_UNCOMPRESSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	(%rdi), %r13
	addq	16(%rsi), %r13
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__chm_fetch_bytes               ## TAILCALL
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	je	LBB0_5
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r15
	movq	16(%rsi), %rdx
	addq	%r13, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	__chm_decompress_region
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%rax, %r12
	addq	%rax, %r13
	addq	%rax, %r14
	subq	%rax, %rbx
	movq	%r15, %rsi
	jne	LBB0_9
	jmp	LBB0_6
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHM_UNCOMPRESSED,8,3           ## @CHM_UNCOMPRESSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chm_retrieve_object            ; -- Begin function chm_retrieve_object
	.p2align	2
_chm_retrieve_object:                   ; @chm_retrieve_object
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x22, x1
	ldr	x8, [x1]
	subs	x9, x8, x3
	b.le	LBB0_8
; %bb.2:
	mov	x19, x2
	mov	x21, x0
	add	x10, x4, x20
	cmp	x10, x8
	csel	x23, x9, x4, gt
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _CHM_UNCOMPRESSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHM_UNCOMPRESSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x22, #16]
	add	x8, x8, x20
	add	x2, x8, x9
	mov	x0, x21
	mov	x1, x19
	mov	x3, x23
	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
	b	__chm_fetch_bytes
LBB0_4:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	add	x2, x8, x20
	mov	x0, x21
	mov	x1, x19
	mov	x3, x23
	bl	__chm_decompress_region
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x0, x24
	add	x20, x0, x20
	add	x19, x19, x0
	subs	x23, x23, x0
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x24, #0
LBB0_9:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHM_UNCOMPRESSED,8,3           ; @CHM_UNCOMPRESSED
.subsections_via_symbols
