	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_parm
_vidioc_s_parm:                         ## @vidioc_s_parm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rdx), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_GSPCA_MAX_FRAMES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_2
## %bb.3:
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$0, 4(%rbx)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	4(%rbx), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSPCA_MAX_FRAMES,4,2           ## @GSPCA_MAX_FRAMES
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_vidioc_s_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_parm
_vidioc_s_parm:                         ; @vidioc_s_parm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _GSPCA_MAX_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSPCA_MAX_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w8, w9, #0, ne
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	str	w8, [x19]
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_6:
	mov	w19, #0
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.8:
	str	wzr, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	w19, [x19, #4]
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GSPCA_MAX_FRAMES,4,2           ; @GSPCA_MAX_FRAMES
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_vidioc_s_parm
.subsections_via_symbols
