	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_s_parm_cap                ## -- Begin function v4l2_s_parm_cap
	.p2align	4, 0x90
_v4l2_s_parm_cap:                       ## @v4l2_s_parm_cap
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	12(%rdx), %eax
	movl	%eax, -32(%rbp)
	movq	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	addl	%ecx, %ecx
	movl	%ecx, 8(%rbx)
	movq	_video@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_g_frame_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_v4l2_subdev_has_op
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_V4L2_CAP_TIMEPERFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	movl	(%r15), %esi
	movq	_s_frame_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	-32(%rbp), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.comm	_video,4,2                      ## @video
	.comm	_g_frame_interval,4,2           ## @g_frame_interval
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ## @V4L2_CAP_TIMEPERFRAME
	.comm	_s_frame_interval,4,2           ## @s_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_s_parm_cap                ; -- Begin function v4l2_s_parm_cap
	.p2align	2
_v4l2_s_parm_cap:                       ; @v4l2_s_parm_cap
	.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
	ldr	w8, [x2, #12]
	str	w8, [sp, #8]
	ldr	x8, [x2]
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.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, x2, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x8, _V4L2_CAP_READWRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CAP_READWRITE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	lsl	w8, w8, #1
	str	w8, [x19, #8]
Lloh9:
	adrp	x21, _video@GOTPAGE
Lloh10:
	ldr	x21, [x21, _video@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _g_frame_interval@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_frame_interval@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_v4l2_subdev_has_op
	cbz	x0, LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _V4L2_CAP_TIMEPERFRAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CAP_TIMEPERFRAME@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_3:
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _s_frame_interval@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_frame_interval@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #8]
	str	w8, [x19, #12]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.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	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.comm	_video,4,2                      ; @video
	.comm	_g_frame_interval,4,2           ; @g_frame_interval
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ; @V4L2_CAP_TIMEPERFRAME
	.comm	_s_frame_interval,4,2           ; @s_frame_interval
.subsections_via_symbols
