	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextctl                        ## -- Begin function nextctl
	.p2align	4, 0x90
_nextctl:                               ## @nextctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_eeprom@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movl	$-1, %eax
	cmpl	%edi, %ecx
	jle	LBB0_11
## %bb.1:
	movq	_curmode@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	movq	_headerInfo11G@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_headerInfo11B@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_headerInfo11A@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movslq	%edi, %rsi
	shlq	$2, %rsi
	addq	8(%rdx), %rsi
	leaq	LJTI0_0(%rip), %rdx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r8d, %r11d
	je	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%edi
	addq	$4, %rsi
	cmpl	%edi, %ecx
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	andl	$3, %ebx
	movslq	(%rdx,%rbx,4), %rbx
	addq	%rdx, %rbx
	jmpq	*%rbx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r10d, %r11d
	jne	LBB0_3
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r9d, %r11d
	jne	LBB0_3
LBB0_10:
	movl	%edi, %eax
LBB0_11:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_eeprom,16,3                    ## @eeprom
	.comm	_curmode,4,2                    ## @curmode
	.comm	_headerInfo11A,4,2              ## @headerInfo11A
	.comm	_headerInfo11B,4,2              ## @headerInfo11B
	.comm	_headerInfo11G,4,2              ## @headerInfo11G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextctl                        ; -- Begin function nextctl
	.p2align	2
_nextctl:                               ; @nextctl
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _eeprom@GOTPAGE
Lloh1:
	ldr	x9, [x9, _eeprom@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, w0
	b.le	LBB0_8
; %bb.1:
	ldr	x13, [x9, #8]
Lloh2:
	adrp	x9, _curmode@GOTPAGE
Lloh3:
	ldr	x9, [x9, _curmode@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _headerInfo11G@GOTPAGE
Lloh6:
	ldr	x10, [x10, _headerInfo11G@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _headerInfo11B@GOTPAGE
Lloh9:
	ldr	x11, [x11, _headerInfo11B@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x12, _headerInfo11A@GOTPAGE
Lloh12:
	ldr	x12, [x12, _headerInfo11A@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	add	x13, x13, w0, sxtw #2
Lloh14:
	adrp	x14, lJTI0_0@PAGE
Lloh15:
	add	x14, x14, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w10
	b.eq	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
	add	x13, x13, #4
	cmp	w8, w0
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	cbz	w15, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w15, w15, #0x3
	adr	x16, LBB0_2
	ldrb	w17, [x14, x15]
	add	x16, x16, x17, lsl #2
	br	x16
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w12
	b.ne	LBB0_3
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w11
	b.ne	LBB0_3
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_eeprom,16,3                    ; @eeprom
	.comm	_curmode,4,2                    ; @curmode
	.comm	_headerInfo11A,4,2              ; @headerInfo11A
	.comm	_headerInfo11B,4,2              ; @headerInfo11B
	.comm	_headerInfo11G,4,2              ; @headerInfo11G
.subsections_via_symbols
