	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx2341x_ctrl_new_custom
_cx2341x_ctrl_new_custom:               ## @cx2341x_ctrl_new_custom
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -32(%rbp)
	movq	%r9, -40(%rbp)
	leaq	-136(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	leaq	-60(%rbp), %rsi
	leaq	-64(%rbp), %r10
	leaq	-40(%rbp), %rax
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-32(%rbp), %r9
	movl	%ebx, %edi
	movq	%r15, %rdx
	pushq	%r10
	pushq	%rax
	callq	_cx2341x_ctrl_fill
	addq	$16, %rsp
	movq	_cx2341x_ops@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	%ebx, -80(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	-136(%rbp), %rax
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, -120(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -128(%rbp)
	movl	%ebx, %edi
	callq	_cx2341x_get_menu
	movl	%eax, -112(%rbp)
	jmp	LBB0_3
LBB0_2:
	movq	-32(%rbp), %rax
	movq	%rax, -120(%rbp)
	movq	$0, -128(%rbp)
LBB0_3:
	leaq	-136(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx2341x_ops,4,2                ## @cx2341x_ops
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ## @V4L2_CTRL_TYPE_MENU
	.no_dead_strip	_cx2341x_ctrl_new_custom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx2341x_ctrl_new_custom
_cx2341x_ctrl_new_custom:               ; @cx2341x_ctrl_new_custom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
	stp	x3, x2, [x29, #-48]
	stp	x5, x4, [x29, #-64]
	mov	x21, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	add	x1, x21, #76
	add	x7, x21, #72
	mov	x2, sp
	sub	x3, x29, #40
	sub	x4, x29, #48
	sub	x5, x29, #56
	sub	x6, x29, #64
	mov	x0, x20
	bl	_cx2341x_ctrl_fill
Lloh0:
	adrp	x8, _cx2341x_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx2341x_ops@GOTPAGEOFF]
	str	x8, [sp, #64]
	str	w20, [sp, #56]
	ldur	x10, [x29, #-40]
	ldur	x8, [x29, #-48]
	ldur	x9, [x29, #-64]
	stp	x8, x10, [sp, #40]
	str	x9, [sp, #32]
	ldr	x8, [sp]
Lloh2:
	adrp	x9, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldur	x8, [x29, #-56]
	stp	x8, xzr, [sp, #8]
	mov	x0, x20
	bl	_cx2341x_get_menu
	str	w0, [sp, #24]
	b	LBB0_3
LBB0_2:
	ldur	x8, [x29, #-56]
	stp	xzr, x8, [sp, #8]
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cx2341x_ops,4,2                ; @cx2341x_ops
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ; @V4L2_CTRL_TYPE_MENU
	.no_dead_strip	_cx2341x_ctrl_new_custom
.subsections_via_symbols
