	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modtec_eeprom
_modtec_eeprom:                         ## @modtec_eeprom
	.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
	movq	%rdi, %rbx
	movq	_eeprom_data@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	$120, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$14, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	addq	$120, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rdi
	addq	$120, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$14, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	movq	_TUNER_TEMIC_4066FY5_PAL_I@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_TUNER_ALPS_TSBB5_PAL_I@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_TUNER_PHILIPS_NTSC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	(%rbx), %esi
	movq	(%r14), %rdx
	addq	$120, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_eeprom_data,8,3                ## @eeprom_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Temic 4066 FY5"

	.comm	_TUNER_TEMIC_4066FY5_PAL_I,4,2  ## @TUNER_TEMIC_4066FY5_PAL_I
L_.str.1:                               ## @.str.1
	.asciz	"%d: Modtec: Tuner autodetected by eeprom: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Alps TSBB5"

	.comm	_TUNER_ALPS_TSBB5_PAL_I,4,2     ## @TUNER_ALPS_TSBB5_PAL_I
L_.str.3:                               ## @.str.3
	.asciz	"Philips FM1246"

	.comm	_TUNER_PHILIPS_NTSC,4,2         ## @TUNER_PHILIPS_NTSC
L_.str.4:                               ## @.str.4
	.asciz	"%d: Modtec: Unknown TunerString: %s\n"

	.no_dead_strip	_modtec_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modtec_eeprom
_modtec_eeprom:                         ; @modtec_eeprom
	.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
Lloh0:
	adrp	x20, _eeprom_data@GOTPAGE
Lloh1:
	ldr	x20, [x20, _eeprom_data@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #120
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #14
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	add	x0, x8, #120
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #10
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, #120
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #14
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _TUNER_TEMIC_4066FY5_PAL_I@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TUNER_TEMIC_4066FY5_PAL_I@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _TUNER_ALPS_TSBB5_PAL_I@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TUNER_ALPS_TSBB5_PAL_I@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _TUNER_PHILIPS_NTSC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TUNER_PHILIPS_NTSC@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	ldr	w1, [x19]
	ldr	x8, [x20]
	add	x2, x8, #120
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_info
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_eeprom_data,8,3                ; @eeprom_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Temic 4066 FY5"

	.comm	_TUNER_TEMIC_4066FY5_PAL_I,4,2  ; @TUNER_TEMIC_4066FY5_PAL_I
l_.str.1:                               ; @.str.1
	.asciz	"%d: Modtec: Tuner autodetected by eeprom: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Alps TSBB5"

	.comm	_TUNER_ALPS_TSBB5_PAL_I,4,2     ; @TUNER_ALPS_TSBB5_PAL_I
l_.str.3:                               ; @.str.3
	.asciz	"Philips FM1246"

	.comm	_TUNER_PHILIPS_NTSC,4,2         ; @TUNER_PHILIPS_NTSC
l_.str.4:                               ; @.str.4
	.asciz	"%d: Modtec: Unknown TunerString: %s\n"

	.no_dead_strip	_modtec_eeprom
.subsections_via_symbols
