	.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, %r14d
	movq	_vpif_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	movq	%rax, %rbx
	movq	32(%rax), %r15
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	(%r15,%r13,4), %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	%rbx, %rdi
	addq	$20, %rdi
	movl	%r14d, 24(%rbx)
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_vpif_update_std_info
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_vpif_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movl	16(%rbx), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.13:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
	movl	%ebx, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_dev,8,3                   ## @vpif_dev
	.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"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_V4L2_IN_CAP_STD,8,3            ## @V4L2_IN_CAP_STD
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Error getting the standard info\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.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	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
Lloh0:
	adrp	x8, _vpif_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpif_dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x24, [x8]
	bl	_video_devdata
	bl	_video_get_drvdata
	mov	x20, x0
	ldr	x22, [x0, #32]
Lloh3:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
Lloh6:
	adrp	x21, _debug@GOTPAGE
Lloh7:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
	ldr	x8, [x24]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x20, #8]
	ldr	x8, [x8, x9, lsl #3]
Lloh10:
	adrp	x9, _V4L2_IN_CAP_STD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_IN_CAP_STD@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x0, x22, x23, lsl #2
	bl	_vb2_is_busy
	cbz	x0, LBB0_7
; %bb.3:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ENODATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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_7:
	add	x0, x20, #20
	str	w19, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_vpif_update_std_info
	cbz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vpif_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	w0, [x20, #16]
Lloh21:
	adrp	x8, _video@GOTPAGE
Lloh22:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _s_std@GOTPAGE
Lloh25:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.10:
Lloh27:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmn	w19, w8
	b.eq	LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmn	w19, w8
	b.ne	LBB0_13
LBB0_12:
	mov	w19, #0
	b	LBB0_6
LBB0_13:
	ldr	w1, [x21]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
	b	LBB0_6
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_dev,8,3                   ; @vpif_dev
	.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"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_V4L2_IN_CAP_STD,8,3            ; @V4L2_IN_CAP_STD
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Error getting the standard info\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_s_std
.subsections_via_symbols
