	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_rd_decode
_lz_rd_decode:                          ## @lz_rd_decode
	.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
	testl	%esi, %esi
	jle	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	4(%rdi), %ecx
	incl	%ebx
	xorl	%r15d, %r15d
	movl	%ecx, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	movl	%r12d, %ecx
	cmpl	$1, %ebx
	jle	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movl	%edx, %eax
	sarl	%eax
	movl	%eax, (%r14)
	addl	%r15d, %r15d
	subl	%eax, %r12d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %r12d
	cmpl	$33554431, %edx                 ## imm = 0x1FFFFFF
	ja	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, 4(%r14)
	orl	$1, %r15d
	cmpl	$33554431, %edx                 ## imm = 0x1FFFFFF
	ja	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	shll	$8, %eax
	movl	%eax, (%r14)
	shll	$8, %r12d
	movl	8(%r14), %edi
	callq	_getc
	orl	%r12d, %eax
	movl	%eax, 4(%r14)
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lz_rd_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_rd_decode
_lz_rd_decode:                          ; @lz_rd_decode
	.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
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	w19, #0
	ldr	w22, [x0, #4]
	add	w21, w1, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, #1
	cmp	w21, #1
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	asr	w8, w9, #1
	str	w8, [x20]
	lsl	w19, w19, #1
	subs	w10, w22, w8
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w10, [x20, #4]
	orr	w19, w19, #0x1
	mov	x22, x10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsr	w9, w9, #25
	cbnz	w9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w8, #8
	str	w8, [x20]
	ldr	w0, [x20, #8]
	bl	_getc
	orr	w22, w0, w22, lsl #8
	str	w22, [x20, #4]
	b	LBB0_2
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	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	_lz_rd_decode
.subsections_via_symbols
