	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_init
_dib7000p_init:                         ## @dib7000p_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, 48(%rbx)
	movl	%r13d, 56(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 92(%rbx)
	movl	(%r15), %eax
	movl	%eax, 88(%rbx)
	movq	8(%rbx), %rax
	movq	_OUTMODE_MPEG2_SERIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_OUTMODE_MPEG2_PAR_GATED_CLK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_OUTMODE_MPEG2_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_4:
	leaq	72(%rbx), %r15
	movq	%rbx, 80(%rbx)
	movq	_dib7000p_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	movl	$1287, %esi                     ## imm = 0x507
	movl	$3, %edx
	callq	_dib7000p_write_word
	movq	%rbx, %rdi
	callq	_dib7000p_identify
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	$897, %esi                      ## imm = 0x381
	callq	_dib7000p_read_word
	movq	%rax, (%rbx)
	movl	(%r12), %eax
	leaq	60(%rbx), %rdi
	movl	%eax, 60(%rbx)
	movq	_DIB7000P@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%rbx), %rdx
	movl	56(%rbx), %ecx
	callq	_dibx000_init_i2c_master
	movq	%rbx, %r12
	addq	$16, %r12
	movl	40(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_dib7090_tuner_xfer_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	48(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	movq	%rbx, %rdi
	callq	_dib7000p_demod_reset
	movq	%r15, %rdi
	callq	_dib7000p_reset_stats
	movq	(%rbx), %rax
	movq	_SOC7090@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_dib7090_set_output_mode
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib7090_set_diversity_in
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_OUTMODE_MPEG2_SERIAL,8,3       ## @OUTMODE_MPEG2_SERIAL
	.comm	_OUTMODE_MPEG2_PAR_GATED_CLK,8,3 ## @OUTMODE_MPEG2_PAR_GATED_CLK
	.comm	_OUTMODE_MPEG2_FIFO,8,3         ## @OUTMODE_MPEG2_FIFO
	.comm	_dib7000p_ops,8,2               ## @dib7000p_ops
	.comm	_DIB7000P,4,2                   ## @DIB7000P
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DiB7090 tuner interface"

	.comm	_dib7090_tuner_xfer_algo,4,2    ## @dib7090_tuner_xfer_algo
	.comm	_SOC7090,8,3                    ## @SOC7090
	.no_dead_strip	_dib7000p_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_init
_dib7000p_init:                         ; @dib7000p_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	str	x22, [x19, #48]
	str	w23, [x19, #56]
	ldr	d0, [x21]
	str	d0, [x19, #88]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _OUTMODE_MPEG2_SERIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OUTMODE_MPEG2_SERIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _OUTMODE_MPEG2_PAR_GATED_CLK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OUTMODE_MPEG2_PAR_GATED_CLK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _OUTMODE_MPEG2_FIFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OUTMODE_MPEG2_FIFO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_3:
	add	x21, x19, #72
	str	x19, [x19, #80]
Lloh12:
	adrp	x1, _dib7000p_ops@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dib7000p_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #64
	bl	_mutex_init
	mov	x0, x19
	mov	w1, #1287
	mov	w2, #3
	bl	_dib7000p_write_word
	mov	x0, x19
	bl	_dib7000p_identify
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #897
	bl	_dib7000p_read_word
	ldr	w9, [x22]
	mov	x8, x19
	str	w9, [x8, #60]!
	str	x0, [x19]
Lloh14:
	adrp	x9, _DIB7000P@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DIB7000P@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	ldr	x2, [x19, #48]
	ldr	w3, [x19, #56]
	mov	x0, x8
	bl	_dibx000_init_i2c_master
	ldr	w0, [x19, #40]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh19:
	adrp	x8, _dib7090_tuner_xfer_algo@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dib7090_tuner_xfer_algo@GOTPAGEOFF]
	stp	xzr, x8, [x19, #24]
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #16]!
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x22
	bl	_i2c_add_adapter
	mov	x0, x19
	bl	_dib7000p_demod_reset
	mov	x0, x21
	bl	_dib7000p_reset_stats
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _SOC7090@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SOC7090@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_dib7090_set_output_mode
	mov	x0, x21
	mov	w1, #0
	bl	_dib7090_set_diversity_in
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_OUTMODE_MPEG2_SERIAL,8,3       ; @OUTMODE_MPEG2_SERIAL
	.comm	_OUTMODE_MPEG2_PAR_GATED_CLK,8,3 ; @OUTMODE_MPEG2_PAR_GATED_CLK
	.comm	_OUTMODE_MPEG2_FIFO,8,3         ; @OUTMODE_MPEG2_FIFO
	.comm	_dib7000p_ops,8,2               ; @dib7000p_ops
	.comm	_DIB7000P,4,2                   ; @DIB7000P
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DiB7090 tuner interface"

	.comm	_dib7090_tuner_xfer_algo,4,2    ; @dib7090_tuner_xfer_algo
	.comm	_SOC7090,8,3                    ; @SOC7090
	.no_dead_strip	_dib7000p_init
.subsections_via_symbols
