	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_i2c_init                  ## -- Begin function cx88_i2c_init
	.p2align	4, 0x90
_cx88_i2c_init:                         ## @cx88_i2c_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_i2c_udelay@GOTPCREL(%rip), %r15
	cmpl	$4, (%r15)
	jg	LBB0_2
## %bb.1:
	movl	$5, (%r15)
LBB0_2:
	leaq	64(%rbx), %r12
	movq	_cx8800_i2c_algo_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 64(%rbx)
	leaq	40(%rbx), %r14
	movq	%rsi, 56(%rbx)
	movl	52(%rbx), %edi
	movq	(%rbx), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	(%r15), %eax
	movl	%eax, 64(%rbx)
	movq	%rbx, 72(%rbx)
	leaq	80(%rbx), %rsi
	movq	%r14, %rdi
	callq	_i2c_set_adapdata
	movq	%r12, 40(%rbx)
	movq	%r14, 24(%rbx)
	movl	32(%rbx), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strscpy
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cx8800_bit_setscl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cx8800_bit_setsda
	movq	%r14, %rdi
	callq	_i2c_bit_add_bus
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_8
LBB0_3:
	leaq	24(%rbx), %r14
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movl	16(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	(%r14), %rdi
	leaq	_cx88_i2c_init.tuner_msg(%rip), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
LBB0_5:
	movq	_i2c_scan@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_do_i2c_scan
LBB0_8:
	movl	8(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_udelay,4,2                 ## @i2c_udelay
	.comm	_cx8800_i2c_algo_template,16,3  ## @cx8800_i2c_algo_template
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx88xx internal"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.section	__DATA,__data
	.p2align	4                               ## @cx88_i2c_init.tuner_data
_cx88_i2c_init.tuner_data:
	.long	11                              ## 0xb
	.long	220                             ## 0xdc
	.long	134                             ## 0x86
	.long	82                              ## 0x52

	.p2align	3                               ## @cx88_i2c_init.tuner_msg
_cx88_i2c_init.tuner_msg:
	.long	97                              ## 0x61
	.space	4
	.quad	_cx88_i2c_init.tuner_data
	.long	4                               ## 0x4
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"i2c register ok\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n"

	.comm	_i2c_scan,8,3                   ## @i2c_scan
L_.str.3:                               ## @.str.3
	.asciz	"i2c register FAILED\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_i2c_init                  ; -- Begin function cx88_i2c_init
	.p2align	2
_cx88_i2c_init:                         ; @cx88_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _i2c_udelay@GOTPAGE
Lloh1:
	ldr	x20, [x20, _i2c_udelay@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #4
	b.gt	LBB0_2
; %bb.1:
	mov	w8, #5
	str	w8, [x20]
LBB0_2:
	add	x22, x19, #64
Lloh2:
	adrp	x8, _cx8800_i2c_algo_template@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cx8800_i2c_algo_template@GOTPAGEOFF]
Lloh4:
	ldr	q0, [x8]
	str	q0, [x19, #64]
	add	x21, x19, #40
	str	x1, [x19, #56]
	ldr	w0, [x19, #52]
	ldr	x1, [x19]
	mov	w2, #4
	bl	_strscpy
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	w8, [x20]
	str	w8, [x19, #64]
	str	x19, [x19, #72]
	add	x1, x19, #80
	mov	x0, x21
	bl	_i2c_set_adapdata
	str	x22, [x19, #40]
	mov	x20, x19
	str	x21, [x20, #24]!
	ldr	w0, [x19, #32]
Lloh8:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strscpy
	mov	x0, x19
	mov	w1, #1
	bl	_cx8800_bit_setscl
	mov	x0, x19
	mov	w1, #1
	bl	_cx8800_bit_setsda
	mov	x0, x21
	bl	_i2c_bit_add_bus
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	w8, [x19, #16]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	x0, [x20]
Lloh19:
	adrp	x1, _cx88_i2c_init.tuner_msg@PAGE
Lloh20:
	add	x1, x1, _cx88_i2c_init.tuner_msg@PAGEOFF
	mov	w2, #1
	bl	_i2c_transfer
LBB0_6:
Lloh21:
	adrp	x8, _i2c_scan@GOTPAGE
Lloh22:
	ldr	x8, [x8, _i2c_scan@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_do_i2c_scan
LBB0_8:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_udelay,4,2                 ; @i2c_udelay
	.comm	_cx8800_i2c_algo_template,16,3  ; @cx8800_i2c_algo_template
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx88xx internal"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.section	__DATA,__data
	.p2align	2                               ; @cx88_i2c_init.tuner_data
_cx88_i2c_init.tuner_data:
	.long	11                              ; 0xb
	.long	220                             ; 0xdc
	.long	134                             ; 0x86
	.long	82                              ; 0x52

	.p2align	3                               ; @cx88_i2c_init.tuner_msg
_cx88_i2c_init.tuner_msg:
	.long	97                              ; 0x61
	.space	4
	.quad	_cx88_i2c_init.tuner_data
	.long	4                               ; 0x4
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"i2c register ok\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n"

	.comm	_i2c_scan,8,3                   ; @i2c_scan
l_.str.3:                               ; @.str.3
	.asciz	"i2c register FAILED\n"

.subsections_via_symbols
