	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_format
_next_format:                           ## @next_format
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$3, (%r14)
	jg	LBB0_9
## %bb.3:
	movl	(%r12), %r13d
	incl	%r13d
	movl	%r13d, (%r12)
	movl	(%r14), %eax
	movl	$1, %ebx
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.4:
	movl	%eax, %ecx
	andl	$-3, %ecx
	jne	LBB0_6
## %bb.5:
	cmpl	$2, %r13d
	jb	LBB0_18
LBB0_6:
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	callq	_PALETTE_COUNT
	cmpl	%eax, %r13d
	jb	LBB0_18
LBB0_8:
	movl	$0, (%r12)
	movl	(%r15), %eax
LBB0_9:
	addl	%eax, %eax
	movl	%eax, (%r15)
	movl	$1, %ebx
	cmpl	$9, %eax
	jl	LBB0_18
## %bb.10:
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	cmpq	$4, %rax
	ja	LBB0_18
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movl	$2, (%r14)
	jmp	LBB0_16
LBB0_1:
	movl	$0, (%r14)
	testl	%ecx, %ecx
	movl	$8, %eax
	movl	$1, %ebx
	cmovnel	%ebx, %eax
	movl	%eax, (%r15)
	movl	$0, (%r12)
	jmp	LBB0_18
LBB0_13:
	movl	$3, (%r14)
	movl	$1, (%r15)
	jmp	LBB0_17
LBB0_14:
	movl	$4, (%r14)
	jmp	LBB0_16
LBB0_15:
	movl	$6, (%r14)
LBB0_16:
	movl	$8, (%r15)
LBB0_17:
	movl	$1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_next_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_format
_next_format:                           ; @next_format
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_11
; %bb.1:
	ldr	w9, [x20]
	cmp	w9, #3
	b.gt	LBB0_7
; %bb.2:
	ldr	w8, [x21]
	add	w22, w8, #1
	str	w22, [x21]
	ldr	w8, [x20]
	cbz	w4, LBB0_4
; %bb.3:
	and	w9, w8, #0xfffffffd
	cmp	w9, #0
	ccmp	w22, #2, #2, eq
	b.lo	LBB0_16
LBB0_4:
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	bl	_PALETTE_COUNT
	cmp	w22, w0
	b.lo	LBB0_16
LBB0_6:
	str	wzr, [x21]
	ldr	w8, [x19]
LBB0_7:
	lsl	w8, w8, #1
	str	w8, [x19]
	cmp	w8, #9
	b.lt	LBB0_16
; %bb.8:
	mov	w0, #0
	ldr	w8, [x20]
	cmp	w8, #4
	b.hi	LBB0_17
; %bb.9:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	w8, #2
	b	LBB0_15
LBB0_11:
	str	wzr, [x20]
	cmp	w3, #0
	mov	w8, #8
	csinc	w8, w8, wzr, eq
	str	w8, [x19]
	str	wzr, [x21]
	b	LBB0_16
LBB0_12:
	mov	w8, #3
	str	w8, [x20]
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_17
LBB0_13:
	mov	w8, #4
	b	LBB0_15
LBB0_14:
	mov	w8, #6
LBB0_15:
	str	w8, [x20]
	mov	w8, #8
	str	w8, [x19]
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.no_dead_strip	_next_format
.subsections_via_symbols
