	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go7007_s_std
_go7007_s_std:                          ## @go7007_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
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movl	$30000, %eax                    ## imm = 0x7530
	movl	$25025, %edx                    ## imm = 0x61C1
	cmovel	%eax, %edx
	movq	_GO7007_STD_PAL@GOTPCREL(%rip), %rax
	cmoveq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movl	%edx, 4(%rdi)
	addq	$8, %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_call_all
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_set_capture_size
	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
	.comm	_GO7007_STD_PAL,4,2             ## @GO7007_STD_PAL
	.comm	_GO7007_STD_NTSC,4,2            ## @GO7007_STD_NTSC
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.no_dead_strip	_go7007_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go7007_s_std
_go7007_s_std:                          ; @go7007_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, x0
	ldr	w3, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_625_50@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	mov	w8, #25025
	mov	w9, #30000
Lloh3:
	adrp	x10, _GO7007_STD_NTSC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh5:
	adrp	x11, _GO7007_STD_PAL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _GO7007_STD_PAL@GOTPAGEOFF]
	csel	w8, w9, w8, eq
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x0, #12]
	str	w8, [x0, #4]
	add	x0, x0, #8
Lloh7:
	adrp	x8, _video@GOTPAGE
Lloh8:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _s_std@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_call_all
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_set_capture_size
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_GO7007_STD_PAL,4,2             ; @GO7007_STD_PAL
	.comm	_GO7007_STD_NTSC,4,2            ; @GO7007_STD_NTSC
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.no_dead_strip	_go7007_s_std
.subsections_via_symbols
