	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ## @vidioc_s_fmt_vid_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_vidioc_try_fmt_vid_cap
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%r15), %rax
	movq	_stream_on@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_usbvision_stream_interrupt
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_usbvision_frames_free
	movq	%r15, %rdi
	callq	_usbvision_empty_framequeues
	movq	$0, 8(%r15)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_usbvision_set_output
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stream_on,8,3                  ## @stream_on
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ; @vidioc_s_fmt_vid_cap
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_video_drvdata
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_vidioc_try_fmt_vid_cap
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _stream_on@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stream_on@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_usbvision_stream_interrupt
	cbnz	w0, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_usbvision_frames_free
	mov	x0, x20
	bl	_usbvision_empty_framequeues
	str	xzr, [x20, #8]
	ldp	w2, w1, [x19]
	mov	x0, x20
	bl	_usbvision_set_output
	mov	w0, #0
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_stream_on,8,3                  ; @stream_on
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols
