	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hauppauge_eeprom
_hauppauge_eeprom:                      ## @hauppauge_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_eeprom_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	callq	_tveeprom_hauppauge_analog
	movl	-24(%rbp), %eax
	movl	%eax, 28(%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	16(%rbx), %esi
	movl	-32(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	-32(%rbp), %eax
	cmpl	$64900, %eax                    ## imm = 0xFD84
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_BTTV_BOARD_HAUPPAUGE_IMPACTVCB@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	-32(%rbp), %eax
LBB0_2:
	cmpl	$61334, %eax                    ## imm = 0xEF96
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eeprom_data,4,2                ## @eeprom_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: Hauppauge eeprom indicates model#%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d: Switching board type from %s to %s\n"

	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.comm	_BTTV_BOARD_HAUPPAUGE_IMPACTVCB,8,3 ## @BTTV_BOARD_HAUPPAUGE_IMPACTVCB
	.no_dead_strip	_hauppauge_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hauppauge_eeprom
_hauppauge_eeprom:                      ; @hauppauge_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _eeprom_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eeprom_data@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_tveeprom_hauppauge_analog
	ldur	d0, [sp, #20]
	str	d0, [x19, #24]
	ldr	w1, [x19, #16]
	ldr	w2, [sp, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w8, [sp, #16]
	mov	w9, #64900
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w2, [x8, x9, lsl #2]
	ldr	w1, [x19, #16]
Lloh8:
	adrp	x20, _BTTV_BOARD_HAUPPAUGE_IMPACTVCB@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BTTV_BOARD_HAUPPAUGE_IMPACTVCB@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	x8, [x20]
	str	x8, [x19, #8]
	ldr	w8, [sp, #16]
LBB0_2:
	mov	w9, #61334
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_eeprom_data,4,2                ; @eeprom_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: Hauppauge eeprom indicates model#%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d: Switching board type from %s to %s\n"

	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.comm	_BTTV_BOARD_HAUPPAUGE_IMPACTVCB,8,3 ; @BTTV_BOARD_HAUPPAUGE_IMPACTVCB
	.no_dead_strip	_hauppauge_eeprom
.subsections_via_symbols
