	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_s_std
_vpif_s_std:                            ## @vpif_s_std
	.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, %r15
	movq	%rsi, %r13
	movq	8(%rsi), %r12
	movq	24(%r12), %rbx
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	shlq	$4, %r14
	cmpq	$0, 8(%rbx,%r14)
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_vpif_err
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_VPIF_CHANNEL0_VIDEO@GOTPCREL(%rip), %rcx
	movq	(%r12), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_VPIF_CHANNEL1_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_8
LBB0_6:
	cmpl	$0, (%r13)
	je	LBB0_7
LBB0_8:
	leaq	20(%r12), %rdi
	leaq	4(%r13), %rsi
	callq	_v4l2_prio_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movl	$1, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movl	(%rdx), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
	jmp	LBB0_2
LBB0_11:
	movl	(%r15), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	callq	_vpif_update_std_info
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_vpif_err
	jmp	LBB0_15
LBB0_13:
	movq	%r12, %rdi
	callq	_vpif_config_format
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_s_std\n"

L_.str.1:                               ## @.str.1
	.asciz	"streaming in progress\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VPIF_CHANNEL0_VIDEO,8,3        ## @VPIF_CHANNEL0_VIDEO
	.comm	_VPIF_CHANNEL1_VIDEO,8,3        ## @VPIF_CHANNEL1_VIDEO
L_.str.2:                               ## @.str.2
	.asciz	"Channel Busy\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Error getting the standard info\n"

	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.comm	_core,4,2                       ## @core
	.comm	_s_std,4,2                      ## @s_std
L_.str.4:                               ## @.str.4
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_s_std
_vpif_s_std:                            ; @vpif_s_std
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	ldr	x20, [x1, #8]
	ldr	x24, [x20, #24]
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x23, _debug@GOTPAGE
Lloh4:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
	add	x8, x24, x25, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vpif_err
LBB0_2:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh11:
	adrp	x8, _VPIF_CHANNEL0_VIDEO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VPIF_CHANNEL0_VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20]
Lloh14:
	adrp	x10, _VPIF_CHANNEL1_VIDEO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VPIF_CHANNEL1_VIDEO@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x21]
	cbz	w8, LBB0_10
LBB0_7:
	add	x0, x20, #20
	add	x1, x21, #4
	bl	_v4l2_prio_check
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.8:
	mov	w8, #1
	str	w8, [x21]
	add	x21, x24, x25, lsl #4
	mov	x0, x21
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_11
; %bb.9:
Lloh17:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	ldr	w1, [x23]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
	b	LBB0_2
LBB0_11:
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_vpif_update_std_info
	cbz	x0, LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vpif_err
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_vpif_config_format
Lloh26:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh27:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w0, [x8, x9, lsl #2]
Lloh29:
	adrp	x8, _core@GOTPAGE
Lloh30:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _s_std@GOTPAGE
Lloh33:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	ldr	w3, [x19]
	bl	_v4l2_subdev_call
	mov	x22, x0
	tbz	w0, #31, LBB0_15
; %bb.14:
	ldr	w1, [x23]
Lloh35:
	adrp	x2, l_.str.4@PAGE
Lloh36:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
LBB0_15:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_s_std\n"

l_.str.1:                               ; @.str.1
	.asciz	"streaming in progress\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VPIF_CHANNEL0_VIDEO,8,3        ; @VPIF_CHANNEL0_VIDEO
	.comm	_VPIF_CHANNEL1_VIDEO,8,3        ; @VPIF_CHANNEL1_VIDEO
l_.str.2:                               ; @.str.2
	.asciz	"Channel Busy\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Error getting the standard info\n"

	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_core,4,2                       ; @core
	.comm	_s_std,4,2                      ; @s_std
l_.str.4:                               ; @.str.4
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_s_std
.subsections_via_symbols
