	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx2341x_menu_item
_cx2341x_menu_item:                     ## @cx2341x_menu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_cx2341x_ctrl_get_menu
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movl	%ebx, -28(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cx2341x_get_ctrl
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	leaq	L_.str(%rip), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-32(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leal	-1(%rax), %ecx
	leaq	(%r14,%rcx,8), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14,%rdx,8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.6:
	movq	%rcx, %r14
LBB0_7:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<invalid>"

	.no_dead_strip	_cx2341x_menu_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx2341x_menu_item
_cx2341x_menu_item:                     ; @cx2341x_menu_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_cx2341x_ctrl_get_menu
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	str	w21, [sp, #12]
	add	x1, sp, #8
	mov	x0, x20
	bl	_cx2341x_get_ctrl
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_9
; %bb.5:
	sub	w9, w8, #1
	add	x9, x19, w9, uxtw #3
	add	x9, x9, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	cbz	x10, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #8
	subs	w8, w8, #1
	b.ne	LBB0_6
; %bb.8:
	mov	x19, x9
LBB0_9:
	ldr	x0, [x19]
	cbnz	x0, LBB0_3
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<invalid>"

	.no_dead_strip	_cx2341x_menu_item
.subsections_via_symbols
