	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_charger_attr_read
_smbb_charger_attr_read:                ## @smbb_charger_attr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_smbb_charger_attrs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%esi, %r15d
	movl	24(%rdi), %edi
	leaq	(%r15,%r15,2), %r13
	movq	16(%r12,%r13,8), %rsi
	addq	16(%rbx), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movl	8(%r12,%r13,8), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movl	-44(%rbp), %edi
	callq	*(%r12,%r13,8)
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %edi
	movl	8(%r12,%r13,8), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	-44(%rbp), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smbb_charger_attrs,8,3         ## @smbb_charger_attrs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s => %d\n"

	.no_dead_strip	_smbb_charger_attr_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbb_charger_attr_read
_smbb_charger_attr_read:                ; @smbb_charger_attr_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _smbb_charger_attrs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smbb_charger_attrs@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w21, w1
	ldr	w0, [x0, #24]
	ldr	x8, [x19, #16]
	mov	w9, #24
	umaddl	x9, w1, w9, x22
	ldr	x9, [x9, #16]
	add	x1, x9, x8
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	mov	w8, #24
	madd	x8, x21, x8, x22
	ldr	w2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	mov	w8, #24
	madd	x22, x21, x8, x22
	ldr	x8, [x22]
	ldr	w0, [sp, #12]
	blr	x8
	mov	x3, x0
	str	w0, [sp, #12]
	ldr	w0, [x19, #8]
	ldr	w2, [x22, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	ldr	x9, [x19]
	str	w8, [x9, x21, lsl #2]
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_smbb_charger_attrs,8,3         ; @smbb_charger_attrs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s => %d\n"

	.no_dead_strip	_smbb_charger_attr_read
.subsections_via_symbols
