	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8998_battery_get_property
_max8998_battery_get_property:          ## @max8998_battery_get_property
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	(%rax), %rax
	movq	(%rax), %rdi
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.2:
	movq	_MAX8998_REG_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_max8998_read_reg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	testb	$16, -20(%rbp)
	jne	LBB0_4
LBB0_7:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	_MAX8998_REG_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_max8998_read_reg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	testb	$8, -20(%rbp)
	je	LBB0_7
LBB0_4:
	movl	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8998_REG_STATUS2,4,2        ## @MAX8998_REG_STATUS2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max8998_battery_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8998_battery_get_property
_max8998_battery_get_property:          ; @max8998_battery_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
	ldr	x8, [x0]
	ldr	x0, [x8]
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _MAX8998_REG_STATUS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX8998_REG_STATUS2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max8998_read_reg
	cbnz	w0, LBB0_9
; %bb.3:
	ldrb	w8, [sp, #12]
	tbnz	w8, #4, LBB0_7
LBB0_4:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _MAX8998_REG_STATUS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX8998_REG_STATUS2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max8998_read_reg
	cbnz	w0, LBB0_9
; %bb.6:
	ldrb	w8, [sp, #12]
	tbz	w8, #3, LBB0_4
LBB0_7:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8998_REG_STATUS2,4,2        ; @MAX8998_REG_STATUS2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max8998_battery_get_property
.subsections_via_symbols
