	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_charger_enable_backup
_twl4030_charger_enable_backup:         ## @twl4030_charger_enable_backup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2500000, %edi                  ## imm = 0x2625A0
	jl	LBB0_17
## %bb.1:
	cmpl	$24, %esi
	jle	LBB0_17
## %bb.2:
	movq	_TWL4030_BBCHEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$3199999, %edi                  ## imm = 0x30D3FF
	jbe	LBB0_4
## %bb.3:
	movq	_TWL4030_BBSEL_3V2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_17:
	movq	_TWL_MODULE_PM_RECEIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TWL4030_BBCHEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TWL4030_BB_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	popq	%rbp
	jmp	_twl4030_clear_set              ## TAILCALL
LBB0_4:
	cmpl	$3099999, %edi                  ## imm = 0x2F4D5F
	jbe	LBB0_6
## %bb.5:
	movq	_TWL4030_BBSEL_3V1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	cmpl	$3000000, %edi                  ## imm = 0x2DC6C0
	jb	LBB0_7
## %bb.8:
	movq	_TWL4030_BBSEL_3V0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_TWL4030_BBSEL_2V5@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %edx
	cmpl	$999, %esi                      ## imm = 0x3E7
	jbe	LBB0_11
## %bb.10:
	movq	_TWL4030_BBISEL_1000uA@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	cmpl	$499, %esi                      ## imm = 0x1F3
	jbe	LBB0_13
## %bb.12:
	movq	_TWL4030_BBISEL_500uA@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	cmpl	$150, %esi
	jb	LBB0_14
## %bb.15:
	movq	_TWL4030_BBISEL_150uA@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_TWL4030_BBISEL_25uA@GOTPCREL(%rip), %rax
LBB0_16:
	orl	(%rax), %edx
	movq	_TWL_MODULE_PM_RECEIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TWL4030_BBSEL_MASK@GOTPCREL(%rip), %rax
	movq	_TWL4030_BBISEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_TWL4030_BB_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_twl4030_clear_set              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_RECEIVER,4,2     ## @TWL_MODULE_PM_RECEIVER
	.comm	_TWL4030_BBCHEN,4,2             ## @TWL4030_BBCHEN
	.comm	_TWL4030_BB_CFG,4,2             ## @TWL4030_BB_CFG
	.comm	_TWL4030_BBSEL_3V2,4,2          ## @TWL4030_BBSEL_3V2
	.comm	_TWL4030_BBSEL_3V1,4,2          ## @TWL4030_BBSEL_3V1
	.comm	_TWL4030_BBSEL_3V0,4,2          ## @TWL4030_BBSEL_3V0
	.comm	_TWL4030_BBSEL_2V5,4,2          ## @TWL4030_BBSEL_2V5
	.comm	_TWL4030_BBISEL_1000uA,4,2      ## @TWL4030_BBISEL_1000uA
	.comm	_TWL4030_BBISEL_500uA,4,2       ## @TWL4030_BBISEL_500uA
	.comm	_TWL4030_BBISEL_150uA,4,2       ## @TWL4030_BBISEL_150uA
	.comm	_TWL4030_BBISEL_25uA,4,2        ## @TWL4030_BBISEL_25uA
	.comm	_TWL4030_BBSEL_MASK,4,2         ## @TWL4030_BBSEL_MASK
	.comm	_TWL4030_BBISEL_MASK,4,2        ## @TWL4030_BBISEL_MASK
	.no_dead_strip	_twl4030_charger_enable_backup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_charger_enable_backup
_twl4030_charger_enable_backup:         ; @twl4030_charger_enable_backup
	.cfi_startproc
; %bb.0:
	mov	w8, #9632
	movk	w8, #38, lsl #16
	cmp	w0, w8
	ccmp	w1, #24, #4, ge
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TWL_MODULE_PM_RECEIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL_MODULE_PM_RECEIVER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TWL4030_BBCHEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TWL4030_BBCHEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TWL4030_BB_CFG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TWL4030_BB_CFG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w3, [x9]
	mov	w2, #0
	b	_twl4030_clear_set
