	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __uvc_query_ctrl
___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
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	xorl	%esi, %esi
	testb	$-128, %r12b
	jne	LBB0_1
## %bb.2:
	callq	_usb_sndctrlpipe
	jmp	LBB0_3
LBB0_1:
	callq	_usb_rcvctrlpipe
LBB0_3:
	movl	24(%rbp), %r11d
	movl	16(%rbp), %r10d
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	testb	$-128, %r12b
	jne	LBB0_4
## %bb.5:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %r14d
	movl	(%r13), %edi
	shll	$8, %r15d
	shll	$8, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	subq	$8, %rsp
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	pushq	%r11
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_usb_control_msg
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.no_dead_strip	___uvc_query_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __uvc_query_ctrl
___uvc_query_ctrl:                      ; @__uvc_query_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x7
	mov	x19, x6
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _USB_TYPE_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _USB_RECIP_INTERFACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	ldr	w0, [x0]
	tbnz	w1, #7, LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_usb_sndctrlpipe
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_usb_rcvctrlpipe
LBB0_3:
	mov	x1, x0
	orr	w8, w28, w27
Lloh6:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh8:
	adrp	x10, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _USB_DIR_OUT@GOTPAGEOFF]
	tst	w22, #0x80
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w0, [x26]
	lsl	w4, w24, #8
	orr	w5, w23, w25, lsl #8
	str	w21, [sp]
	mov	x2, x22
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.no_dead_strip	___uvc_query_ctrl
.subsections_via_symbols
