	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_init_late_controls
_smiapp_init_late_controls:             ## @smiapp_init_late_controls
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	56(%rdi), %rax
	movq	(%rax), %r13
	movq	48(%rdi), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_V4L2_CID_TEST_PATTERN_RED@GOTPCREL(%rip), %r12
	movq	_smiapp_ctrl_ops@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movzbl	8(%rax), %ecx
	movl	$-1, %r8d
	shll	%cl, %r8d
	movq	40(%r15), %rdi
	notl	%r8d
	movq	(%r12), %rdx
	addq	%rbx, %rdx
	movl	%r8d, (%rsp)
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	48(%r15), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	subq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movq	16(%r15), %r14
	movq	_V4L2_CID_LINK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r13,8), %rdi
	callq	___fls
	movl	%eax, %r12d
	movq	(%rbx,%r13,8), %rdi
	callq	___ffs
	movq	24(%r15), %rcx
	movl	(%rcx), %r9d
	movq	_smiapp_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_v4l2_ctrl_new_int_menu
	movl	%eax, 32(%r15)
	movq	16(%r15), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smiapp_ctrl_ops,4,2            ## @smiapp_ctrl_ops
	.comm	_V4L2_CID_TEST_PATTERN_RED,8,3  ## @V4L2_CID_TEST_PATTERN_RED
	.comm	_V4L2_CID_LINK_FREQ,4,2         ## @V4L2_CID_LINK_FREQ
	.no_dead_strip	_smiapp_init_late_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_init_late_controls
_smiapp_init_late_controls:             ; @smiapp_init_late_controls
	.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, x0
	ldp	x0, x8, [x0, #48]
	ldr	x21, [x8]
	ldp	x23, x22, [x19]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x24, #0
	mov	w25, #-1
Lloh0:
	adrp	x26, _V4L2_CID_TEST_PATTERN_RED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _V4L2_CID_TEST_PATTERN_RED@GOTPAGEOFF]
Lloh2:
	adrp	x20, _smiapp_ctrl_ops@GOTPAGE
Lloh3:
	ldr	x20, [x20, _smiapp_ctrl_ops@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w8, [x8, #8]
	lsl	w8, w25, w8
	mvn	w4, w8
	ldr	x0, [x19, #40]
	ldr	x8, [x26]
	add	x2, x24, x8
	mov	x1, x20
	mov	w3, #0
	mov	w5, #1
	mov	x6, x4
	bl	_v4l2_ctrl_new_std
	ldr	x8, [x19, #48]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x24, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	sub	x8, x21, x22
	lsl	x24, x8, #3
	ldr	x20, [x19, #16]
Lloh4:
	adrp	x8, _V4L2_CID_LINK_FREQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_CID_LINK_FREQ@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	x0, [x23, x24]
	bl	___fls
	mov	x22, x0
	ldr	x0, [x23, x24]
	bl	___ffs
	mov	x4, x0
	ldr	x8, [x19, #24]
	ldr	w5, [x8]
Lloh7:
	adrp	x1, _smiapp_ctrl_ops@GOTPAGE
Lloh8:
	ldr	x1, [x1, _smiapp_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_v4l2_ctrl_new_int_menu
	str	w0, [x19, #32]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_smiapp_ctrl_ops,4,2            ; @smiapp_ctrl_ops
	.comm	_V4L2_CID_TEST_PATTERN_RED,8,3  ; @V4L2_CID_TEST_PATTERN_RED
	.comm	_V4L2_CID_LINK_FREQ,4,2         ; @V4L2_CID_LINK_FREQ
	.no_dead_strip	_smiapp_init_late_controls
.subsections_via_symbols