LBB0_2:
Lloh9:
	adrp	x8, _TWL4030_BBCHEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TWL4030_BBCHEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TWL4030_BBSEL_3V2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TWL4030_BBSEL_3V2@GOTPAGEOFF]
Lloh14:
	adrp	x10, _TWL4030_BBSEL_3V1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TWL4030_BBSEL_3V1@GOTPAGEOFF]
	lsr	w11, w0, #10
	mov	w12, #19807
	movk	w12, #47, lsl #16
Lloh16:
	adrp	x13, _TWL4030_BBSEL_2V5@GOTPAGE
Lloh17:
	ldr	x13, [x13, _TWL4030_BBSEL_2V5@GOTPAGEOFF]
Lloh18:
	adrp	x14, _TWL4030_BBSEL_3V0@GOTPAGE
Lloh19:
	ldr	x14, [x14, _TWL4030_BBSEL_3V0@GOTPAGEOFF]
	mov	w15, #50879
	movk	w15, #45, lsl #16
	cmp	w0, w15
	csel	x13, x14, x13, hi
	cmp	w0, w12
	csel	x10, x10, x13, hi
	cmp	w11, #3124
	csel	x9, x9, x10, hi
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _TWL4030_BBISEL_1000uA@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TWL4030_BBISEL_1000uA@GOTPAGEOFF]
Lloh22:
	adrp	x11, _TWL4030_BBISEL_500uA@GOTPAGE
Lloh23:
	ldr	x11, [x11, _TWL4030_BBISEL_500uA@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _TWL4030_BBISEL_25uA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TWL4030_BBISEL_25uA@GOTPAGEOFF]
Lloh26:
	adrp	x12, _TWL4030_BBISEL_150uA@GOTPAGE
Lloh27:
	ldr	x12, [x12, _TWL4030_BBISEL_150uA@GOTPAGEOFF]
	cmp	w1, #149
	csel	x9, x12, x9, hi
	cmp	w1, #499
	csel	x9, x11, x9, hi
	cmp	w1, #999
	csel	x9, x10, x9, hi
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh28:
	adrp	x8, _TWL_MODULE_PM_RECEIVER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TWL_MODULE_PM_RECEIVER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _TWL4030_BBSEL_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TWL4030_BBSEL_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _TWL4030_BBISEL_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TWL4030_BBISEL_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _TWL4030_BB_CFG@GOTPAGE
Lloh38:
	ldr	x10, [x10, _TWL4030_BB_CFG@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh39:
	ldr	w3, [x10]
	b	_twl4030_clear_set
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_RECEIVER,4,2     ; @TWL_MODULE_PM_RECEIVER
	.comm	_TWL4030_BBCHEN,4,2             ; @TWL4030_BBCHEN
	.comm	_TWL4030_BB_CFG,4,2             ; @TWL4030_BB_CFG
	.comm	_TWL4030_BBSEL_3V2,4,2          ; @TWL4030_BBSEL_3V2
	.comm	_TWL4030_BBSEL_3V1,4,2          ; @TWL4030_BBSEL_3V1
	.comm	_TWL4030_BBSEL_3V0,4,2          ; @TWL4030_BBSEL_3V0
	.comm	_TWL4030_BBSEL_2V5,4,2          ; @TWL4030_BBSEL_2V5
	.comm	_TWL4030_BBISEL_1000uA,4,2      ; @TWL4030_BBISEL_1000uA
	.comm	_TWL4030_BBISEL_500uA,4,2       ; @TWL4030_BBISEL_500uA
	.comm	_TWL4030_BBISEL_150uA,4,2       ; @TWL4030_BBISEL_150uA
	.comm	_TWL4030_BBISEL_25uA,4,2        ; @TWL4030_BBISEL_25uA
	.comm	_TWL4030_BBSEL_MASK,4,2         ; @TWL4030_BBSEL_MASK
	.comm	_TWL4030_BBISEL_MASK,4,2        ; @TWL4030_BBISEL_MASK
	.no_dead_strip	_twl4030_charger_enable_backup
.subsections_via_symbols
