	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_s_input
_uvc_ioctl_s_input:                     ## @uvc_ioctl_s_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
	movl	%edx, %r14d
	movq	%rsi, %rdi
	movq	(%rsi), %rbx
	callq	_uvc_acquire_privileges
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	movq	_UVC_QUIRK_IGNORE_SELECTOR_UNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_5
LBB0_3:
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	cmpl	%r14d, (%rax)
	jbe	LBB0_6
## %bb.7:
	incl	%r14d
	movl	%r14d, -20(%rbp)
	movq	_UVC_SET_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%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
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_QUIRK_IGNORE_SELECTOR_UNIT,4,2 ## @UVC_QUIRK_IGNORE_SELECTOR_UNIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVC_SET_CUR,4,2                ## @UVC_SET_CUR
	.comm	_UVC_SU_INPUT_SELECT_CONTROL,4,2 ## @UVC_SU_INPUT_SELECT_CONTROL
	.no_dead_strip	_uvc_ioctl_s_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_s_input
_uvc_ioctl_s_input:                     ; @uvc_ioctl_s_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
	mov	x0, x1
	ldr	x20, [x1]
	bl	_uvc_acquire_privileges
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	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_5
LBB0_3:
	cbnz	w19, LBB0_7
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w9, [x8]
	cmp	w9, w19
	b.ls	LBB0_7
; %bb.6:
	add	w9, w19, #1
	str	w9, [sp, #12]
Lloh3:
	adrp	x9, _UVC_SET_CUR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UVC_SET_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x8, #4]
	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
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_QUIRK_IGNORE_SELECTOR_UNIT,4,2 ; @UVC_QUIRK_IGNORE_SELECTOR_UNIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVC_SET_CUR,4,2                ; @UVC_SET_CUR
	.comm	_UVC_SU_INPUT_SELECT_CONTROL,4,2 ; @UVC_SU_INPUT_SELECT_CONTROL
	.no_dead_strip	_uvc_ioctl_s_input
.subsections_via_symbols
