	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_vidioc_s_std
_cx25821_vidioc_s_std:                  ## @cx25821_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	callq	_video_drvdata
	movq	8(%rax), %rdi
	cmpl	%ebx, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%ebx, (%rdi)
	movl	$720, (%rax)                    ## imm = 0x2D0
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	$480, %ecx                      ## imm = 0x1E0
	movl	$576, %edx                      ## imm = 0x240
	cmovel	%ecx, %edx
	movl	%edx, 4(%rax)
	callq	_medusa_set_videostandard
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.no_dead_strip	_cx25821_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 cx25821_vidioc_s_std
_cx25821_vidioc_s_std:                  ; @cx25821_vidioc_s_std
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	w9, [x0]
	cmp	w9, w19
	b.eq	LBB0_2
; %bb.1:
	str	w19, [x0]
	mov	w9, #720
	str	w9, [x8]
Lloh0:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w19
	mov	w9, #576
	mov	w10, #480
	csel	w9, w10, w9, eq
	str	w9, [x8, #4]
	bl	_medusa_set_videostandard
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.no_dead_strip	_cx25821_vidioc_s_std
.subsections_via_symbols
