	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __uvc_ctrl_add_mapping
___uvc_ctrl_add_mapping:                ## @__uvc_ctrl_add_mapping
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	40(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r15), %eax
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	movq	32(%r15), %rdi
	movl	(%r12), %edx
	callq	_kmemdup
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.6:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rdi
	leaq	8(%r14), %rsi
	callq	_list_add_tail
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_uvc_get_le_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_7:
	movq	_uvc_set_le_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_uvc_get_le_value,8,3           ## @uvc_get_le_value
	.comm	_uvc_set_le_value,8,3           ## @uvc_set_le_value
	.comm	_UVC_TRACE_CONTROL,4,2          ## @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding mapping '%s' to control %pUl/%u.\n"

	.no_dead_strip	___uvc_ctrl_add_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __uvc_ctrl_add_mapping
___uvc_ctrl_add_mapping:                ; @__uvc_ctrl_add_mapping
	.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, x2
	mov	x19, x1
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #48
	bl	_kmemdup
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x0, x0, #40
	bl	_INIT_LIST_HEAD
	ldr	w8, [x21]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #4
	ldr	x0, [x21, #32]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
LBB0_4:
	add	x0, x20, #8
	add	x1, x19, #8
	bl	_list_add_tail
Lloh2:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
	ldp	w4, w3, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_kfree
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
Lloh10:
	adrp	x8, _uvc_get_le_value@GOTPAGE
Lloh11:
	ldr	x8, [x8, _uvc_get_le_value@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
LBB0_9:
Lloh13:
	adrp	x8, _uvc_set_le_value@GOTPAGE
Lloh14:
	ldr	x8, [x8, _uvc_set_le_value@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_uvc_get_le_value,8,3           ; @uvc_get_le_value
	.comm	_uvc_set_le_value,8,3           ; @uvc_set_le_value
	.comm	_UVC_TRACE_CONTROL,4,2          ; @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding mapping '%s' to control %pUl/%u.\n"

	.no_dead_strip	___uvc_ctrl_add_mapping
.subsections_via_symbols
