	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pal
_decode_pal:                            ## @decode_pal
	.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
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movl	4(%rdi), %r14d
	leal	1(%rbx), %esi
	movq	%r15, %rdi
	callq	_arith_get_number
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	subl	%ebx, %r14d
	addl	$256, %r14d                     ## imm = 0x100
	movslq	%r14d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_arith_get_bits
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_arith_get_bits
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_arith_get_bits
	shll	$16, %r12d
	shll	$8, %ebx
	orl	%r12d, %ebx
	orl	%eax, %ebx
	orl	$-16777216, %ebx                ## imm = 0xFF000000
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r13,4)
	incq	%r13
	cmpl	%r13d, %r14d
	jne	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_pal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pal
_decode_pal:                            ; @decode_pal
	.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	w21, [x0]
	cbz	w21, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	w22, [x0, #4]
	add	w1, w21, #1
	mov	x0, x19
	bl	_arith_get_number
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	sub	w8, w22, w21
	add	w8, w8, #256
	sxtw	x23, w8
	mov	x24, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_arith_get_bits
	mov	x21, x0
	mov	x0, x19
	mov	w1, #8
	bl	_arith_get_bits
	mov	x22, x0
	mov	x0, x19
	mov	w1, #8
	bl	_arith_get_bits
	lsl	w8, w21, #16
	orr	w8, w8, w22, lsl #8
	orr	w8, w8, w0
	orr	w8, w8, #0xff000000
	str	w8, [x23], #4
	subs	w24, w24, #1
	b.ne	LBB0_3
LBB0_4:
	cmp	w20, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_pal
.subsections_via_symbols
