	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_charger_attr_parse
_smbb_charger_attr_parse:               ## @smbb_charger_attr_parse
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_smbb_charger_attrs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%esi, %r12d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	4(%r15,%r12,8), %esi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_smbb_charger_attr_read
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_smbb_charger_attr_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%r15,%r12,8)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_smbb_charger_attrs,8,3         ## @smbb_charger_attrs
	.no_dead_strip	_smbb_charger_attr_parse
.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_parse
_smbb_charger_attr_parse:               ; @smbb_charger_attr_parse
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _smbb_charger_attrs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smbb_charger_attrs@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	add	x8, x21, w1, uxtw #3
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	bl	_smbb_charger_attr_read
LBB0_2:
	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
LBB0_3:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_smbb_charger_attr_write
	cbz	w0, LBB0_2
; %bb.4:
	mov	w8, w19
	lsl	x8, x8, #3
	ldr	w8, [x21, x8]
	cbnz	w8, LBB0_1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_smbb_charger_attrs,8,3         ; @smbb_charger_attrs
	.no_dead_strip	_smbb_charger_attr_parse
.subsections_via_symbols
