	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nextpal_item
_nextpal_item:                          ## @nextpal_item
	.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
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdx, %rdi
	movl	$47, %esi
	callq	_r_str_lchr
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	movl	$1, %r14d
	cmpl	$110, %r12d
	je	LBB0_5
## %bb.1:
	cmpl	$108, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$106, %r12d
	jne	LBB0_11
## %bb.3:
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rcx, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	callq	_r_cons_printf
	jmp	LBB0_11
LBB0_5:
	movq	_getNext@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	_curtheme@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	je	LBB0_7
## %bb.6:
	movq	%rax, %rsi
	callq	_r_str_dup
	movl	%eax, (%rbx)
	movl	$0, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movq	%rax, %rdi
	callq	_r_cons_println
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%edi, %edi
	je	LBB0_10
## %bb.8:
	movq	%rax, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movl	$1, (%r15)
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_r_str_dup
	movl	%eax, (%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\"%s\""

L_.str.1:                               ## @.str.1
	.asciz	","

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_getNext,4,2                    ## @getNext
	.comm	_curtheme,4,2                   ## @curtheme
	.no_dead_strip	_nextpal_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nextpal_item
_nextpal_item:                          ; @nextpal_item
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x0, x2
	mov	w1, #47
	bl	_r_str_lchr
	cmp	x0, #0
	csel	x2, x21, x0, eq
	cmp	w20, #110
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #108
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #106
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_cons_printf
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x19, _getNext@GOTPAGE
Lloh7:
	ldr	x19, [x19, _getNext@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh8:
	adrp	x20, _curtheme@GOTPAGE
Lloh9:
	ldr	x20, [x20, _curtheme@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x2
	cbz	w8, LBB0_9
; %bb.5:
	bl	_r_str_dup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	str	wzr, [x19]
	b	LBB0_8
LBB0_6:
	mov	x0, x2
	bl	_r_cons_println
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
LBB0_9:
	cbz	w0, LBB0_12
; %bb.10:
	bl	_strcmp
	mov	x8, x0
	mov	w0, #1
	cbnz	w8, LBB0_8
; %bb.11:
	str	w0, [x19]
	b	LBB0_8
LBB0_12:
	bl	_r_str_dup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	b	LBB0_8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\"%s\""

l_.str.1:                               ; @.str.1
	.asciz	","

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_getNext,4,2                    ; @getNext
	.comm	_curtheme,4,2                   ; @curtheme
	.no_dead_strip	_nextpal_item
.subsections_via_symbols
