	.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
	movl	%edx, %r15d
	movq	_vpif_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_V4L2_OUT_CAP_STD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	24(%r14), %r12
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,4), %rdi
	addq	$8, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_VPIF_V4L2_STD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.9:
	movl	%r15d, 16(%r14)
	movq	%r14, %rdi
	addq	$20, %rdi
	movl	%r15d, %ebx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_vpif_update_resolution
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movl	(%r12,%r13,4), %eax
	movl	%eax, 4(%r12,%r13,4)
	movq	_video@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_s_std_output@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	%ebx, %r8d
	callq	_v4l2_device_call_until_err
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movl	(%r14), %edx
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	%ebx, %r8d
	callq	_v4l2_device_call_until_err
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
LBB0_16:
	callq	_vpif_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_dev,8,3                   ## @vpif_dev
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_V4L2_OUT_CAP_STD,8,3           ## @V4L2_OUT_CAP_STD
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VPIF_V4L2_STD,4,2              ## @VPIF_V4L2_STD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_vpif_obj,4,2                   ## @vpif_obj
	.comm	_video,4,2                      ## @video
	.comm	_s_std_output,4,2               ## @s_std_output
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set output standard\n"

	.comm	_s_std,4,2                      ## @s_std
L_.str.1:                               ## @.str.1
	.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	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
Lloh0:
	adrp	x8, _vpif_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpif_dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8]
	bl	_video_devdata
	bl	_video_get_drvdata
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _V4L2_OUT_CAP_STD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_OUT_CAP_STD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x21, [x20, #24]
Lloh6:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	mov	w8, #12
	madd	x8, x22, x8, x21
	add	x0, x8, #8
	bl	_vb2_is_busy
	cbz	x0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENODATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
Lloh13:
	adrp	x8, _VPIF_V4L2_STD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VPIF_V4L2_STD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.8:
	str	w19, [x20, #16]
	add	x0, x20, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_vpif_update_resolution
	cbz	x0, LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	mov	w8, #12
	madd	x8, x22, x8, x21
	ldr	w9, [x8]
	str	w9, [x8, #4]
Lloh18:
	adrp	x21, _video@GOTPAGE
Lloh19:
	ldr	x21, [x21, _video@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh20:
	adrp	x8, _s_std_output@GOTPAGE
Lloh21:
	ldr	x8, [x8, _s_std_output@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh24:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	mov	w1, #1
	mov	x4, x19
	bl	_v4l2_device_call_until_err
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	w2, [x21]
Lloh25:
	adrp	x8, _s_std@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh29:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	mov	w1, #1
	mov	x4, x19
	bl	_v4l2_device_call_until_err
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.12:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x20, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_vpif_err
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_dev,8,3                   ; @vpif_dev
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_V4L2_OUT_CAP_STD,8,3           ; @V4L2_OUT_CAP_STD
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VPIF_V4L2_STD,4,2              ; @VPIF_V4L2_STD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vpif_obj,4,2                   ; @vpif_obj
	.comm	_video,4,2                      ; @video
	.comm	_s_std_output,4,2               ; @s_std_output
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set output standard\n"

	.comm	_s_std,4,2                      ; @s_std
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_s_std
.subsections_via_symbols
