	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq27xxx_battery_capacity_level
_bq27xxx_battery_capacity_level:        ## @bq27xxx_battery_capacity_level
	.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
	movl	4(%rdi), %eax
	testl	%ecx, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_BQ27000_FLAG_FC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.5:
	movq	_BQ27000_FLAG_EDV1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.9:
	movq	_BQ27000_FLAG_EDVF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
LBB0_12:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_BQ27XXX_FLAG_FC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_2:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_BQ27XXX_FLAG_SOC1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_6:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_BQ27XXX_FLAG_SOCF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_13:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ27XXX_O_ZERO,4,2             ## @BQ27XXX_O_ZERO
	.comm	_BQ27000_FLAG_FC,4,2            ## @BQ27000_FLAG_FC
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_FULL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_FULL
	.comm	_BQ27000_FLAG_EDV1,4,2          ## @BQ27000_FLAG_EDV1
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_LOW,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_LOW
	.comm	_BQ27000_FLAG_EDVF,4,2          ## @BQ27000_FLAG_EDVF
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_NORMAL
	.comm	_BQ27XXX_FLAG_FC,4,2            ## @BQ27XXX_FLAG_FC
	.comm	_BQ27XXX_FLAG_SOC1,4,2          ## @BQ27XXX_FLAG_SOC1
	.comm	_BQ27XXX_FLAG_SOCF,4,2          ## @BQ27XXX_FLAG_SOCF
	.no_dead_strip	_bq27xxx_battery_capacity_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq27xxx_battery_capacity_level
_bq27xxx_battery_capacity_level:        ; @bq27xxx_battery_capacity_level
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BQ27XXX_O_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ27XXX_O_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldp	w10, w8, [x0]
	tst	w9, w10
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _BQ27000_FLAG_FC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ER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL@GOTPAGEOFF]
Lloh25:
	adrp	x11, _POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPAGE
Lloh26:
	ldr	x11, [x11, _POWER_SUPPLY_CAPACITY_LEVEL_NORMAL@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ27XXX_O_ZERO,4,2             ; @BQ27XXX_O_ZERO
	.comm	_BQ27000_FLAG_FC,4,2            ; @BQ27000_FLAG_FC
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_FULL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_FULL
	.comm	_BQ27000_FLAG_EDV1,4,2          ; @BQ27000_FLAG_EDV1
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_LOW,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_LOW
	.comm	_BQ27000_FLAG_EDVF,4,2          ; @BQ27000_FLAG_EDVF
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_NORMAL
	.comm	_BQ27XXX_FLAG_FC,4,2            ; @BQ27XXX_FLAG_FC
	.comm	_BQ27XXX_FLAG_SOC1,4,2          ; @BQ27XXX_FLAG_SOC1
	.comm	_BQ27XXX_FLAG_SOCF,4,2          ; @BQ27XXX_FLAG_SOCF
	.no_dead_strip	_bq27xxx_battery_capacity_level
.subsections_via_symbols
