	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_g_input
_uvc_ioctl_g_input:                     ## @uvc_ioctl_g_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rsi), %rdx
	movq	8(%rdx), %rax
	xorl	%ebx, %ebx
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rdx), %rdi
	movq	_UVC_QUIRK_IGNORE_SELECTOR_UNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$0, %ecx
	testl	%edx, (%rdi)
	jne	LBB0_5
## %bb.2:
	movq	_UVC_GET_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movl	4(%rdi), %ecx
	movq	_UVC_SU_INPUT_SELECT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, (%rsp)
	leaq	-20(%rbp), %r9
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-20(%rbp), %ecx
	decl	%ecx
LBB0_5:
	movl	%ecx, (%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_QUIRK_IGNORE_SELECTOR_UNIT,4,2 ## @UVC_QUIRK_IGNORE_SELECTOR_UNIT
	.comm	_UVC_GET_CUR,4,2                ## @UVC_GET_CUR
	.comm	_UVC_SU_INPUT_SELECT_CONTROL,4,2 ## @UVC_SU_INPUT_SELECT_CONTROL
	.no_dead_strip	_uvc_ioctl_g_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ioctl_g_input
_uvc_ioctl_g_input:                     ; @uvc_ioctl_g_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	x9, [x1]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x0, [x9]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _UVC_QUIRK_IGNORE_SELECTOR_UNIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UVC_QUIRK_IGNORE_SELECTOR_UNIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x9, _UVC_GET_CUR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UVC_GET_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x8]
	ldr	w3, [x0, #4]
Lloh6:
	adrp	x8, _UVC_SU_INPUT_SELECT_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVC_SU_INPUT_SELECT_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x5, sp, #12
	mov	w6, #1
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
LBB0_5:
	mov	w0, #0
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_QUIRK_IGNORE_SELECTOR_UNIT,4,2 ; @UVC_QUIRK_IGNORE_SELECTOR_UNIT
	.comm	_UVC_GET_CUR,4,2                ; @UVC_GET_CUR
	.comm	_UVC_SU_INPUT_SELECT_CONTROL,4,2 ; @UVC_SU_INPUT_SELECT_CONTROL
	.no_dead_strip	_uvc_ioctl_g_input
.subsections_via_symbols
