	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdi
	callq	_tveeprom_hauppauge_analog
	movl	-16(%rbp), %edx
	cmpl	$67558, %edx                    ## imm = 0x107E6
	jle	LBB0_1
## %bb.7:
	leal	-67559(%rdx), %eax
	cmpl	$40, %eax
	ja	LBB0_8
## %bb.11:
	movabsq	$1100586419201, %rcx            ## imm = 0x10040100401
	btq	%rax, %rcx
	jae	LBB0_8
LBB0_12:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_info
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$67200, %edx                    ## imm = 0x10680
	jle	LBB0_2
## %bb.4:
	cmpl	$67201, %edx                    ## imm = 0x10681
	je	LBB0_12
## %bb.5:
	cmpl	$67209, %edx                    ## imm = 0x10689
	je	LBB0_12
## %bb.6:
	cmpl	$67301, %edx                    ## imm = 0x106E5
	je	LBB0_12
	jmp	LBB0_10
LBB0_8:
	cmpl	$67651, %edx                    ## imm = 0x10843
	je	LBB0_12
## %bb.9:
	cmpl	$67659, %edx                    ## imm = 0x1084B
	je	LBB0_12
	jmp	LBB0_10
LBB0_2:
	cmpl	$67019, %edx                    ## imm = 0x105CB
	je	LBB0_12
## %bb.3:
	cmpl	$67109, %edx                    ## imm = 0x10625
	je	LBB0_12
LBB0_10:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_warn
	movl	-16(%rbp), %edx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: warning: unknown hauppauge model #%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: hauppauge eeprom: model=%d\n"

	.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #8
	bl	_tveeprom_hauppauge_analog
	ldr	w2, [sp, #8]
	mov	w8, #2022
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_2
; %bb.1:
	sub	w8, w2, #16, lsl #12            ; =65536
	sub	w8, w8, #2023
	cmp	w8, #40
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1025
	movk	x9, #16400, lsl #16
	movk	x9, #256, lsl #32
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	mov	w8, #2115
	movk	w8, #1, lsl #16
	ccmp	w2, w8, #4, eq
	mov	w8, #2123
	b	LBB0_5
LBB0_2:
	mov	w8, #1664
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_4
; %bb.3:
	mov	w8, #1665
	movk	w8, #1, lsl #16
	cmp	w2, w8
	mov	w8, #1673
	movk	w8, #1, lsl #16
	ccmp	w2, w8, #4, ne
	mov	w8, #1765
	b	LBB0_5
LBB0_4:
	mov	w8, #1483
	movk	w8, #1, lsl #16
	cmp	w2, w8
	mov	w8, #1573
LBB0_5:
	movk	w8, #1, lsl #16
	ccmp	w2, w8, #4, ne
	b.ne	LBB0_7
LBB0_6:
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	w2, [sp, #8]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: warning: unknown hauppauge model #%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: hauppauge eeprom: model=%d\n"

	.no_dead_strip	_hauppauge_eeprom
.subsections_via_symbols
