	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_set_ext_ctrls
_try_set_ext_ctrls:                     ## @try_set_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	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(%rbx)
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movl	4(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.6:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jle	LBB0_9
## %bb.7:
	movl	4(%rbx), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_prepare_ext_ctrls
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_10
LBB0_15:
	movl	4(%rbx), %ebx
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jle	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r13d, %eax
	addq	$24, %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_19
## %bb.5:
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_class_check                    ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_try_or_set_ext_ctrls
	movl	%eax, %r13d
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.11:
	movl	4(%rbx), %esi
	movl	%esi, (%rbx)
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.12:
	testl	%esi, %esi
	jle	LBB0_14
## %bb.13:
	shlq	$2, %rsi
	movq	%r15, %rdi
	callq	___bzero
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_try_or_set_ext_ctrls
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	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
	.no_dead_strip	_try_set_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_set_ext_ctrls
_try_set_ext_ctrls:                     ; @try_set_ext_ctrls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldp	w8, w0, [x1, #4]
	str	w8, [x1]
	bl	_V4L2_CTRL_ID2CLASS
	str	w0, [x19, #8]
	cbz	x20, LBB0_7
; %bb.1:
	ldr	w23, [x19, #4]
	cbz	w23, LBB0_11
; %bb.2:
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.le	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #2
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_18
LBB0_4:
	cmp	w22, #0
	cset	w3, eq
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_prepare_ext_ctrls
	mov	x23, x0
	cbz	w0, LBB0_13
LBB0_5:
	ldr	w19, [x19, #4]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.le	LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_kfree
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.10:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.12:
	mov	x1, x0
	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
	add	sp, sp, #96
	b	_class_check
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_try_or_set_ext_ctrls
	mov	x23, x0
	cbz	w22, LBB0_5
; %bb.14:
	ldr	w8, [x19, #4]
	str	w8, [x19]
	cbnz	w23, LBB0_5
; %bb.15:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.16:
	lsl	x1, x8, #2
	mov	x0, x21
	bl	_bzero
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #1
	bl	_try_or_set_ext_ctrls
	mov	x23, x0
	b	LBB0_5
LBB0_18:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_try_set_ext_ctrls
.subsections_via_symbols
