	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak881x_s_std_output
_ak881x_s_std_output:                   ## @ak881x_s_std_output
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_ak881x
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rsi
	movl	$3, %edx
	movl	$480, %ecx                      ## imm = 0x1E0
	cmpl	%ebx, (%rsi)
	je	LBB0_6
## %bb.1:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rsi
	movl	$5, %edx
	cmpl	%ebx, (%rsi)
	je	LBB0_6
## %bb.2:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rsi
	movl	$7, %edx
	cmpl	%ebx, (%rsi)
	je	LBB0_6
## %bb.3:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	testl	%ebx, (%rsi)
	jne	LBB0_6
## %bb.4:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_8
## %bb.5:
	movl	$15, %edx
	movl	$576, %ecx                      ## imm = 0x240
LBB0_6:
	movl	%ecx, (%rax)
	movq	_AK881X_VIDEO_PROCESS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$15, %ecx
	callq	_reg_set
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_NTSC_443,4,2          ## @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_PAL_M,4,2             ## @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_60,4,2            ## @V4L2_STD_PAL_60
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AK881X_VIDEO_PROCESS1,4,2      ## @AK881X_VIDEO_PROCESS1
	.no_dead_strip	_ak881x_s_std_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak881x_s_std_output
_ak881x_s_std_output:                   ; @ak881x_s_std_output
	.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	x20, x1
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_ak881x
Lloh0:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #3
	mov	w8, #480
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #5
	mov	w8, #480
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	w2, #7
	mov	w8, #480
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	w2, #0
	mov	w8, #480
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.9:
	mov	w2, #15
	mov	w8, #576
LBB0_10:
	str	w8, [x0]
Lloh15:
	adrp	x8, _AK881X_VIDEO_PROCESS1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AK881X_VIDEO_PROCESS1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #15
	bl	_reg_set
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_NTSC_443,4,2          ; @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_PAL_M,4,2             ; @V4L2_STD_PAL_M
	.comm	_V4L2_STD_PAL_60,4,2            ; @V4L2_STD_PAL_60
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AK881X_VIDEO_PROCESS1,4,2      ; @AK881X_VIDEO_PROCESS1
	.no_dead_strip	_ak881x_s_std_output
.subsections_via_symbols
