	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_bci_state_to_status
_twl4030_bci_state_to_status:           ## @twl4030_bci_state_to_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TWL4030_MSTATEC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_TWL4030_MSTATEC_QUICK1@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_3
## %bb.1:
	movq	_TWL4030_MSTATEC_QUICK7@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_3
## %bb.2:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_TWL4030_MSTATEC_COMPLETE1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TWL4030_MSTATEC_COMPLETE4@GOTPCREL(%rip), %rsi
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rdx
	movq	%rdx, %rax
	cmpl	(%rsi), %edi
	jg	LBB0_5
## %bb.4:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
LBB0_5:
	cmpl	%edi, %ecx
	cmovgq	%rdx, %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_MSTATEC_MASK,4,2       ## @TWL4030_MSTATEC_MASK
	.comm	_TWL4030_MSTATEC_QUICK1,4,2     ## @TWL4030_MSTATEC_QUICK1
	.comm	_TWL4030_MSTATEC_QUICK7,4,2     ## @TWL4030_MSTATEC_QUICK7
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_TWL4030_MSTATEC_COMPLETE1,4,2  ## @TWL4030_MSTATEC_COMPLETE1
	.comm	_TWL4030_MSTATEC_COMPLETE4,4,2  ## @TWL4030_MSTATEC_COMPLETE4
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.no_dead_strip	_twl4030_bci_state_to_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_bci_state_to_status
_twl4030_bci_state_to_status:           ; @twl4030_bci_state_to_status
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TWL4030_MSTATEC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_MSTATEC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _TWL4030_MSTATEC_QUICK1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TWL4030_MSTATEC_QUICK1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TWL4030_MSTATEC_QUICK7@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TWL4030_MSTATEC_QUICK7@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w8, w10, #0, le
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _TWL4030_MSTATEC_COMPLETE1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TWL4030_MSTATEC_COMPLETE1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _TWL4030_MSTATEC_COMPLETE4@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TWL4030_MSTATEC_COMPLETE4@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w9, w8, #0, le
Lloh15:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
Lloh17:
	adrp	x9, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
	csel	x8, x9, x8, gt
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh19:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_MSTATEC_MASK,4,2       ; @TWL4030_MSTATEC_MASK
	.comm	_TWL4030_MSTATEC_QUICK1,4,2     ; @TWL4030_MSTATEC_QUICK1
	.comm	_TWL4030_MSTATEC_QUICK7,4,2     ; @TWL4030_MSTATEC_QUICK7
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_TWL4030_MSTATEC_COMPLETE1,4,2  ; @TWL4030_MSTATEC_COMPLETE1
	.comm	_TWL4030_MSTATEC_COMPLETE4,4,2  ; @TWL4030_MSTATEC_COMPLETE4
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.no_dead_strip	_twl4030_bci_state_to_status
.subsections_via_symbols
