	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_eeprom_analyze            ## -- Begin function pvr2_eeprom_analyze
	.p2align	4, 0x90
_pvr2_eeprom_analyze:                   ## @pvr2_eeprom_analyze
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_pvr2_eeprom_fetch
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_tveeprom_hauppauge_analog
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-28(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-48(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-56(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-32(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-36(%rbp), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-40(%rbp), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-52(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-44(%rbp), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_trace_eeprom
	movl	-48(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	$1, (%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom assumed v4l tveeprom module"

L_.str.1:                               ## @.str.1
	.asciz	"eeprom direct call results:"

L_.str.2:                               ## @.str.2
	.asciz	"has_radio=%d"

L_.str.3:                               ## @.str.3
	.asciz	"tuner_type=%d"

L_.str.4:                               ## @.str.4
	.asciz	"tuner_formats=0x%x"

L_.str.5:                               ## @.str.5
	.asciz	"audio_processor=%d"

L_.str.6:                               ## @.str.6
	.asciz	"model=%d"

L_.str.7:                               ## @.str.7
	.asciz	"revision=%d"

L_.str.8:                               ## @.str.8
	.asciz	"serial_number=%d"

L_.str.9:                               ## @.str.9
	.asciz	"rev_str=%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_eeprom_analyze            ; -- Begin function pvr2_eeprom_analyze
	.p2align	2
_pvr2_eeprom_analyze:                   ; @pvr2_eeprom_analyze
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x19
	bl	_pvr2_eeprom_fetch
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, sp, #16
	mov	x1, x20
	bl	_tveeprom_hauppauge_analog
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trace_eeprom
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #36]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.9@PAGE
Lloh19:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_trace_eeprom
	ldr	w8, [sp, #24]
	str	w8, [x19, #12]
	mov	w8, #1
	str	w8, [x19]
	ldr	d0, [sp, #16]
	stur	d0, [x19, #4]
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom assumed v4l tveeprom module"

l_.str.1:                               ; @.str.1
	.asciz	"eeprom direct call results:"

l_.str.2:                               ; @.str.2
	.asciz	"has_radio=%d"

l_.str.3:                               ; @.str.3
	.asciz	"tuner_type=%d"

l_.str.4:                               ; @.str.4
	.asciz	"tuner_formats=0x%x"

l_.str.5:                               ; @.str.5
	.asciz	"audio_processor=%d"

l_.str.6:                               ; @.str.6
	.asciz	"model=%d"

l_.str.7:                               ; @.str.7
	.asciz	"revision=%d"

l_.str.8:                               ; @.str.8
	.asciz	"serial_number=%d"

l_.str.9:                               ; @.str.9
	.asciz	"rev_str=%s"

.subsections_via_symbols
