	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leadtek_eeprom
_leadtek_eeprom:                        ## @leadtek_eeprom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$125, 16(%rsi)
	jne	LBB0_8
## %bb.1:
	cmpl	$16, 20(%rsi)
	jne	LBB0_8
## %bb.2:
	cmpl	$102, 28(%rsi)
	jne	LBB0_8
## %bb.3:
	movl	24(%rsi), %eax
	cmpq	$61, %rax
	ja	LBB0_6
## %bb.4:
	movabsq	$2342434764776538112, %rcx      ## imm = 0x2082000200080000
	btq	%rax, %rcx
	jae	LBB0_6
## %bb.5:
	movq	_TUNER_PHILIPS_FM1236_MK3@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	(%rsi), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_6:
	movq	_TUNER_PHILIPS_FM1216ME_MK3@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Leadtek eeprom invalid.\n"

	.comm	_TUNER_PHILIPS_FM1236_MK3,4,2   ## @TUNER_PHILIPS_FM1236_MK3
	.comm	_TUNER_PHILIPS_FM1216ME_MK3,4,2 ## @TUNER_PHILIPS_FM1216ME_MK3
L_.str.1:                               ## @.str.1
	.asciz	"Leadtek Winfast 2000XP Expert config: tuner=%d, eeprom[0]=0x%02x\n"

	.no_dead_strip	_leadtek_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leadtek_eeprom
_leadtek_eeprom:                        ; @leadtek_eeprom
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #16]
	cmp	w8, #125
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x1, #20]
	cmp	w8, #16
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x1, #28]
	cmp	w8, #102
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _TUNER_PHILIPS_FM1236_MK3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUNER_PHILIPS_FM1236_MK3@GOTPAGEOFF]
	ldr	w9, [x1, #24]
	cmp	w9, #61
	mov	w10, #1
	lsl	x9, x10, x9
	mov	x10, #524288
	movk	x10, #2, lsl #32
	movk	x10, #8322, lsl #48
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
Lloh2:
	adrp	x9, _TUNER_PHILIPS_FM1216ME_MK3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TUNER_PHILIPS_FM1216ME_MK3@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w2, [x1]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	b	_pr_info
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	_pr_warn
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Leadtek eeprom invalid.\n"

	.comm	_TUNER_PHILIPS_FM1236_MK3,4,2   ; @TUNER_PHILIPS_FM1236_MK3
	.comm	_TUNER_PHILIPS_FM1216ME_MK3,4,2 ; @TUNER_PHILIPS_FM1216ME_MK3
l_.str.1:                               ; @.str.1
	.asciz	"Leadtek Winfast 2000XP Expert config: tuner=%d, eeprom[0]=0x%02x\n"

	.no_dead_strip	_leadtek_eeprom
.subsections_via_symbols
