	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2841er_read_regs
_cxd2841er_read_regs:                   ## @cxd2841er_read_regs
	.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	$88, %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, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -120(%rbp)
	movq	_I2C_SLVX@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rsi, (%rax)
	setne	%cl
	movq	(%rdi,%rcx,8), %r13
	movq	%r13, -112(%rbp)
	movl	$1, -104(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$0, -88(%rbp)
	movq	%r13, -80(%rbp)
	movl	%r8d, -72(%rbp)
	movq	%r15, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	16(%rdi), %rdi
	leaq	-112(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpl	$2, %eax
	cmovel	%eax, %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movq	-120(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_cxd2841er_i2c_debug
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	16(%r12), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-120(%rbp), %r9
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_dev_warn
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SLVX,8,3                   ## @I2C_SLVX
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: i2c rd failed=%d addr=%02x reg=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.no_dead_strip	_cxd2841er_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2841er_read_regs
_cxd2841er_read_regs:                   ; @cxd2841er_read_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x4
	mov	x20, x3
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	x2, [sp]
Lloh3:
	adrp	x8, _I2C_SLVX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SLVX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w8, ne
	ldr	x21, [x0, w8, uxtw #3]
	str	x21, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #16]
	mov	x8, sp
	str	x8, [sp, #24]
	str	wzr, [sp, #32]
	str	x21, [sp, #40]
	str	w4, [sp, #48]
	str	x3, [sp, #56]
Lloh6:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldr	x0, [x0, #16]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	mov	w8, #-1
	ccmp	w0, w8, #4, ne
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csneg	w23, w0, w8, le
	tbnz	w23, #31, LBB0_2
; %bb.1:
	ldr	x2, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	bl	_cxd2841er_i2c_debug
	mov	w23, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x22, #16]
Lloh12:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x5, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	mov	x4, x21
	bl	_dev_warn
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SLVX,8,3                   ; @I2C_SLVX
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: i2c rd failed=%d addr=%02x reg=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.no_dead_strip	_cxd2841er_read_regs
.subsections_via_symbols
