	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_query_ctrl                 ## -- Begin function uvc_query_ctrl
	.p2align	4, 0x90
_uvc_query_ctrl:                        ## @uvc_query_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	16(%rbp), %r15d
	movq	_UVC_CTRL_CONTROL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	pushq	%rax
	pushq	%r15
	callq	___uvc_query_ctrl
	addq	$16, %rsp
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_likely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_uvc_query_name
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_uvc_printk
	addq	$16, %rsp
	movq	_EPIPE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%ebx, %r15d
	addl	%ebx, %eax
	jne	LBB0_13
## %bb.2:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r12d
	movq	_UVC_GET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UVC_VC_REQUEST_ERROR_CODE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_UVC_CTRL_CONTROL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r9
	pushq	%rax
	pushq	$1
	callq	___uvc_query_ctrl
	addq	$16, %rsp
	movl	(%rbx), %r13d
	movl	%r12d, (%rbx)
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_UVC_TRACE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_uvc_trace
	cmpl	$8, %r13d
	ja	LBB0_12
## %bb.5:
	movl	%r13d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	subl	(%r14), %r15d
	testl	%eax, %eax
	cmovsl	%eax, %r15d
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
	subl	(%r14), %r15d
	jmp	LBB0_13
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_EREMOTE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_UVC_CTRL_CONTROL_TIMEOUT,4,2   ## @UVC_CTRL_CONTROL_TIMEOUT
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query (%s) UVC control %u on unit %u: %d (exp. %u).\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_UVC_GET_CUR,4,2                ## @UVC_GET_CUR
	.comm	_UVC_VC_REQUEST_ERROR_CODE_CONTROL,4,2 ## @UVC_VC_REQUEST_ERROR_CODE_CONTROL
	.comm	_UVC_TRACE_CONTROL,4,2          ## @UVC_TRACE_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"Control error %u\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_EREMOTE,4,2                    ## @EREMOTE
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_query_ctrl                 ; -- Begin function uvc_query_ctrl
	.p2align	2
_uvc_query_ctrl:                        ; @uvc_query_ctrl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x19, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
Lloh0:
	adrp	x28, _UVC_CTRL_CONTROL_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _UVC_CTRL_CONTROL_TIMEOUT@GOTPAGEOFF]
	ldr	w7, [x28]
	bl	___uvc_query_ctrl
	mov	x20, x0
	cmp	w0, w23
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_15
LBB0_2:
Lloh2:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
	mov	x0, x26
	bl	_uvc_query_name
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x27
	mov	x3, x24
	mov	x4, x25
	mov	x5, x20
	mov	x6, x23
	bl	_uvc_printk
Lloh7:
	adrp	x23, _EPIPE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EPIPE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w20, w8
	b.ne	LBB0_15
; %bb.3:
Lloh9:
	adrp	x8, _UVC_GET_CUR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UVC_GET_CUR@GOTPAGEOFF]
	ldr	w24, [x19]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _UVC_VC_REQUEST_ERROR_CODE_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UVC_VC_REQUEST_ERROR_CODE_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	ldr	w7, [x28]
	mov	x0, x22
	mov	w2, #0
	mov	x3, x21
	mov	x5, x19
	mov	w6, #1
	bl	___uvc_query_ctrl
	ldr	w20, [x19]
	str	w24, [x19]
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
Lloh15:
	adrp	x8, _UVC_TRACE_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UVC_TRACE_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_uvc_trace
	cmp	w20, #8
	b.hi	LBB0_8
; %bb.5:
Lloh20:
	adrp	x8, lJTI0_0@PAGE
Lloh21:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_6
	ldrb	w10, [x8, x20]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	w8, [x23]
	cmp	w0, #0
	csneg	w20, w0, w8, lt
	b	LBB0_15
LBB0_8:
	ldr	w8, [x23]
	b	LBB0_14
LBB0_9:
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh26:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh28:
	adrp	x8, _EREMOTE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EREMOTE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh30:
	adrp	x8, _ERANGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
LBB0_14:
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_UVC_CTRL_CONTROL_TIMEOUT,4,2   ; @UVC_CTRL_CONTROL_TIMEOUT
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query (%s) UVC control %u on unit %u: %d (exp. %u).\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_UVC_GET_CUR,4,2                ; @UVC_GET_CUR
	.comm	_UVC_VC_REQUEST_ERROR_CODE_CONTROL,4,2 ; @UVC_VC_REQUEST_ERROR_CODE_CONTROL
	.comm	_UVC_TRACE_CONTROL,4,2          ; @UVC_TRACE_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"Control error %u\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_EREMOTE,4,2                    ; @EREMOTE
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
