	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movl	$0, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	$0, -32(%rbp)
	cmpl	$0, 8(%r15)
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_EM28XX_MIN_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_CAP_TIMEPERFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	(%r15), %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_frame_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r8
	xorl	%esi, %esi
	callq	_v4l2_device_call_until_err
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EM28XX_MIN_BUF,4,2             ## @EM28XX_MIN_BUF
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ## @V4L2_CAP_TIMEPERFRAME
	.comm	_video,4,2                      ## @video
	.comm	_s_frame_interval,4,2           ## @s_frame_interval
	.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_video_drvdata
	mov	x19, x20
	ldr	w8, [x19, #8]!
	stp	wzr, w8, [sp]
	str	wzr, [sp, #8]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x8, _EM28XX_MIN_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EM28XX_MIN_BUF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	ldr	x0, [x21]
Lloh12:
	adrp	x8, _video@GOTPAGE
Lloh13:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _s_frame_interval@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_frame_interval@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x4, sp
	mov	w1, #0
	bl	_v4l2_device_call_until_err
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w8, [sp]
	str	w8, [x19]
	b	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EM28XX_MIN_BUF,4,2             ; @EM28XX_MIN_BUF
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ; @V4L2_CAP_TIMEPERFRAME
	.comm	_video,4,2                      ; @video
	.comm	_s_frame_interval,4,2           ; @s_frame_interval
	.no_dead_strip	_vidioc_s_parm
.subsections_via_symbols
