	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	callq	_tveeprom_hauppauge_analog
	movl	-12(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-16(%rbp), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -24(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_CX88_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, 4(%rbx)
	movl	-32(%rbp), %esi
	movl	%esi, (%rbx)
	cmpl	$69568, %esi                    ## imm = 0x10FC0
	jle	LBB0_3
## %bb.25:
	cmpl	$92899, %esi                    ## imm = 0x16AE3
	jle	LBB0_26
## %bb.30:
	cmpl	$96018, %esi                    ## imm = 0x17712
	jle	LBB0_31
## %bb.36:
	cmpl	$96568, %esi                    ## imm = 0x17938
	jle	LBB0_37
## %bb.39:
	cmpl	$96569, %esi                    ## imm = 0x17939
	je	LBB0_44
## %bb.40:
	cmpl	$96659, %esi                    ## imm = 0x17993
	je	LBB0_44
## %bb.41:
	cmpl	$98559, %esi                    ## imm = 0x180FF
	je	LBB0_44
	jmp	LBB0_43
LBB0_3:
	cmpl	$14658, %esi                    ## imm = 0x3942
	jg	LBB0_14
## %bb.4:
	cmpl	$14108, %esi                    ## imm = 0x371C
	jg	LBB0_9
## %bb.5:
	leal	-14009(%rsi), %eax
	cmpl	$20, %eax
	ja	LBB0_6
## %bb.8:
	movl	$1049601, %ecx                  ## imm = 0x100401
	btl	%eax, %ecx
	jb	LBB0_44
LBB0_6:
	cmpl	$128, %esi
	jne	LBB0_43
## %bb.7:
	movq	_MO_GP0_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$9013759, %esi                  ## imm = 0x8989FF
	callq	_cx_set
	jmp	LBB0_44
LBB0_26:
	cmpl	$91999, %esi                    ## imm = 0x1675F
	jg	LBB0_42
## %bb.27:
	leal	-90002(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_44
## %bb.28:
	leal	-90500(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_44
## %bb.29:
	cmpl	$69569, %esi                    ## imm = 0x10FC1
	je	LBB0_44
	jmp	LBB0_43
LBB0_14:
	cmpl	$69008, %esi                    ## imm = 0x10D90
	jg	LBB0_20
## %bb.15:
	cmpl	$28551, %esi                    ## imm = 0x6F87
	jg	LBB0_18
## %bb.16:
	cmpl	$14659, %esi                    ## imm = 0x3943
	je	LBB0_44
## %bb.17:
	cmpl	$14669, %esi                    ## imm = 0x394D
	je	LBB0_44
	jmp	LBB0_43
LBB0_31:
	cmpl	$94500, %esi                    ## imm = 0x17124
	jg	LBB0_34
## %bb.32:
	cmpl	$92900, %esi                    ## imm = 0x16AE4
	je	LBB0_44
## %bb.33:
	cmpl	$94009, %esi                    ## imm = 0x16F39
	je	LBB0_44
	jmp	LBB0_43
LBB0_9:
	cmpl	$14558, %esi                    ## imm = 0x38DE
	jg	LBB0_12
## %bb.10:
	cmpl	$14109, %esi                    ## imm = 0x371D
	je	LBB0_44
## %bb.11:
	cmpl	$14129, %esi                    ## imm = 0x3731
	je	LBB0_44
	jmp	LBB0_43
LBB0_20:
	cmpl	$69499, %esi                    ## imm = 0x10F7B
	jg	LBB0_23
## %bb.21:
	cmpl	$69009, %esi                    ## imm = 0x10D91
	je	LBB0_44
## %bb.22:
	cmpl	$69100, %esi                    ## imm = 0x10DEC
	je	LBB0_44
	jmp	LBB0_43
LBB0_42:
	leal	-92000(%rsi), %eax
	cmpl	$3, %eax
	jb	LBB0_44
	jmp	LBB0_43
LBB0_37:
	cmpl	$96019, %esi                    ## imm = 0x17713
	je	LBB0_44
## %bb.38:
	cmpl	$96559, %esi                    ## imm = 0x1792F
	je	LBB0_44
	jmp	LBB0_43
LBB0_18:
	cmpl	$28552, %esi                    ## imm = 0x6F88
	je	LBB0_44
## %bb.19:
	cmpl	$34519, %esi                    ## imm = 0x86D7
	je	LBB0_44
	jmp	LBB0_43
LBB0_34:
	cmpl	$94501, %esi                    ## imm = 0x17125
	je	LBB0_44
## %bb.35:
	cmpl	$96009, %esi                    ## imm = 0x17709
	je	LBB0_44
	jmp	LBB0_43
LBB0_12:
	cmpl	$14559, %esi                    ## imm = 0x38DF
	je	LBB0_44
## %bb.13:
	cmpl	$14569, %esi                    ## imm = 0x38E9
	je	LBB0_44
	jmp	LBB0_43
LBB0_23:
	cmpl	$69500, %esi                    ## imm = 0x10F7C
	je	LBB0_44
## %bb.24:
	cmpl	$69559, %esi                    ## imm = 0x10FB7
	je	LBB0_44
LBB0_43:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_warn
LBB0_44:
	movl	-32(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX88_RADIO,4,2                 ## @CX88_RADIO
	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: unknown hauppauge model #%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"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, #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
	add	x0, sp, #8
	bl	_tveeprom_hauppauge_analog
	ldr	d0, [sp, #24]
	rev64.2s	v0, v0
	str	d0, [x19, #8]
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _CX88_RADIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CX88_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	w1, [sp, #8]
	stp	w1, w8, [x19]
	mov	w8, #4032
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.le	LBB0_7
; %bb.1:
	mov	w8, #27363
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.le	LBB0_13
; %bb.2:
	mov	w8, #30482
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.le	LBB0_21
; %bb.3:
	mov	w8, #31032
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.le	LBB0_31
; %bb.4:
	mov	w8, #31033
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.5:
	mov	w8, #31123
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.6:
	mov	w8, #33023
	b	LBB0_41
LBB0_7:
	mov	w8, #14658
	cmp	w1, w8
	b.gt	LBB0_17
; %bb.8:
	mov	w8, #14108
	cmp	w1, w8
	b.gt	LBB0_24
; %bb.9:
	mov	w8, #-14009
	add	w8, w1, w8
	cmp	w8, #20
	b.hi	LBB0_11
; %bb.10:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1025
	movk	w9, #16, lsl #16
	tst	w8, w9
	b.ne	LBB0_43
LBB0_11:
	cmp	w1, #128
	b.ne	LBB0_44
; %bb.12:
Lloh3:
	adrp	x8, _MO_GP0_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MO_GP0_IO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #35327
	movk	w1, #137, lsl #16
	bl	_cx_set
	b	LBB0_43
LBB0_13:
	mov	w8, #26463
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.gt	LBB0_30
; %bb.14:
	sub	w8, w1, #21, lsl #12            ; =86016
	sub	w8, w8, #3986
	cmp	w8, #2
	b.lo	LBB0_43
; %bb.15:
	sub	w8, w1, #22, lsl #12            ; =90112
	sub	w8, w8, #388
	cmp	w8, #2
	b.lo	LBB0_43
; %bb.16:
	mov	w8, #4033
	b	LBB0_41
LBB0_17:
	mov	w8, #3472
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.gt	LBB0_27
; %bb.18:
	mov	w8, #28551
	cmp	w1, w8
	b.gt	LBB0_33
; %bb.19:
	mov	w8, #14659
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.20:
	mov	w8, #14669
	b	LBB0_42
LBB0_21:
	mov	w8, #28964
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.gt	LBB0_35
; %bb.22:
	mov	w8, #27364
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.23:
	mov	w8, #28473
	b	LBB0_41
LBB0_24:
	mov	w8, #14558
	cmp	w1, w8
	b.gt	LBB0_37
; %bb.25:
	mov	w8, #14109
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.26:
	mov	w8, #14129
	b	LBB0_42
LBB0_27:
	mov	w8, #3963
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.gt	LBB0_39
; %bb.28:
	mov	w8, #3473
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.29:
	mov	w8, #3564
	b	LBB0_41
LBB0_30:
	sub	w8, w1, #22, lsl #12            ; =90112
	sub	w8, w8, #1888
	cmp	w8, #3
	b.lo	LBB0_43
	b	LBB0_44
LBB0_31:
	mov	w8, #30483
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.32:
	mov	w8, #31023
	b	LBB0_41
LBB0_33:
	mov	w8, #28552
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.34:
	mov	w8, #34519
	b	LBB0_42
LBB0_35:
	mov	w8, #28965
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.36:
	mov	w8, #30473
	b	LBB0_41
LBB0_37:
	mov	w8, #14559
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.38:
	mov	w8, #14569
	b	LBB0_42
LBB0_39:
	mov	w8, #3964
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_43
; %bb.40:
	mov	w8, #4023
LBB0_41:
	movk	w8, #1, lsl #16
LBB0_42:
	cmp	w1, w8
	b.ne	LBB0_44
LBB0_43:
	ldr	w1, [sp, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_44:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CX88_RADIO,4,2                 ; @CX88_RADIO
	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: unknown hauppauge model #%d\n"

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

	.no_dead_strip	_hauppauge_eeprom
.subsections_via_symbols
