	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk7700p_tuner_attach
_stk7700p_tuner_attach:                 ## @stk7700p_tuner_attach
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	_USB_VID_HAUPPAUGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	$1220, %r14d                    ## imm = 0x4C4
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r12
	movq	_USB_PID_HAUPPAUGE_NOVA_T_STICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.2:
	addq	$16, %rbx
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_eeprom_read
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	cmpq	$0, (%r13)
	je	LBB0_6
LBB0_5:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_DIBX000_I2C_INTERFACE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	jmp	LBB0_7
LBB0_3:
	movl	$1220, %r14d                    ## imm = 0x4C4
	addl	-44(%rbp), %r14d
	cmpq	$0, (%r13)
	jne	LBB0_5
LBB0_6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_DIBX000_I2C_INTERFACE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_dib7000m_get_i2c_master
LBB0_7:
	movq	%rax, %rdx
	movq	_mt2060_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_stk7700p_mt2060_config@GOTPCREL(%rip), %rcx
	movl	%r14d, %r8d
	callq	_dvb_attach
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_VID_HAUPPAUGE,4,2          ## @USB_VID_HAUPPAUGE
	.comm	_USB_PID_HAUPPAUGE_NOVA_T_STICK,4,2 ## @USB_PID_HAUPPAUGE_NOVA_T_STICK
	.comm	_DIBX000_I2C_INTERFACE_TUNER,4,2 ## @DIBX000_I2C_INTERFACE_TUNER
	.comm	_mt2060_attach,4,2              ## @mt2060_attach
	.comm	_stk7700p_mt2060_config,4,2     ## @stk7700p_mt2060_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_stk7700p_tuner_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk7700p_tuner_attach
_stk7700p_tuner_attach:                 ; @stk7700p_tuner_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x20, x21, [x0, #8]
	ldp	x8, x22, [x20]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _USB_VID_HAUPPAUGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_VID_HAUPPAUGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	cmp	x23, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x23, [x8, #8]
Lloh3:
	adrp	x8, _USB_PID_HAUPPAUGE_NOVA_T_STICK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_PID_HAUPPAUGE_NOVA_T_STICK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	cmp	x23, x0
	b.ne	LBB0_3
; %bb.2:
	add	x0, x20, #16
	add	x2, sp, #12
	mov	w1, #88
	bl	_eeprom_read
	cbz	w0, LBB0_5
LBB0_3:
	mov	w20, #1220
	ldr	x8, [x22]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w0, [x9]
Lloh6:
	adrp	x9, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	w2, #1
	blr	x8
	b	LBB0_7
LBB0_5:
	ldr	w8, [sp, #12]
	add	w20, w8, #1220
	ldr	x8, [x22]
	cbnz	x8, LBB0_4
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_dib7000m_get_i2c_master
LBB0_7:
	mov	x2, x0
Lloh12:
	adrp	x8, _mt2060_attach@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mt2060_attach@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh15:
	adrp	x3, _stk7700p_mt2060_config@GOTPAGE
Lloh16:
	ldr	x3, [x3, _stk7700p_mt2060_config@GOTPAGEOFF]
	mov	x4, x20
	bl	_dvb_attach
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_VID_HAUPPAUGE,4,2          ; @USB_VID_HAUPPAUGE
	.comm	_USB_PID_HAUPPAUGE_NOVA_T_STICK,4,2 ; @USB_PID_HAUPPAUGE_NOVA_T_STICK
	.comm	_DIBX000_I2C_INTERFACE_TUNER,4,2 ; @DIBX000_I2C_INTERFACE_TUNER
	.comm	_mt2060_attach,4,2              ; @mt2060_attach
	.comm	_stk7700p_mt2060_config,4,2     ; @stk7700p_mt2060_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_stk7700p_tuner_attach
.subsections_via_symbols
