	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_g_ext_ctrls               ## -- Begin function v4l2_g_ext_ctrls
	.p2align	4, 0x90
_v4l2_g_ext_ctrls:                      ## @v4l2_g_ext_ctrls
	.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	$88, %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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rsi), %eax
	movl	8(%rsi), %edi
	movl	%eax, (%rsi)
	callq	_V4L2_CTRL_ID2CLASS
	movl	%eax, 8(%r15)
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.6:
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jle	LBB0_9
## %bb.7:
	movl	4(%r15), %edi
	shll	$4, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_prepare_ext_ctrls
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:
	movl	4(%r15), %eax
	movq	_V4L2_CTRL_FLAG_WRITE_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_EACCES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r12d
	negl	%r12d
	testl	%eax, %eax
	cmovlel	%ebx, %eax
	shlq	$4, %rax
	addq	$16, %rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rsi
	cmpq	%rsi, %rax
	je	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14,%rbx), %rdi
	movq	%rsi, %rbx
	testl	%ecx, (%rdi)
	je	LBB0_11
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rbx
	testl	%edx, %edx
	je	LBB0_11
LBB0_23:
	movl	4(%r15), %ebx
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jle	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_25
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.5:
	movq	%r12, %rdi
	movl	%eax, %esi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_class_check                    ## TAILCALL
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	leaq	8(%r14), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_cur_to_user@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_cluster_walk
	movl	%eax, %r12d
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_v4l2_ctrl_unlock
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_cluster_done
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	addq	$16, %r13
	testl	%r12d, %r12d
	jne	LBB0_23
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%r15), %rax
	xorl	%r12d, %r12d
	cmpq	%rax, %rbx
	jge	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, -8(%r13)
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13), %r12
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	movl	%ebx, (%r15)
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_v4l2_ctrl_lock
	cmpq	$0, 16(%r12)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	*%rax
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_18
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_V4L2_CTRL_FLAG_WRITE_ONLY,4,2  ## @V4L2_CTRL_FLAG_WRITE_ONLY
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_cur_to_user,4,2                ## @cur_to_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_g_ext_ctrls               ; -- Begin function v4l2_g_ext_ctrls
	.p2align	2
_v4l2_g_ext_ctrls:                      ; @v4l2_g_ext_ctrls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldp	w8, w0, [x1, #4]
	str	w8, [x1]
	bl	_V4L2_CTRL_ID2CLASS
	str	w0, [x19, #8]
	cbz	x21, LBB0_8
; %bb.1:
	ldr	w22, [x19, #4]
	cbz	w22, LBB0_10
; %bb.2:
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.le	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #4
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_prepare_ext_ctrls
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.5:
	mov	x10, #0
	ldr	w11, [x19, #4]
Lloh6:
	adrp	x8, _V4L2_CTRL_FLAG_WRITE_ONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_WRITE_ONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EACCES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	neg	w21, w9
	cmp	w11, #0
	csel	w11, w11, wzr, gt
	lsl	x11, x11, #4
	add	x11, x11, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x10, #16
	cmp	x11, x12
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x20, x10
	ldr	x10, [x10, #8]
	ldr	w10, [x10]
	and	w10, w8, w10
	cmp	w10, #0
	ccmp	w9, #0, #4, ne
	mov	x10, x12
	b.eq	LBB0_6
	b	LBB0_24
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_26
LBB0_10:
	ldr	x8, [sp, #72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.11:
	mov	x1, x0
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_class_check
LBB0_12:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	mov	x22, #0
	add	x24, x20, #8
Lloh19:
	adrp	x25, _cur_to_user@GOTPAGE
Lloh20:
	ldr	x25, [x25, _cur_to_user@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w21, #0
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	add	x24, x24, #16
	cbnz	w21, LBB0_24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x24, #-8]
	cbnz	x8, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x21, [x24]
	ldr	x8, [x21, #24]
	ldr	x23, [x8]
	str	w22, [x19]
	mov	x0, x23
	bl	_v4l2_ctrl_lock
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x23
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w3, [x25]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_cluster_walk
	mov	x21, x0
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x23
	bl	_v4l2_ctrl_unlock
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_cluster_done
	b	LBB0_15
LBB0_23:
	mov	w21, #0
LBB0_24:
	ldr	w19, [x19, #4]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.le	LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_kfree
LBB0_26:
	ldr	x8, [sp, #72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_V4L2_CTRL_FLAG_WRITE_ONLY,4,2  ; @V4L2_CTRL_FLAG_WRITE_ONLY
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_cur_to_user,4,2                ; @cur_to_user
.subsections_via_symbols
