	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	36(%r15), %eax
	movl	%eax, 40(%r12)
	movl	36(%r12), %edi
	movl	32(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	32(%r12), %edi
	movl	28(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r15), %edx
	movl	%edx, (%r12)
	movups	12(%r15), %xmm0
	movups	%xmm0, 16(%r12)
	leal	-129(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_3
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_uvc_ctrl_add_mapping
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.4:
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_UVC_MAX_CONTROL_MENU_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_6
## %bb.8:
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	movl	8(%r15), %edi
	callq	_memdup_user
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_10:
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_uvc_trace
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	4(%r15), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_MAX_CONTROL_MENU_ENTRIES,4,2 ## @UVC_MAX_CONTROL_MENU_ENTRIES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVC_TRACE_CONTROL,4,2          ## @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported V4L2 control type %u.\n"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	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	w2, [x21]
	str	w2, [x19]
	ldur	q0, [x21, #12]
	str	q0, [x19, #16]
	sub	w8, w2, #129
	cmp	w8, #3
	b.hs	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_uvc_ctrl_add_mapping
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_12
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_4:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_10
; %bb.6:
Lloh6:
	adrp	x9, _UVC_MAX_CONTROL_MENU_ENTRIES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UVC_MAX_CONTROL_MENU_ENTRIES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.7:
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #4
	ldr	w0, [x21, #8]
	bl	_memdup_user
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	w0, LBB0_14
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_12
LBB0_9:
Lloh9:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
Lloh14:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_MAX_CONTROL_MENU_ENTRIES,4,2 ; @UVC_MAX_CONTROL_MENU_ENTRIES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVC_TRACE_CONTROL,4,2          ; @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported V4L2 control type %u.\n"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_uvc_ioctl_ctrl_map
.subsections_via_symbols
