	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_flash_init_controls
_v4l2_flash_init_controls:              ## @v4l2_flash_init_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	%rsi, %r15
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	movq	_STROBE_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_NUM_FLASH_CTRLS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$40, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	___fill_ctrl_init_data
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.5:
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_4:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_7:
	andl	$-4, %ecx
	xorl	%edx, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rdi)
	sbbl	$-1, %esi
	cmpq	$1, 40(%rdi)
	sbbl	$-1, %esi
	cmpq	$1, 80(%rdi)
	sbbl	$-1, %esi
	cmpq	$1, 120(%rdi)
	sbbl	$-1, %esi
	addq	$4, %rdx
	addq	$160, %rdi
	cmpq	%rdx, %rcx
	jne	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rbx,%rcx,8), %rcx
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rcx,%rdx)
	sbbl	$-1, %esi
	addq	$40, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_init
	movq	_NUM_FLASH_CTRLS@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_24
## %bb.13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	$36, %r14
	xorl	%r13d, %r13d
	movq	_V4L2_CID_FLASH_LED_MODE@GOTPCREL(%rip), %rbx
	movq	_v4l2_flash_ctrl_ops@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movslq	(%rdx), %rax
	addq	$40, %r14
	cmpq	%rax, %r13
	jge	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -36(%r14)
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-28(%r14), %rdx
	cmpq	(%rbx), %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_V4L2_CID_FLASH_STROBE_SOURCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-4(%r14), %ecx
	movl	-8(%r14), %r8d
	movl	-16(%r14), %eax
	movl	-12(%r14), %r9d
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_ctrl_new_std
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-16(%r14), %r9d
	movl	-8(%r14), %ecx
	movl	(%r14), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_ctrl_new_std_menu
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	testq	%rax, %rax
	movq	_NUM_FLASH_CTRLS@GOTPCREL(%rip), %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-20(%r14), %ecx
	orl	%ecx, (%rax)
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_STROBE_SOURCE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r13
	jg	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	jmp	LBB0_23
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_27
LBB0_26:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	%r12, 8(%r12)
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STROBE_SOURCE,4,2              ## @STROBE_SOURCE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NUM_FLASH_CTRLS,4,2            ## @NUM_FLASH_CTRLS
	.comm	_V4L2_CID_FLASH_LED_MODE,8,3    ## @V4L2_CID_FLASH_LED_MODE
	.comm	_V4L2_CID_FLASH_STROBE_SOURCE,8,3 ## @V4L2_CID_FLASH_STROBE_SOURCE
	.comm	_v4l2_flash_ctrl_ops,4,2        ## @v4l2_flash_ctrl_ops
	.no_dead_strip	_v4l2_flash_init_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_flash_init_controls
_v4l2_flash_init_controls:              ; @v4l2_flash_init_controls
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _STROBE_SOURCE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STROBE_SOURCE@GOTPAGEOFF]
	ldr	w0, [x0, #16]
	ldr	w8, [x22]
	add	w1, w8, #1
Lloh2:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
Lloh4:
	adrp	x23, _NUM_FLASH_CTRLS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NUM_FLASH_CTRLS@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x20]
	mov	w1, #40
	bl	_kcalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	___fill_ctrl_init_data
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.4:
	mov	x9, #0
	mov	w1, #0
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_25
LBB0_6:
	mov	w1, #0
	b	LBB0_12
LBB0_7:
	mov	w12, #0
	mov	w13, #0
	mov	w11, #0
	mov	w10, #0
	and	x9, x8, #0xfffffffc
	add	x14, x20, #80
	mov	x15, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x16, [x14, #-80]
	ldur	x17, [x14, #-40]
	ldr	x0, [x14]
	ldr	x1, [x14, #40]
	cmp	x16, #0
	cinc	w12, w12, ne
	cmp	x17, #0
	cinc	w13, w13, ne
	cmp	x0, #0
	cinc	w11, w11, ne
	cmp	x1, #0
	cinc	w10, w10, ne
	add	x14, x14, #160
	subs	x15, x15, #4
	b.ne	LBB0_8
; %bb.9:
	add	w12, w13, w12
	add	w11, w11, w12
	add	w1, w10, w11
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_10:
	mov	w10, #40
	madd	x10, x9, x10, x20
	sub	x8, x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10], #40
	cmp	x9, #0
	cinc	w1, w1, ne
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_init
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.13:
	mov	x24, #0
	add	x25, x20, #20
Lloh9:
	adrp	x26, _V4L2_CID_FLASH_LED_MODE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _V4L2_CID_FLASH_LED_MODE@GOTPAGEOFF]
Lloh11:
	adrp	x27, _V4L2_CID_FLASH_STROBE_SOURCE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _V4L2_CID_FLASH_STROBE_SOURCE@GOTPAGEOFF]
Lloh13:
	adrp	x21, _v4l2_flash_ctrl_ops@GOTPAGE
Lloh14:
	ldr	x21, [x21, _v4l2_flash_ctrl_ops@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x25, x25, #40
	cmp	x24, x8
	b.ge	LBB0_22
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x25, #-20]
	cbz	x8, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldur	x2, [x25, #-12]
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w3, [x25, #8]
	ldr	w4, [x25, #16]
	ldr	w5, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_ctrl_new_std_menu
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldp	w4, w3, [x25, #8]
	ldp	w6, w5, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	ldur	w8, [x25, #-4]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.gt	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #24]
	str	x0, [x8, x24, lsl #3]
	b	LBB0_14
LBB0_22:
	mov	x0, x20
	bl	_kfree
	ldr	w20, [x19]
	cbz	w20, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_25
LBB0_24:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	str	x19, [x19, #8]
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STROBE_SOURCE,4,2              ; @STROBE_SOURCE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NUM_FLASH_CTRLS,4,2            ; @NUM_FLASH_CTRLS
	.comm	_V4L2_CID_FLASH_LED_MODE,8,3    ; @V4L2_CID_FLASH_LED_MODE
	.comm	_V4L2_CID_FLASH_STROBE_SOURCE,8,3 ; @V4L2_CID_FLASH_STROBE_SOURCE
	.comm	_v4l2_flash_ctrl_ops,4,2        ; @v4l2_flash_ctrl_ops
	.no_dead_strip	_v4l2_flash_init_controls
.subsections_via_symbols
