	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7127_set_std
_saa7127_set_std:                       ## @saa7127_set_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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r15
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SAA7127_60HZ_DAC_CONTROL@GOTPCREL(%rip), %r12
	movq	_saa7127_init_config_60hz@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	(%r15), %rax
	movq	_SAA7129@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_6
## %bb.4:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	notl	%eax
	andl	%r14d, %eax
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_6:
	movq	_SAA7127_50HZ_PAL_DAC_CONTROL@GOTPCREL(%rip), %r12
	movq	_saa7127_init_config_50hz_pal@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %rcx
LBB0_7:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_v4l2_dbg
	movq	(%r13), %rsi
	movl	(%r12), %eax
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	callq	_saa7127_write_inittab
	movl	%r14d, 8(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SAA7127_50HZ_SECAM_DAC_CONTROL@GOTPCREL(%rip), %r12
	movq	_saa7127_init_config_50hz_secam@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selecting 60 Hz video Standard\n"

	.comm	_saa7127_init_config_60hz,8,3   ## @saa7127_init_config_60hz
	.comm	_SAA7127_60HZ_DAC_CONTROL,4,2   ## @SAA7127_60HZ_DAC_CONTROL
	.comm	_SAA7129,8,3                    ## @SAA7129
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
L_.str.1:                               ## @.str.1
	.asciz	"Selecting 50 Hz SECAM video Standard\n"

	.comm	_saa7127_init_config_50hz_secam,8,3 ## @saa7127_init_config_50hz_secam
	.comm	_SAA7127_50HZ_SECAM_DAC_CONTROL,4,2 ## @SAA7127_50HZ_SECAM_DAC_CONTROL
L_.str.2:                               ## @.str.2
	.asciz	"Selecting 50 Hz PAL video Standard\n"

	.comm	_saa7127_init_config_50hz_pal,8,3 ## @saa7127_init_config_50hz_pal
	.comm	_SAA7127_50HZ_PAL_DAC_CONTROL,4,2 ## @SAA7127_50HZ_PAL_DAC_CONTROL
	.no_dead_strip	_saa7127_set_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7127_set_std
_saa7127_set_std:                       ; @saa7127_set_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, x1
	mov	x20, x0
	bl	_to_state
	mov	x21, x0
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x22, _SAA7127_60HZ_DAC_CONTROL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SAA7127_60HZ_DAC_CONTROL@GOTPAGEOFF]
Lloh5:
	adrp	x23, _saa7127_init_config_60hz@GOTPAGE
Lloh6:
	ldr	x23, [x23, _saa7127_init_config_60hz@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _SAA7129@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAA7129@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _V4L2_STD_SECAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
Lloh15:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	bic	w8, w19, w8
	tst	w8, w9
	b.eq	LBB0_7
LBB0_5:
Lloh18:
	adrp	x22, _SAA7127_50HZ_PAL_DAC_CONTROL@GOTPAGE
Lloh19:
	ldr	x22, [x22, _SAA7127_50HZ_PAL_DAC_CONTROL@GOTPAGEOFF]
Lloh20:
	adrp	x23, _saa7127_init_config_50hz_pal@GOTPAGE
Lloh21:
	ldr	x23, [x23, _saa7127_init_config_50hz_pal@GOTPAGEOFF]
Lloh22:
	adrp	x3, l_.str.2@PAGE
Lloh23:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_6:
Lloh24:
	adrp	x8, _debug@GOTPAGE
Lloh25:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
	ldr	x1, [x23]
	ldr	w8, [x22]
	str	w8, [x21, #12]
	mov	x0, x20
	bl	_saa7127_write_inittab
	str	w19, [x21, #8]
	mov	w0, #0
	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:
Lloh27:
	adrp	x22, _SAA7127_50HZ_SECAM_DAC_CONTROL@GOTPAGE
Lloh28:
	ldr	x22, [x22, _SAA7127_50HZ_SECAM_DAC_CONTROL@GOTPAGEOFF]
Lloh29:
	adrp	x23, _saa7127_init_config_50hz_secam@GOTPAGE
Lloh30:
	ldr	x23, [x23, _saa7127_init_config_50hz_secam@GOTPAGEOFF]
Lloh31:
	adrp	x3, l_.str.1@PAGE
Lloh32:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selecting 60 Hz video Standard\n"

	.comm	_saa7127_init_config_60hz,8,3   ; @saa7127_init_config_60hz
	.comm	_SAA7127_60HZ_DAC_CONTROL,4,2   ; @SAA7127_60HZ_DAC_CONTROL
	.comm	_SAA7129,8,3                    ; @SAA7129
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
l_.str.1:                               ; @.str.1
	.asciz	"Selecting 50 Hz SECAM video Standard\n"

	.comm	_saa7127_init_config_50hz_secam,8,3 ; @saa7127_init_config_50hz_secam
	.comm	_SAA7127_50HZ_SECAM_DAC_CONTROL,4,2 ; @SAA7127_50HZ_SECAM_DAC_CONTROL
l_.str.2:                               ; @.str.2
	.asciz	"Selecting 50 Hz PAL video Standard\n"

	.comm	_saa7127_init_config_50hz_pal,8,3 ; @saa7127_init_config_50hz_pal
	.comm	_SAA7127_50HZ_PAL_DAC_CONTROL,4,2 ; @SAA7127_50HZ_PAL_DAC_CONTROL
	.no_dead_strip	_saa7127_set_std
.subsections_via_symbols
