	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4270_fill_cache
_cs4270_fill_cache:                     ## @cs4270_fill_cache
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rcx
	movq	_CS4270_FIRSTREG@GOTPCREL(%rip), %rax
	movq	_CS4270_I2C_INCR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	movq	_CS4270_NUMREGS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_i2c_smbus_read_i2c_block_data
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	(%r15), %rcx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4270_FIRSTREG,4,2            ## @CS4270_FIRSTREG
	.comm	_CS4270_I2C_INCR,4,2            ## @CS4270_I2C_INCR
	.comm	_CS4270_NUMREGS,8,3             ## @CS4270_NUMREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c read failure, addr=0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cs4270_fill_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4270_fill_cache
_cs4270_fill_cache:                     ; @cs4270_fill_cache
	.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
	ldp	x20, x3, [x0, #8]
Lloh0:
	adrp	x8, _CS4270_FIRSTREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS4270_FIRSTREG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CS4270_I2C_INCR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CS4270_I2C_INCR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x21, _CS4270_NUMREGS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CS4270_NUMREGS@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x0, x20
	bl	_i2c_smbus_read_i2c_block_data
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4270_FIRSTREG,4,2            ; @CS4270_FIRSTREG
	.comm	_CS4270_I2C_INCR,4,2            ; @CS4270_I2C_INCR
	.comm	_CS4270_NUMREGS,8,3             ; @CS4270_NUMREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c read failure, addr=0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cs4270_fill_cache
.subsections_via_symbols
