	.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	$78500, %edx                    ## imm = 0x132A4
	jg	LBB0_21
## %bb.1:
	cmpl	$71358, %edx                    ## imm = 0x116BE
	jg	LBB0_10
## %bb.2:
	cmpl	$22100, %edx                    ## imm = 0x5654
	jle	LBB0_3
## %bb.6:
	leal	-22101(%rdx), %eax
	cmpl	$28, %eax
	ja	LBB0_7
## %bb.9:
	movl	$269747457, %ecx                ## imm = 0x10140501
	btl	%eax, %ecx
	jb	LBB0_52
LBB0_7:
	cmpl	$71009, %edx                    ## imm = 0x11561
	je	LBB0_52
## %bb.8:
	cmpl	$71100, %edx                    ## imm = 0x115BC
	je	LBB0_52
	jmp	LBB0_51
LBB0_21:
	cmpl	$85020, %edx                    ## imm = 0x14C1C
	jle	LBB0_22
## %bb.38:
	cmpl	$165199, %edx                   ## imm = 0x2854F
	jg	LBB0_48
## %bb.39:
	cmpl	$150328, %edx                   ## imm = 0x24B38
	jg	LBB0_45
## %bb.40:
	cmpl	$121018, %edx                   ## imm = 0x1D8BA
	jg	LBB0_43
## %bb.41:
	cmpl	$85021, %edx                    ## imm = 0x14C1D
	je	LBB0_52
## %bb.42:
	cmpl	$85721, %edx                    ## imm = 0x14ED9
	je	LBB0_52
	jmp	LBB0_51
LBB0_10:
	cmpl	$76600, %edx                    ## imm = 0x12B38
	jg	LBB0_17
## %bb.11:
	cmpl	$71938, %edx                    ## imm = 0x11902
	jle	LBB0_12
## %bb.15:
	leal	-71939(%rdx), %eax
	cmpl	$60, %eax
	ja	LBB0_51
## %bb.16:
	movabsq	$1152922604119524353, %rcx      ## imm = 0x1000010000100401
	btq	%rax, %rcx
	jb	LBB0_52
	jmp	LBB0_51
LBB0_22:
	cmpl	$79500, %edx                    ## imm = 0x1368C
	jle	LBB0_23
## %bb.29:
	cmpl	$79670, %edx                    ## imm = 0x13736
	jle	LBB0_30
## %bb.33:
	cmpl	$81508, %edx                    ## imm = 0x13E64
	jg	LBB0_36
## %bb.34:
	cmpl	$79671, %edx                    ## imm = 0x13737
	je	LBB0_52
## %bb.35:
	cmpl	$80019, %edx                    ## imm = 0x13893
	je	LBB0_52
	jmp	LBB0_51
LBB0_3:
	leal	-22001(%rdx), %eax
	cmpl	$28, %eax
	ja	LBB0_51
## %bb.4:
	movl	$269747457, %ecx                ## imm = 0x10140501
	jmp	LBB0_5
