	.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	%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	%rsi, %r12
	movq	%rdi, %rbx
	movq	_i2c_udelay@GOTPCREL(%rip), %r13
	cmpl	$4, (%r13)
	jg	LBB0_2
## %bb.1:
	movl	$5, (%r13)
LBB0_2:
	leaq	64(%rbx), %r15
	movq	_cx8800_i2c_algo_template@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_memcpy
	leaq	40(%rbx), %r14
	movq	%r12, 56(%rbx)
	movl	52(%rbx), %edi
	movq	(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	(%r13), %eax
	movl	%eax, 64(%rbx)
	movq	%rbx, 72(%rbx)
	leaq	80(%rbx), %rsi
	movq	%r14, %rdi
	callq	_i2c_set_adapdata
	movq	%r15, 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	_strlcpy
	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:
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_printk
	jmp	LBB0_8
LBB0_3:
	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:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
	movq	24(%rbx), %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:
	leaq	24(%rbx), %rsi
	movq	(%rbx), %rdi
	callq	_do_i2c_scan
LBB0_8:
	movl	8(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_udelay,4,2                 ## @i2c_udelay
	.comm	_cx8800_i2c_algo_template,4,2   ## @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	"%s: i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n"

	.comm	_i2c_scan,8,3                   ## @i2c_scan
L_.str.3:                               ## @.str.3
	.asciz	"%s: 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	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _i2c_udelay@GOTPAGE
Lloh1:
	ldr	x23, [x23, _i2c_udelay@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #4
	b.gt	LBB0_2
; %bb.1:
	mov	w8, #5
	str	w8, [x23]
LBB0_2:
	add	x21, x19, #64
Lloh2:
	adrp	x1, _cx8800_i2c_algo_template@GOTPAGE
Lloh3:
	ldr	x1, [x1, _cx8800_i2c_algo_template@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #16
	bl	_memcpy
	add	x22, x19, #40
	str	x20, [x19, #56]
	ldr	w0, [x19, #52]
	ldr	x1, [x19]
	mov	w2, #4
	bl	_strlcpy
Lloh4:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	w8, [x23]
	str	w8, [x19, #64]
	str	x19, [x19, #72]
	add	x1, x19, #80
	mov	x0, x22
	bl	_i2c_set_adapdata
	str	x21, [x19, #40]
	mov	x20, x19
	str	x22, [x20, #24]!
	ldr	w0, [x19, #32]
Lloh7:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	mov	x0, x19
	mov	w1, #1
	bl	_cx8800_bit_setscl
	mov	x0, x19
	mov	w1, #1
	bl	_cx8800_bit_setsda
	mov	x0, x22
	bl	_i2c_bit_add_bus
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x19]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	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:
	ldr	x1, [x19]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	x0, [x19, #24]
Lloh18:
	adrp	x1, _cx88_i2c_init.tuner_msg@PAGE
Lloh19:
	add	x1, x1, _cx88_i2c_init.tuner_msg@PAGEOFF
	mov	w2, #1
	bl	_i2c_transfer
LBB0_6:
Lloh20:
	adrp	x8, _i2c_scan@GOTPAGE
Lloh21:
	ldr	x8, [x8, _i2c_scan@GOTPAGEOFF]
Lloh22:
	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, #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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_udelay,4,2                 ; @i2c_udelay
	.comm	_cx8800_i2c_algo_template,4,2   ; @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	"%s: i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n"

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

.subsections_via_symbols
