	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_s_fmt_vid_out
_vpif_s_fmt_vid_out:                    ## @vpif_s_fmt_vid_out
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	8(%rsi), %rbx
	movq	(%rbx), %rax
	movq	16(%rbx), %r12
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	_VPIF_CHANNEL2_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_VPIF_CHANNEL3_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_2
LBB0_7:
	shlq	$4, %r13
	cmpq	$0, 8(%r12,%r13)
	je	LBB0_9
## %bb.8:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.5:
	leaq	8(%rbx), %rdi
	leaq	4(%r15), %rsi
	callq	_v4l2_prio_check
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	$1, (%r15)
	jmp	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vpif_check_format
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	leaq	(%r12,%r13), %rbx
	movl	(%r14), %eax
	movl	%eax, 4(%r12,%r13)
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movl	$1, %edi
	callq	_vpif_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	(%r12,%r13), %rax
	addq	$4, %rax
	movl	(%r14), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_VPIF_CHANNEL2_VIDEO,8,3        ## @VPIF_CHANNEL2_VIDEO
	.comm	_VPIF_CHANNEL3_VIDEO,8,3        ## @VPIF_CHANNEL3_VIDEO
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel Busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Streaming in progress\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_vpif_s_fmt_vid_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_s_fmt_vid_out
_vpif_s_fmt_vid_out:                    ; @vpif_s_fmt_vid_out
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	ldr	x20, [x1, #8]
	ldr	x22, [x20, #16]
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _VPIF_CHANNEL2_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPIF_CHANNEL2_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x20]
Lloh6:
	adrp	x10, _VPIF_CHANNEL3_VIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VPIF_CHANNEL3_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_9
; %bb.2:
	add	x0, x20, #8
	add	x1, x21, #4
	bl	_v4l2_prio_check
	cbnz	w0, LBB0_12
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
LBB0_4:
	add	x8, x22, x23, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _debug@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_vpif_check_format
	cbnz	w0, LBB0_12
; %bb.7:
	add	x20, x22, x23, lsl #4
	ldr	w8, [x19]
	mov	x21, x20
	str	w8, [x21, #4]!
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_13
; %bb.8:
Lloh14:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _debug@GOTPAGE
Lloh17:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	w0, #1
	bl	_vpif_dbg
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x19]
	str	w8, [x21]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_VPIF_CHANNEL2_VIDEO,8,3        ; @VPIF_CHANNEL2_VIDEO
	.comm	_VPIF_CHANNEL3_VIDEO,8,3        ; @VPIF_CHANNEL3_VIDEO
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel Busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Streaming in progress\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_vpif_s_fmt_vid_out
.subsections_via_symbols
