	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ctrl_fill_xu_info
_uvc_ctrl_fill_xu_info:                 ## @uvc_ctrl_fill_xu_info
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	16(%rbx), %edi
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r12), %r8
	movq	%r8, 24(%rbx)
	incq	%r8
	movq	%r8, 8(%rbx)
	movq	_UVC_GET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r14, %r9
	pushq	$2
	callq	_uvc_query_ctrl
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_le16_to_cpup
	movl	%eax, 4(%rbx)
	movq	_UVC_CTRL_FLAG_GET_MIN@GOTPCREL(%rip), %rax
	movq	_UVC_CTRL_FLAG_GET_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_UVC_CTRL_FLAG_GET_RES@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_UVC_CTRL_FLAG_GET_DEF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_uvc_ctrl_get_flags
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_uvc_ctrl_fixup_xu_info
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rcx
	movl	(%rbx), %eax
	movl	4(%rbx), %r8d
	movq	_UVC_CTRL_FLAG_GET_CUR@GOTPCREL(%rip), %rsi
	xorl	%r9d, %r9d
	movl	(%rsi), %esi
	andl	%eax, %esi
	setne	%r9b
	movq	_UVC_CTRL_FLAG_SET_CUR@GOTPCREL(%rip), %rsi
	xorl	%r10d, %r10d
	movl	(%rsi), %esi
	andl	%eax, %esi
	setne	%r10b
	movq	_UVC_CTRL_FLAG_AUTO_UPDATE@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	andl	(%rsi), %eax
	setne	%bl
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_uvc_trace
	addq	$16, %rsp
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r15d
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_uvc_trace
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movl	%r15d, %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_GET_LEN,4,2                ## @UVC_GET_LEN
	.comm	_UVC_TRACE_CONTROL,4,2          ## @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET_LEN failed on control %pUl/%u (%d).\n"

	.comm	_UVC_CTRL_FLAG_GET_MIN,4,2      ## @UVC_CTRL_FLAG_GET_MIN
	.comm	_UVC_CTRL_FLAG_GET_MAX,4,2      ## @UVC_CTRL_FLAG_GET_MAX
	.comm	_UVC_CTRL_FLAG_GET_RES,4,2      ## @UVC_CTRL_FLAG_GET_RES
	.comm	_UVC_CTRL_FLAG_GET_DEF,4,2      ## @UVC_CTRL_FLAG_GET_DEF
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get flags for control %pUl/%u (%d).\n"

L_.str.2:                               ## @.str.2
	.asciz	"XU control %pUl/%u queried: len %u, flags { get %u set %u auto %u }.\n"

	.comm	_UVC_CTRL_FLAG_GET_CUR,4,2      ## @UVC_CTRL_FLAG_GET_CUR
	.comm	_UVC_CTRL_FLAG_SET_CUR,4,2      ## @UVC_CTRL_FLAG_SET_CUR
	.comm	_UVC_CTRL_FLAG_AUTO_UPDATE,4,2  ## @UVC_CTRL_FLAG_AUTO_UPDATE
	.no_dead_strip	_uvc_ctrl_fill_xu_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ctrl_fill_xu_info
_uvc_ctrl_fill_xu_info:                 ; @uvc_ctrl_fill_xu_info
	.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	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #16]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_memcpy
	ldp	x9, x8, [x22]
	str	x8, [x20, #24]
	add	x4, x8, #1
	str	x4, [x20, #8]
Lloh3:
	adrp	x8, _UVC_GET_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_GET_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x9]
	ldr	w3, [x23]
	mov	x0, x23
	mov	x5, x19
	mov	w6, #2
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_le16_to_cpup
Lloh6:
	adrp	x8, _UVC_CTRL_FLAG_GET_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVC_CTRL_FLAG_GET_MIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _UVC_CTRL_FLAG_GET_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _UVC_CTRL_FLAG_GET_DEF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_DEF@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w0, [x20]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_uvc_ctrl_get_flags
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_uvc_ctrl_fixup_xu_info
Lloh18:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
	ldr	x3, [x20, #8]
	ldp	w8, w4, [x20]
Lloh21:
	adrp	x9, _UVC_CTRL_FLAG_GET_CUR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_CUR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh24:
	adrp	x10, _UVC_CTRL_FLAG_SET_CUR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _UVC_CTRL_FLAG_SET_CUR@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w10, ne
Lloh27:
	adrp	x11, _UVC_CTRL_FLAG_AUTO_UPDATE@GOTPAGE
Lloh28:
	ldr	x11, [x11, _UVC_CTRL_FLAG_AUTO_UPDATE@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w11, w8
	cset	w8, ne
	stp	x10, x8, [sp, #8]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x9, [sp]
	b	LBB0_8
LBB0_4:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_5:
	mov	x21, x0
Lloh35:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
	ldr	x3, [x20, #8]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh40:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
	ldr	x3, [x20, #8]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x4, x21
LBB0_8:
	bl	_uvc_trace
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_GET_LEN,4,2                ; @UVC_GET_LEN
	.comm	_UVC_TRACE_CONTROL,4,2          ; @UVC_TRACE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET_LEN failed on control %pUl/%u (%d).\n"

	.comm	_UVC_CTRL_FLAG_GET_MIN,4,2      ; @UVC_CTRL_FLAG_GET_MIN
	.comm	_UVC_CTRL_FLAG_GET_MAX,4,2      ; @UVC_CTRL_FLAG_GET_MAX
	.comm	_UVC_CTRL_FLAG_GET_RES,4,2      ; @UVC_CTRL_FLAG_GET_RES
	.comm	_UVC_CTRL_FLAG_GET_DEF,4,2      ; @UVC_CTRL_FLAG_GET_DEF
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get flags for control %pUl/%u (%d).\n"

l_.str.2:                               ; @.str.2
	.asciz	"XU control %pUl/%u queried: len %u, flags { get %u set %u auto %u }.\n"

	.comm	_UVC_CTRL_FLAG_GET_CUR,4,2      ; @UVC_CTRL_FLAG_GET_CUR
	.comm	_UVC_CTRL_FLAG_SET_CUR,4,2      ; @UVC_CTRL_FLAG_SET_CUR
	.comm	_UVC_CTRL_FLAG_AUTO_UPDATE,4,2  ; @UVC_CTRL_FLAG_AUTO_UPDATE
	.no_dead_strip	_uvc_ctrl_fill_xu_info
.subsections_via_symbols
