	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function identify_by_eeprom
_identify_by_eeprom:                    ## @identify_by_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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$13, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	20(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpb	$-124, (%rbx)
	jne	LBB0_8
## %bb.5:
	cmpb	$0, 2(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	_BTTV_BOARD_HAUPPAUGE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_BTTV_BOARD_MODTEC_205@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_BTTV_BOARD_EURESYS_PICOLO@GOTPCREL(%rip), %rax
LBB0_7:
	movslq	(%rax), %rcx
	cmpq	$-1, %rcx
	je	LBB0_8
## %bb.9:
	movl	%ecx, (%r14)
	movl	4(%r14), %esi
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET MM20xPCTV"

	.comm	_BTTV_BOARD_MODTEC_205,4,2      ## @BTTV_BOARD_MODTEC_205
L_.str.1:                               ## @.str.1
	.asciz	"Picolo"

	.comm	_BTTV_BOARD_EURESYS_PICOLO,4,2  ## @BTTV_BOARD_EURESYS_PICOLO
	.comm	_BTTV_BOARD_HAUPPAUGE,4,2       ## @BTTV_BOARD_HAUPPAUGE
L_.str.2:                               ## @.str.2
	.asciz	"%d: detected by eeprom: %s [card=%d]\n"

	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.no_dead_strip	_identify_by_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function identify_by_eeprom
_identify_by_eeprom:                    ; @identify_by_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #13
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.1:
	add	x0, x20, #20
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.2:
	ldrb	w8, [x20]
	cmp	w8, #132
	b.ne	LBB0_9
; %bb.3:
	ldrb	w8, [x20, #2]
	cbnz	w8, LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _BTTV_BOARD_HAUPPAUGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BTTV_BOARD_HAUPPAUGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _BTTV_BOARD_MODTEC_205@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTTV_BOARD_MODTEC_205@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _BTTV_BOARD_EURESYS_PICOLO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTTV_BOARD_EURESYS_PICOLO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.8:
	sxtw	x3, w8
	str	w8, [x19]
	ldr	w1, [x19, #4]
Lloh10:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w2, [x8, x3, lsl #2]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_info
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET MM20xPCTV"

	.comm	_BTTV_BOARD_MODTEC_205,4,2      ; @BTTV_BOARD_MODTEC_205
l_.str.1:                               ; @.str.1
	.asciz	"Picolo"

	.comm	_BTTV_BOARD_EURESYS_PICOLO,4,2  ; @BTTV_BOARD_EURESYS_PICOLO
	.comm	_BTTV_BOARD_HAUPPAUGE,4,2       ; @BTTV_BOARD_HAUPPAUGE
l_.str.2:                               ; @.str.2
	.asciz	"%d: detected by eeprom: %s [card=%d]\n"

	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.no_dead_strip	_identify_by_eeprom
.subsections_via_symbols