LBB0_48:
	leal	-165200(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_52
## %bb.49:
	leal	-166100(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_52
## %bb.50:
	leal	-166200(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_52
	jmp	LBB0_51
LBB0_17:
	leal	-77001(%rdx), %eax
	cmpl	$50, %eax
	ja	LBB0_18
## %bb.20:
	movabsq	$1126999418471425, %rcx         ## imm = 0x4010000000401
	btq	%rax, %rcx
	jb	LBB0_52
LBB0_18:
	cmpl	$76601, %edx                    ## imm = 0x12B39
	je	LBB0_52
## %bb.19:
	cmpl	$78011, %edx                    ## imm = 0x130BB
	je	LBB0_52
	jmp	LBB0_51
LBB0_23:
	cmpl	$78630, %edx                    ## imm = 0x13326
	jg	LBB0_26
## %bb.24:
	leal	-78501(%rdx), %eax
	cmpl	$30, %eax
	ja	LBB0_51
## %bb.25:
	movl	$1074790401, %ecx               ## imm = 0x40100001
LBB0_5:
	btl	%eax, %ecx
	jae	LBB0_51
LBB0_52:
	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_45:
	leal	-165100(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_52
## %bb.46:
	cmpl	$150329, %edx                   ## imm = 0x24B39
	je	LBB0_52
## %bb.47:
	cmpl	$161111, %edx                   ## imm = 0x27557
	je	LBB0_52
	jmp	LBB0_51
LBB0_12:
	cmpl	$71359, %edx                    ## imm = 0x116BF
	je	LBB0_52
## %bb.13:
	cmpl	$71439, %edx                    ## imm = 0x1170F
	je	LBB0_52
## %bb.14:
	cmpl	$71449, %edx                    ## imm = 0x11719
	je	LBB0_52
	jmp	LBB0_51
LBB0_30:
	cmpl	$79501, %edx                    ## imm = 0x1368D
	je	LBB0_52
## %bb.31:
	cmpl	$79561, %edx                    ## imm = 0x136C9
	je	LBB0_52
## %bb.32:
	cmpl	$79571, %edx                    ## imm = 0x136D3
	je	LBB0_52
	jmp	LBB0_51
LBB0_26:
	cmpl	$78631, %edx                    ## imm = 0x13327
	je	LBB0_52
## %bb.27:
	cmpl	$79001, %edx                    ## imm = 0x13499
	je	LBB0_52
## %bb.28:
	cmpl	$79101, %edx                    ## imm = 0x134FD
	je	LBB0_52
	jmp	LBB0_51
LBB0_43:
	cmpl	$121019, %edx                   ## imm = 0x1D8BB
	je	LBB0_52
## %bb.44:
	cmpl	$121029, %edx                   ## imm = 0x1D8C5
	je	LBB0_52
	jmp	LBB0_51
LBB0_36:
	cmpl	$81509, %edx                    ## imm = 0x13E65
	je	LBB0_52
## %bb.37:
	cmpl	$81519, %edx                    ## imm = 0x13E6F
	je	LBB0_52
LBB0_51:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_warn
	movl	-16(%rbp), %edx
	jmp	LBB0_52
	.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, #12964
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_7
; %bb.1:
	mov	w8, #5822
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_13
; %bb.2:
	mov	w8, #22100
	cmp	w2, w8
	b.le	LBB0_22
; %bb.3:
	mov	w8, #-22101
	add	w8, w2, w8
	cmp	w8, #28
	b.hi	LBB0_5
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1281
	movk	w9, #4116, lsl #16
	tst	w8, w9
	b.ne	LBB0_49
LBB0_5:
	mov	w8, #5473
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.6:
	mov	w8, #5564
	b	LBB0_47
LBB0_7:
	mov	w8, #19484
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_17
; %bb.8:
	mov	w8, #34127
	movk	w8, #2, lsl #16
	cmp	w2, w8
	b.gt	LBB0_23
; %bb.9:
	mov	w8, #19256
	movk	w8, #2, lsl #16
	cmp	w2, w8
	b.gt	LBB0_31
; %bb.10:
	mov	w8, #55482
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_43
; %bb.11:
	mov	w8, #19485
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.12:
	mov	w8, #20185
	b	LBB0_47
LBB0_13:
	mov	w8, #11064
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_24
; %bb.14:
	mov	w8, #6402
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_34
; %bb.15:
	sub	w8, w2, #17, lsl #12            ; =69632
	sub	w8, w8, #2307
	cmp	w8, #60
	b.hi	LBB0_50
; %bb.16:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1025
	movk	x9, #16, lsl #16
	movk	x9, #256, lsl #32
	movk	x9, #4096, lsl #48
	tst	x8, x9
	b.ne	LBB0_49
	b	LBB0_50
LBB0_17:
	mov	w8, #13964
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_28
; %bb.18:
	mov	w8, #14134
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.le	LBB0_37
; %bb.19:
	mov	w8, #15972
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_45
; %bb.20:
	mov	w8, #14135
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.21:
	mov	w8, #14483
	b	LBB0_47
LBB0_22:
	mov	w8, #-22001
	add	w8, w2, w8
	cmp	w8, #28
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1281
	movk	w9, #4116, lsl #16
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.ne	LBB0_49
	b	LBB0_50
LBB0_23:
	sub	w8, w2, #40, lsl #12            ; =163840
	sub	w8, w8, #1360
	cmp	w8, #2
	sub	w8, w2, #40, lsl #12            ; =163840
	sub	w8, w8, #2260
	ccmp	w8, #2, #0, hs
	sub	w8, w2, #40, lsl #12            ; =163840
	sub	w8, w8, #2360
	ccmp	w8, #2, #0, hs
	b.lo	LBB0_49
	b	LBB0_50
LBB0_24:
	sub	w8, w2, #18, lsl #12            ; =73728
	sub	w8, w8, #3273
	cmp	w8, #50
	b.hi	LBB0_26
; %bb.25:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1025
	movk	x9, #256, lsl #32
	movk	x9, #4, lsl #48
	tst	x8, x9
	b.ne	LBB0_49
LBB0_26:
	mov	w8, #11065
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.27:
	mov	w8, #12475
	b	LBB0_47
LBB0_28:
	mov	w8, #13094
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.gt	LBB0_40
; %bb.29:
	sub	w8, w2, #19, lsl #12            ; =77824
	sub	w8, w8, #677
	cmp	w8, #30
	b.hi	LBB0_50
; %bb.30:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1
	movk	w9, #16400, lsl #16
	tst	w8, w9
	b.ne	LBB0_49
	b	LBB0_50
LBB0_31:
	sub	w8, w2, #40, lsl #12            ; =163840
	sub	w8, w8, #1260
	cmp	w8, #2
	b.lo	LBB0_49
; %bb.32:
	mov	w8, #19257
	movk	w8, #2, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.33:
	mov	w8, #30039
	movk	w8, #2, lsl #16
	b	LBB0_48
LBB0_34:
	mov	w8, #5823
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.35:
	mov	w8, #5903
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.36:
	mov	w8, #5913
	b	LBB0_47
LBB0_37:
	mov	w8, #13965
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.38:
	mov	w8, #14025
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.39:
	mov	w8, #14035
	b	LBB0_47
LBB0_40:
	mov	w8, #13095
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.41:
	mov	w8, #13465
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.42:
	mov	w8, #13565
	b	LBB0_47
LBB0_43:
	mov	w8, #55483
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.44:
	mov	w8, #55493
	b	LBB0_47
LBB0_45:
	mov	w8, #15973
	movk	w8, #1, lsl #16
	cmp	w2, w8
	b.eq	LBB0_49
; %bb.46:
	mov	w8, #15983
LBB0_47:
	movk	w8, #1, lsl #16
LBB0_48:
	cmp	w2, w8
	b.ne	LBB0_50
LBB0_49:
	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_50:
	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_49
	.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
