	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9090_tuner_attach
_dib9090_tuner_attach:                  ## @dib9090_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	16(%rdi), %r15
	movl	(%rax), %edi
	callq	_dib9000_get_tuner_interface
	movq	%rax, %rbx
	movq	l___const.dib9090_tuner_attach.data_dib190+32(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.dib9090_tuner_attach.data_dib190+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.dib9090_tuner_attach.data_dib190(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_CONFIG_DVB_DIB9000@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_dib0090_fw_register@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_dib9090_dib0090_config@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdx
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_DIBX000_I2C_INTERFACE_GPIO_1_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_dib9000_get_i2c_master
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	-80(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_dib01x0_pmu_update
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movl	8(%r14), %edi
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_dib0700_set_i2c_speed
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_dib9000_firmware_post_pll_init
	testq	%rax, %rax
	js	LBB0_4
## %bb.10:
	movl	(%r15), %edi
	callq	_release_firmware
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.dib9090_tuner_attach.data_dib190
l___const.dib9090_tuner_attach.data_dib190:
	.long	1                               ## 0x1
	.long	4980                            ## 0x1374
	.long	2                               ## 0x2
	.long	418                             ## 0x1a2
	.long	7                               ## 0x7
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.long	239                             ## 0xef
	.long	8                               ## 0x8
	.long	1158                            ## 0x486

	.comm	_CONFIG_DVB_DIB9000,4,2         ## @CONFIG_DVB_DIB9000
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_dib0090_fw_register,4,2        ## @dib0090_fw_register
	.comm	_dib9090_dib0090_config,4,2     ## @dib9090_dib0090_config
	.comm	_DIBX000_I2C_INTERFACE_GPIO_1_2,4,2 ## @DIBX000_I2C_INTERFACE_GPIO_1_2
	.no_dead_strip	_dib9090_tuner_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9090_tuner_attach
_dib9090_tuner_attach:                  ; @dib9090_tuner_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0, #16]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_dib9000_get_tuner_interface
	mov	x20, x0
Lloh3:
	adrp	x8, l___const.dib9090_tuner_attach.data_dib190@PAGE
Lloh4:
	add	x8, x8, l___const.dib9090_tuner_attach.data_dib190@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x8, #32]
	str	x8, [sp, #32]
Lloh5:
	adrp	x8, _CONFIG_DVB_DIB9000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_DVB_DIB9000@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _dib0090_fw_register@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dib0090_fw_register@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh11:
	adrp	x3, _dib9090_dib0090_config@GOTPAGE
Lloh12:
	ldr	x3, [x3, _dib9090_dib0090_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _DIBX000_I2C_INTERFACE_GPIO_1_2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DIBX000_I2C_INTERFACE_GPIO_1_2@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_dib9000_get_i2c_master
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, sp
	mov	w2, #10
	bl	_dib01x0_pmu_update
	cbz	x0, LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w0, [x19, #8]
	mov	w1, #1500
	bl	_dib0700_set_i2c_speed
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_dib9000_firmware_post_pll_init
	tbnz	x0, #63, LBB0_4
; %bb.8:
	ldr	w0, [x21]
	bl	_release_firmware
	mov	w0, #0
	b	LBB0_5
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.dib9090_tuner_attach.data_dib190
l___const.dib9090_tuner_attach.data_dib190:
	.long	1                               ; 0x1
	.long	4980                            ; 0x1374
	.long	2                               ; 0x2
	.long	418                             ; 0x1a2
	.long	7                               ; 0x7
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.long	239                             ; 0xef
	.long	8                               ; 0x8
	.long	1158                            ; 0x486

	.comm	_CONFIG_DVB_DIB9000,4,2         ; @CONFIG_DVB_DIB9000
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dib0090_fw_register,4,2        ; @dib0090_fw_register
	.comm	_dib9090_dib0090_config,4,2     ; @dib9090_dib0090_config
	.comm	_DIBX000_I2C_INTERFACE_GPIO_1_2,4,2 ; @DIBX000_I2C_INTERFACE_GPIO_1_2
	.no_dead_strip	_dib9090_tuner_attach
.subsections_via_symbols
