	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_s_output
_vpif_s_output:                         ## @vpif_s_output
	.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
	movl	%edx, %r14d
	movq	(%rsi), %r12
	movq	(%r12), %r13
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	cmpq	$0, 8(%r13,%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_vpif_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_v4l2_device_call_until_err
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_vpif_err
LBB0_6:
	movl	%r14d, 8(%r12)
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Streaming in progress\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_vpif_obj,4,2                   ## @vpif_obj
	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set output standard\n"

	.no_dead_strip	_vpif_s_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_s_output
_vpif_s_output:                         ; @vpif_s_output
	.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
	ldr	x22, [x1]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x19, x8, x9, lsl #4
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vpif_err
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _video@GOTPAGE
Lloh12:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _s_routing@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh18:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	mov	w1, #1
	mov	w4, #0
	mov	x5, x20
	mov	w6, #0
	bl	_v4l2_device_call_until_err
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vpif_err
LBB0_6:
	str	w20, [x22, #8]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x21
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Streaming in progress\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_vpif_obj,4,2                   ; @vpif_obj
	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set output standard\n"

	.no_dead_strip	_vpif_s_output
.subsections_via_symbols
