	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_ctrl_map
_uvc_ioctl_ctrl_map:                    ## @uvc_ioctl_ctrl_map
	.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, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	36(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	36(%rbx), %edi
	movl	32(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	32(%rbx), %edi
	movl	28(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r15), %edx
	movl	%edx, (%rbx)
	movups	12(%r15), %xmm0
	movups	%xmm0, 16(%rbx)
	leal	-129(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uvc_ctrl_add_mapping
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_4:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.6:
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_uvc_trace
	jmp	LBB0_8
LBB0_7:
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_uvc_trace
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	4(%r15), %eax
	shll	$4, %eax
	leal	(%rax,%rax,2), %r12d
	movl	(%r13), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	8(%r15), %esi
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_copy_from_user
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_17:
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_TRACE_CONTROL,4,2          ## @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_CTRL_TYPE_MENU not supported for UVCIOC_CTRL_MAP_OLD.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported V4L2 control type %u.\n"

	.no_dead_strip	_uvc_ioctl_ctrl_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ioctl_ctrl_map
_uvc_ioctl_ctrl_map:                    ; @uvc_ioctl_ctrl_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	w1, w8, [x21, #32]
	str	w8, [x0, #40]
	ldr	w0, [x0, #36]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #32]
	ldr	w1, [x21, #28]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x19]
	ldur	q0, [x21, #12]
	str	q0, [x19, #16]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_uvc_ctrl_add_mapping
	mov	x20, x0
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
	cbz	w22, LBB0_12
; %bb.6:
Lloh5:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x9, _UVC_TRACE_CONTROL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_uvc_trace
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w8, [x21, #4]
	add	w8, w8, w8, lsl #1
	lsl	w22, w8, #4
	ldr	w1, [x23]
	mov	x0, x22
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w1, [x21, #8]
	mov	x2, x22
	bl	_copy_from_user
	cbz	w0, LBB0_16
; %bb.14:
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_TRACE_CONTROL,4,2          ; @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_CTRL_TYPE_MENU not supported for UVCIOC_CTRL_MAP_OLD.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported V4L2 control type %u.\n"

	.no_dead_strip	_uvc_ioctl_ctrl_map
.subsections_via_symbols
