	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_std
_vidioc_s_std:                          ## @vidioc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%edx, -28(%rbp)
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	4(%r14), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_querystd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	leaq	-28(%rbp), %rcx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	movl	-28(%rbp), %ebx
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	cmpl	%ebx, (%r14)
	je	LBB0_8
## %bb.4:
	movl	%ebx, (%r14)
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %ebx
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_5
## %bb.6:
	movq	_formats_50@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_formats_60@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_8:
	movl	4(%r14), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_v4l2_subdev_call
	movl	%eax, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_video,4,2                      ## @video
	.comm	_querystd,4,2                   ## @querystd
	.comm	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_formats_60,8,3                 ## @formats_60
	.comm	_formats_50,8,3                 ## @formats_50
	.comm	_s_std,4,2                      ## @s_std
	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_std
_vidioc_s_std:                          ; @vidioc_s_std
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	str	w2, [sp, #12]
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _video@GOTPAGE
Lloh4:
	ldr	x21, [x21, _video@GOTPAGEOFF]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _querystd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _querystd@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x8, sp, #12
	str	x8, [sp]
	bl	_v4l2_subdev_call
	ldr	w20, [sp, #12]
Lloh8:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
	str	w20, [x19]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _formats_50@GOTPAGE
Lloh18:
	ldr	x9, [x9, _formats_50@GOTPAGEOFF]
Lloh19:
	adrp	x10, _formats_60@GOTPAGE
Lloh20:
	ldr	x10, [x10, _formats_60@GOTPAGEOFF]
	ldr	w20, [sp, #12]
	tst	w20, w8
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _s_std@GOTPAGE
Lloh22:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	str	x20, [sp]
	bl	_v4l2_subdev_call
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_video,4,2                      ; @video
	.comm	_querystd,4,2                   ; @querystd
	.comm	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_formats_60,8,3                 ; @formats_60
	.comm	_formats_50,8,3                 ; @formats_50
	.comm	_s_std,4,2                      ; @s_std
	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols
