	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _unmarshal_lzxc_control_data
__unmarshal_lzxc_control_data:          ## @_unmarshal_lzxc_control_data
	.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, %r15
	movl	(%rsi), %eax
	movq	__CHM_LZXC_MIN_LEN@GOTPCREL(%rip), %rcx
	movq	_FALSE@GOTPCREL(%rip), %rdi
	cmpl	(%rcx), %eax
	jb	LBB0_14
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	__unmarshal_uint32
	movl	24(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	callq	__unmarshal_char_array
	leaq	4(%r14), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	__unmarshal_uint32
	leaq	8(%r14), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	__unmarshal_uint32
	leaq	12(%r14), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	__unmarshal_uint32
	leaq	16(%r14), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__unmarshal_uint32
	movl	(%rbx), %eax
	movq	__CHM_LZXC_V2_LEN@GOTPCREL(%rip), %rcx
	leaq	20(%r14), %rdx
	cmpl	(%rcx), %eax
	jae	LBB0_2
## %bb.3:
	movl	$0, (%rdx)
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__unmarshal_uint32
LBB0_4:
	cmpl	$2, (%r13)
	movq	_FALSE@GOTPCREL(%rip), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	shll	$15, (%rax)
	movl	(%r12), %ecx
	shll	$15, %ecx
	movl	%ecx, (%r12)
	testl	%ecx, %ecx
	jne	LBB0_8
	jmp	LBB0_14
LBB0_6:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
LBB0_8:
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	cmpl	$1, %ecx
	je	LBB0_14
## %bb.10:
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	LBB0_14
## %bb.11:
	movl	24(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	_TRUE@GOTPCREL(%rip), %rdi
	jmp	LBB0_14
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rdi
LBB0_14:
	movl	(%rdi), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__CHM_LZXC_MIN_LEN,4,2          ## @_CHM_LZXC_MIN_LEN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	__CHM_LZXC_V2_LEN,4,2           ## @_CHM_LZXC_V2_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LZXC"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	__unmarshal_lzxc_control_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _unmarshal_lzxc_control_data
__unmarshal_lzxc_control_data:          ; @_unmarshal_lzxc_control_data
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, __CHM_LZXC_MIN_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, __CHM_LZXC_MIN_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_3
LBB0_1:
Lloh3:
	adrp	x20, _FALSE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x20]
	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_3:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	__unmarshal_uint32
	ldr	w2, [x19, #24]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #4
	bl	__unmarshal_char_array
	add	x23, x19, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	__unmarshal_uint32
	add	x20, x19, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	__unmarshal_uint32
	add	x24, x19, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	__unmarshal_uint32
	add	x2, x19, #16
	mov	x0, x22
	mov	x1, x21
	bl	__unmarshal_uint32
	ldr	w8, [x21]
Lloh5:
	adrp	x9, __CHM_LZXC_V2_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, __CHM_LZXC_V2_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	x2, x19, #20
	cmp	w8, w9
	b.hs	LBB0_5
; %bb.4:
	str	wzr, [x2]
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	__unmarshal_uint32
LBB0_6:
	ldr	w8, [x23]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20]
	lsl	w8, w8, #15
	str	w8, [x20]
	ldr	w8, [x24]
	lsl	w8, w8, #15
	str	w8, [x24]
	cbnz	w8, LBB0_9
	b	LBB0_1
LBB0_8:
	ldr	w8, [x24]
	cbz	w8, LBB0_1
LBB0_9:
	ldr	w9, [x20]
Lloh8:
	adrp	x20, _FALSE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	cbz	w9, LBB0_2
; %bb.10:
	cmp	w8, #1
	b.eq	LBB0_2
; %bb.11:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
Lloh10:
	adrp	x20, _FALSE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.12:
	ldr	w0, [x19, #24]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_memcmp
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x8, x20, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	__CHM_LZXC_MIN_LEN,4,2          ; @_CHM_LZXC_MIN_LEN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	__CHM_LZXC_V2_LEN,4,2           ; @_CHM_LZXC_V2_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LZXC"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	__unmarshal_lzxc_control_data
.subsections_via_symbols
