	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx2341x_ctrl_fill
_cx2341x_ctrl_fill:                     ## @cx2341x_ctrl_fill
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	24(%rbp), %r14
	callq	_cx2341x_get_name
	movq	%rax, (%r13)
	movl	$0, (%r14)
	leal	-129(%rbx), %eax
	cmpl	$11, %eax
	ja	LBB0_4
## %bb.1:
	movl	$309, %ecx                      ## imm = 0x135
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.14:
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$0, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_5:
	addl	$-128, %ebx
	cmpl	$11, %ebx
	ja	LBB0_13
## %bb.6:
	movl	$3476, %eax                     ## imm = 0xD94
	btl	%ebx, %eax
	jae	LBB0_7
## %bb.11:
	movq	_V4L2_CTRL_FLAG_SLIDER@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	$42, %eax
	btl	%ebx, %eax
	jae	LBB0_8
## %bb.10:
	movq	_V4L2_CTRL_FLAG_UPDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	cmpl	$11, %eax
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_CTRL_TYPE_BOOLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$0, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_13
LBB0_4:
	movq	_V4L2_CTRL_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_8:
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.9:
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ## @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_BOOLEAN,4,2     ## @V4L2_CTRL_TYPE_BOOLEAN
	.comm	_V4L2_CTRL_TYPE_INTEGER,4,2     ## @V4L2_CTRL_TYPE_INTEGER
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ## @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CTRL_FLAG_SLIDER,4,2      ## @V4L2_CTRL_FLAG_SLIDER
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ## @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_cx2341x_ctrl_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx2341x_ctrl_fill
_cx2341x_ctrl_fill:                     ; @cx2341x_ctrl_fill
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x7
	mov	x20, x5
	mov	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
	bl	_cx2341x_get_name
	str	x0, [x25]
	str	wzr, [x19]
	sub	w8, w22, #129
	cmp	w8, #11
	b.hi	LBB0_10
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #309
	tst	w9, w10
	b.eq	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24]
	str	wzr, [x21]
	str	wzr, [x20]
LBB0_3:
	sub	w8, w22, #128
	cmp	w8, #11
	b.hi	LBB0_14
; %bb.4:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #3476
	tst	w9, w10
	b.eq	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _V4L2_CTRL_FLAG_SLIDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_SLIDER@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	mov	w10, #42
	tst	w9, w10
	b.eq	LBB0_11
; %bb.7:
Lloh5:
	adrp	x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	cmp	w8, #11
	b.ne	LBB0_10
; %bb.9:
Lloh7:
	adrp	x8, _V4L2_CTRL_TYPE_BOOLEAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_CTRL_TYPE_BOOLEAN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x24]
	str	wzr, [x21]
	mov	w8, #1
	str	w8, [x20]
	str	w8, [x23]
	b	LBB0_14
LBB0_10:
Lloh10:
	adrp	x8, _V4L2_CTRL_TYPE_INTEGER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_CTRL_TYPE_INTEGER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x24]
	b	LBB0_3
LBB0_11:
	cbnz	w8, LBB0_14
; %bb.12:
Lloh13:
	adrp	x8, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ; @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_BOOLEAN,4,2     ; @V4L2_CTRL_TYPE_BOOLEAN
	.comm	_V4L2_CTRL_TYPE_INTEGER,4,2     ; @V4L2_CTRL_TYPE_INTEGER
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ; @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CTRL_FLAG_SLIDER,4,2      ; @V4L2_CTRL_FLAG_SLIDER
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_cx2341x_ctrl_fill
.subsections_via_symbols
