	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_set_video_ctrl
_uvc_set_video_ctrl:                    ## @uvc_set_video_ctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_uvc_video_ctrl_size
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	88(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r13)
	movq	80(%rbx), %rax
	movq	%rax, 16(%r13)
	movq	72(%rbx), %rax
	movq	%rax, 24(%r13)
	movl	64(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, 32(%r13)
	movl	60(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 64(%r13)
	movl	56(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 80(%r13)
	movl	52(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 96(%r13)
	movl	48(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 112(%r13)
	movl	44(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 128(%r13)
	movl	40(%rbx), %edi
	leaq	144(%r13), %rsi
	callq	_put_unaligned_le32
	movl	36(%rbx), %edi
	leaq	176(%r13), %rsi
	callq	_put_unaligned_le32
	cmpl	$34, %r14d
	jl	LBB0_4
## %bb.3:
	movl	32(%rbx), %edi
	movq	%r13, %rsi
	addq	$208, %rsi
	callq	_put_unaligned_le32
	movq	24(%rbx), %rax
	movq	%rax, 240(%r13)
	movq	16(%rbx), %rax
	movq	%rax, 248(%r13)
	movq	8(%rbx), %rax
	movq	%rax, 256(%r13)
	movq	(%rbx), %rax
	movq	%rax, 264(%r13)
LBB0_4:
	movl	(%r12), %ecx
	movl	4(%r12), %edi
	movq	_UVC_SET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.6:
	movq	_UVC_VS_COMMIT_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_UVC_VS_PROBE_CONTROL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r8d
	movq	_uvc_timeout_param@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r13, %r9
	pushq	%rax
	pushq	%r14
	callq	___uvc_query_ctrl
	addq	$16, %rsp
	cmpl	%r14d, %eax
	je	LBB0_9
## %bb.8:
	testl	%r15d, %r15d
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_uvc_printk
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
LBB0_9:
	movq	%r13, %rdi
	callq	_kfree
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_SET_CUR,4,2                ## @UVC_SET_CUR
	.comm	_UVC_VS_PROBE_CONTROL,4,2       ## @UVC_VS_PROBE_CONTROL
	.comm	_UVC_VS_COMMIT_CONTROL,4,2      ## @UVC_VS_COMMIT_CONTROL
	.comm	_uvc_timeout_param,4,2          ## @uvc_timeout_param
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set UVC %s control : %d (exp. %u).\n"

L_.str.1:                               ## @.str.1
	.asciz	"probe"

L_.str.2:                               ## @.str.2
	.asciz	"commit"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_uvc_set_video_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_set_video_ctrl
_uvc_set_video_ctrl:                    ; @uvc_set_video_ctrl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_uvc_video_ctrl_size
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w0, [x23, #88]
	bl	_cpu_to_le16
	str	w0, [x20]
	ldr	x8, [x23, #80]
	str	x8, [x20, #16]
	ldr	x8, [x23, #72]
	str	x8, [x20, #24]
	ldr	w0, [x23, #64]
	bl	_cpu_to_le32
	str	w0, [x20, #32]
	ldr	w0, [x23, #60]
	bl	_cpu_to_le16
	str	w0, [x20, #64]
	ldr	w0, [x23, #56]
	bl	_cpu_to_le16
	str	w0, [x20, #80]
	ldr	w0, [x23, #52]
	bl	_cpu_to_le16
	str	w0, [x20, #96]
	ldr	w0, [x23, #48]
	bl	_cpu_to_le16
	str	w0, [x20, #112]
	ldr	w0, [x23, #44]
	bl	_cpu_to_le16
	str	w0, [x20, #128]
	ldr	w0, [x23, #40]
	add	x1, x20, #144
	bl	_put_unaligned_le32
	ldr	w0, [x23, #36]
	add	x1, x20, #176
	bl	_put_unaligned_le32
	cmp	w19, #34
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x23, #32]
	add	x1, x20, #208
	bl	_put_unaligned_le32
	ldr	x8, [x23, #24]
	str	x8, [x20, #240]
	ldr	x8, [x23, #16]
	str	x8, [x20, #248]
	ldr	x8, [x23, #8]
	str	x8, [x20, #256]
	ldr	x8, [x23]
	str	x8, [x20, #264]
LBB0_3:
Lloh3:
	adrp	x8, _UVC_SET_CUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_SET_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w3, w0, [x22]
Lloh6:
	adrp	x8, _UVC_VS_PROBE_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVC_VS_PROBE_CONTROL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _UVC_VS_COMMIT_CONTROL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UVC_VS_COMMIT_CONTROL@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w4, [x8]
Lloh10:
	adrp	x8, _uvc_timeout_param@GOTPAGE
Lloh11:
	ldr	x8, [x8, _uvc_timeout_param@GOTPAGEOFF]
Lloh12:
	ldr	w7, [x8]
	mov	w2, #0
	mov	x5, x20
	mov	x6, x19
	bl	___uvc_query_ctrl
	cmp	w0, w19
	b.eq	LBB0_5
; %bb.4:
	mov	x3, x0
Lloh13:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, l_.str.1@PAGE
Lloh17:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh18:
	adrp	x9, l_.str.2@PAGE
Lloh19:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x2, x9, x8, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x19
	bl	_uvc_printk
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_SET_CUR,4,2                ; @UVC_SET_CUR
	.comm	_UVC_VS_PROBE_CONTROL,4,2       ; @UVC_VS_PROBE_CONTROL
	.comm	_UVC_VS_COMMIT_CONTROL,4,2      ; @UVC_VS_COMMIT_CONTROL
	.comm	_uvc_timeout_param,4,2          ; @uvc_timeout_param
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set UVC %s control : %d (exp. %u).\n"

l_.str.1:                               ; @.str.1
	.asciz	"probe"

l_.str.2:                               ; @.str.2
	.asciz	"commit"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_uvc_set_video_ctrl
.subsections_via_symbols
