	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzx_read_pre_tree
_lzx_read_pre_tree:                     ## @lzx_read_pre_tree
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	24(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r15), %ebx
LBB0_2:
	movl	$1, %eax
	cmpl	8(%r15), %ebx
	jge	LBB0_8
## %bb.3:
	leaq	32(%r15), %r12
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_lzx_br_read_ahead
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_lzx_br_bits
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r15), %rcx
	incl	(%rcx,%rax,4)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_lzx_br_consume
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.7:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	movl	%ebx, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lzx_read_pre_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzx_read_pre_tree
_lzx_read_pre_tree:                     ; @lzx_read_pre_tree
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0]
	mov	x20, x21
	ldr	w22, [x20], #32
	cbnz	w22, LBB0_2
; %bb.1:
	ldr	x0, [x21, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w22, [x21]
LBB0_2:
	ldr	w8, [x21, #8]
	cmp	w22, w8
	b.ge	LBB0_6
; %bb.3:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x22, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_lzx_br_read_ahead
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #4
	bl	_lzx_br_bits
	ldp	x8, x9, [x21, #16]
	str	x0, [x8, x22, lsl #3]
	lsl	x8, x0, #2
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	mov	x0, x20
	mov	w1, #4
	bl	_lzx_br_consume
	add	x22, x22, #1
	ldrsw	x8, [x21, #8]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #1
LBB0_7:
	str	w22, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lzx_read_pre_tree
.subsections_via_symbols
