	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_i2c_read
_af9005_i2c_read:                       ## @af9005_i2c_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_deb_i2c
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r13), %rax
	movq	%rax, -64(%rbp)
	movq	_APO_REG_I2C_RW_SILICON_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	leaq	-64(%rbp), %rcx
	movl	$1, %r8d
	callq	_af9005_read_tuner_registers
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_2
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_i2c
	movq	_deb_i2c@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_debug_dump
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_i2c
	movl	%r15d, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_read i2caddr %x, reg %x, len %d\n "

	.comm	_APO_REG_I2C_RW_SILICON_TUNER,4,2 ## @APO_REG_I2C_RW_SILICON_TUNER
L_.str.1:                               ## @.str.1
	.asciz	"i2c_read failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c data read: "

	.no_dead_strip	_af9005_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_i2c_read
_af9005_i2c_read:                       ; @af9005_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	stp	x2, x19, [sp, #8]
	str	x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_i2c
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, w19
Lloh2:
	adrp	x26, _APO_REG_I2C_RW_SILICON_TUNER@GOTPAGE
Lloh3:
	ldr	x26, [x26, _APO_REG_I2C_RW_SILICON_TUNER@GOTPAGEOFF]
	mov	x27, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x21, [sp, #24]
	ldr	w1, [x26]
	add	x3, sp, #24
	mov	x0, x23
	mov	x2, x22
	mov	w4, #1
	bl	_af9005_read_tuner_registers
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	str	x8, [x27], #8
	add	x21, x21, #1
	subs	x25, x25, #1
	b.ne	LBB0_2
LBB0_4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_i2c
Lloh6:
	adrp	x2, _deb_i2c@GOTPAGE
Lloh7:
	ldr	x2, [x2, _deb_i2c@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_debug_dump
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	mov	x24, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_i2c
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_read i2caddr %x, reg %x, len %d\n "

	.comm	_APO_REG_I2C_RW_SILICON_TUNER,4,2 ; @APO_REG_I2C_RW_SILICON_TUNER
l_.str.1:                               ; @.str.1
	.asciz	"i2c_read failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c data read: "

	.no_dead_strip	_af9005_i2c_read
.subsections_via_symbols
