	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq27xxx_battery_dead
_bq27xxx_battery_dead:                  ## @bq27xxx_battery_dead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BQ27XXX_O_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BQ27XXX_FLAG_SOC1@GOTPCREL(%rip), %r9
	movq	_BQ27000_FLAG_EDV1@GOTPCREL(%rip), %r8
	movq	_BQ27XXX_FLAG_SOCF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ27000_FLAG_EDVF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r9), %edx
	orl	(%r8), %eax
	testl	%ecx, (%rdi)
	cmovel	%edx, %eax
	andl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ27XXX_O_ZERO,4,2             ## @BQ27XXX_O_ZERO
	.comm	_BQ27000_FLAG_EDV1,4,2          ## @BQ27000_FLAG_EDV1
	.comm	_BQ27000_FLAG_EDVF,4,2          ## @BQ27000_FLAG_EDVF
	.comm	_BQ27XXX_FLAG_SOC1,4,2          ## @BQ27XXX_FLAG_SOC1
	.comm	_BQ27XXX_FLAG_SOCF,4,2          ## @BQ27XXX_FLAG_SOCF
	.no_dead_strip	_bq27xxx_battery_dead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq27xxx_battery_dead
_bq27xxx_battery_dead:                  ; @bq27xxx_battery_dead
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BQ27XXX_O_ZERO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BQ27XXX_O_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BQ27XXX_FLAG_SOC1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BQ27XXX_FLAG_SOC1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _BQ27000_FLAG_EDV1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BQ27000_FLAG_EDV1@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _BQ27XXX_FLAG_SOCF@GOTPAGE
Lloh10:
	ldr	x12, [x12, _BQ27XXX_FLAG_SOCF@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _BQ27000_FLAG_EDVF@GOTPAGE
Lloh13:
	ldr	x13, [x13, _BQ27000_FLAG_EDVF@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w10, w12, w10
	orr	w11, w13, w11
	tst	w9, w8
	csel	w8, w10, w11, eq
	and	w0, w8, w1
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ27XXX_O_ZERO,4,2             ; @BQ27XXX_O_ZERO
	.comm	_BQ27000_FLAG_EDV1,4,2          ; @BQ27000_FLAG_EDV1
	.comm	_BQ27000_FLAG_EDVF,4,2          ; @BQ27000_FLAG_EDVF
	.comm	_BQ27XXX_FLAG_SOC1,4,2          ; @BQ27XXX_FLAG_SOC1
	.comm	_BQ27XXX_FLAG_SOCF,4,2          ; @BQ27XXX_FLAG_SOCF
	.no_dead_strip	_bq27xxx_battery_dead
.subsections_via_symbols
