	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function abx500_chargalg_get_ext_psy_data
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
LCPI0_1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
LCPI0_3:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_4:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_abx500_chargalg_get_ext_psy_data:      ## @abx500_chargalg_get_ext_psy_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	16(%rax), %r12
	movq	%rbx, %rdi
	callq	_power_supply_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %esi
	movq	(%rbx), %rax
	movl	24(%rax), %edx
	movq	%r12, %rdi
	callq	_match_string
	testl	%eax, %eax
	js	LBB0_90
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$140, %esi
	callq	_power_supply_get_property
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	-48(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_3:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_90
## %bb.4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	120(%rcx), %r14
	leaq	112(%rcx), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	24(%rcx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	40(%rcx), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	addq	$104, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_psy_to_ux500_charger
	movq	%rax, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-48(%rbp), %rdx
	callq	_power_supply_get_property
	testq	%rax, %rax
	je	LBB0_11
LBB0_89:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movl	(%rcx,%r13,4), %r12d
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, 16(%rax)
	movq	%r14, %rbx
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$128, 16(%rax)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	$-131, %r12d
	cmpl	$9, %r12d
	ja	LBB0_89
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r12,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_56:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_61
## %bb.57:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	je	LBB0_60
## %bb.58:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$130, %rax
	jne	LBB0_89
## %bb.59:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	jmp	LBB0_89
LBB0_62:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_67
## %bb.63:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	jne	LBB0_89
## %bb.64:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 56(%rax)
	jmp	LBB0_89
LBB0_74:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	jmp	LBB0_89
LBB0_70:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	cmpq	$130, 16(%rax)
	jne	LBB0_89
## %bb.71:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 64(%rax)
	jmp	LBB0_89
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$130, %rax
	jne	LBB0_89
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 20(%rax)
	jmp	LBB0_89
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	jne	LBB0_89
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	80(%rax), %ecx
	movq	_AC_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_30
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %eax
	jne	LBB0_89
## %bb.33:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 84(%rdx)
	orl	%ecx, %eax
	movl	%eax, 80(%rdx)
	movl	108(%rdx), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_queue_delayed_work
	jmp	LBB0_89
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_49
## %bb.36:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	jne	LBB0_89
## %bb.37:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax
	movl	$-141, %ecx
	addl	%ecx, %eax
	cmpl	$5, %eax
	ja	LBB0_89
## %bb.38:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_43:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_75:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_79
## %bb.76:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$130, %rax
	je	LBB0_80
## %bb.77:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$129, %rax
	jne	LBB0_89
## %bb.78:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 96(%rcx)
	jmp	LBB0_89
LBB0_81:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	cmpq	$128, %rax
	je	LBB0_84
## %bb.82:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$130, %rax
	jne	LBB0_89
## %bb.83:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	jmp	LBB0_89
LBB0_87:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_89
## %bb.88:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_89
LBB0_67:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 60(%rax)
	jmp	LBB0_89
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	80(%rax), %ecx
	movq	_USB_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %eax
	je	LBB0_89
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 84(%rdx)
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 80(%rdx)
	jmp	LBB0_89
LBB0_49:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax
	movl	$-141, %ecx
	addl	%ecx, %eax
	cmpl	$5, %eax
	ja	LBB0_89
## %bb.50:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_53:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [0,1,0,0]
	movups	%xmm0, (%rax)
	jmp	LBB0_89
LBB0_84:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_86
## %bb.85:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 68(%rax)
	jmp	LBB0_89
LBB0_61:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 92(%rcx)
	jmp	LBB0_89
LBB0_60:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 88(%rcx)
	jmp	LBB0_89
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	72(%rax), %ecx
	movq	_USB_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %eax
	jne	LBB0_89
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 76(%rdx)
	orl	%ecx, %eax
	movl	%eax, 72(%rdx)
	jmp	LBB0_89
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	72(%rax), %ecx
	movq	_AC_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %eax
	je	LBB0_89
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 76(%rdx)
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 72(%rdx)
	jmp	LBB0_89
LBB0_79:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 100(%rcx)
	jmp	LBB0_89
LBB0_80:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	jmp	LBB0_89
LBB0_73:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 64(%rax)
	jmp	LBB0_89
LBB0_66:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 56(%rax)
	jmp	LBB0_89
LBB0_69:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 60(%rax)
	jmp	LBB0_89
LBB0_86:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 68(%rax)
	jmp	LBB0_89
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 20(%rax)
	jmp	LBB0_89
LBB0_39:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_45:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_46
LBB0_47:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_51:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_5 Depth=1
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	movups	%xmm0, (%rax)
	jmp	LBB0_89
LBB0_54:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_46:                                ##   in Loop: Header=BB0_5 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,1,0]
	movups	%xmm0, (%rax)
	jmp	LBB0_89
LBB0_55:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_48:                                ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_89
LBB0_52:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [0,0,0,1]
	movups	%xmm0, (%rax)
	jmp	LBB0_89
LBB0_90:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_62, LBB0_62-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_70, LBB0_70-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_75, LBB0_75-LJTI0_0
.set L0_0_set_81, LBB0_81-LJTI0_0
.set L0_0_set_87, LBB0_87-LJTI0_0
LJTI0_0:
	.long	L0_0_set_56
	.long	L0_0_set_62
	.long	L0_0_set_74
	.long	L0_0_set_70
	.long	L0_0_set_13
	.long	L0_0_set_26
	.long	L0_0_set_35
	.long	L0_0_set_75
	.long	L0_0_set_81
	.long	L0_0_set_87
.set L0_1_set_39, LBB0_39-LJTI0_1
.set L0_1_set_45, LBB0_45-LJTI0_1
.set L0_1_set_43, LBB0_43-LJTI0_1
.set L0_1_set_47, LBB0_47-LJTI0_1
.set L0_1_set_41, LBB0_41-LJTI0_1
LJTI0_1:
	.long	L0_1_set_39
	.long	L0_1_set_45
	.long	L0_1_set_43
	.long	L0_1_set_47
	.long	L0_1_set_41
	.long	L0_1_set_43
.set L0_2_set_51, LBB0_51-LJTI0_2
.set L0_2_set_54, LBB0_54-LJTI0_2
.set L0_2_set_53, LBB0_53-LJTI0_2
.set L0_2_set_55, LBB0_55-LJTI0_2
.set L0_2_set_52, LBB0_52-LJTI0_2
LJTI0_2:
	.long	L0_2_set_51
	.long	L0_2_set_54
	.long	L0_2_set_53
	.long	L0_2_set_55
	.long	L0_2_set_52
	.long	L0_2_set_53
	.end_data_region
                                        ## -- End function
	.comm	_AC_CHG,4,2                     ## @AC_CHG
	.comm	_USB_CHG,4,2                    ## @USB_CHG
	.no_dead_strip	_abx500_chargalg_get_ext_psy_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function abx500_chargalg_get_ext_psy_data
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
lCPI0_2:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_3:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_abx500_chargalg_get_ext_psy_data:      ; @abx500_chargalg_get_ext_psy_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x21
	bl	_power_supply_get_drvdata
	mov	x20, x0
	ldr	w1, [x19, #8]
	ldr	x8, [x21]
	ldr	w2, [x8, #24]
	mov	x0, x22
	bl	_match_string
	tbnz	w0, #31, LBB0_91
; %bb.1:
	sub	x2, x29, #88
	mov	x0, x19
	mov	w1, #140
	bl	_power_supply_get_property
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldur	w8, [x29, #-88]
	str	w8, [x20]
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_91
; %bb.4:
	mov	x24, #0
	add	x28, x20, #120
	add	x26, x20, #112
	add	x10, x20, #24
	add	x9, x20, #40
	stp	x9, x10, [sp, #88]              ; 16-byte Folded Spill
	add	x9, x20, #104
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	mov	w22, #19923
	movk	w22, #4194, lsl #16
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x9, lCPI0_3@PAGE
Lloh3:
	ldr	q0, [x9, lCPI0_3@PAGEOFF]
	str	q0, [sp, #32]                   ; 16-byte Folded Spill
Lloh4:
	adrp	x9, lCPI0_0@PAGE
Lloh5:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh6:
	adrp	x9, lCPI0_1@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
	str	q0, [sp, #64]                   ; 16-byte Folded Spill
Lloh8:
	adrp	x9, lCPI0_2@PAGE
Lloh9:
	ldr	q0, [x9, lCPI0_2@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_psy_to_ux500_charger
	str	x0, [x25]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	x2, x29, #88
	mov	x0, x19
	mov	x1, x23
	bl	_power_supply_get_property
	cbz	x0, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.ge	LBB0_91
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	w23, [x9, x24, lsl #2]
	ldr	x9, [x28]
	cbnz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x8, #16]
	mov	x25, x28
	cmp	x9, #129
	b.eq	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x26]
	cbnz	x9, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x8, #16]
	mov	x25, x26
	cmp	x8, #128
	b.eq	LBB0_5
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w23, #131
	cmp	w8, #9
	b.hi	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	adr	x9, LBB0_14
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_60
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.eq	LBB0_61
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #130
	b.ne	LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #4]
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_48
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.ne	LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	cbz	w8, LBB0_75
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	str	w8, [x20, #56]
	b	LBB0_7
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x20, #8]
	b	LBB0_7
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #130
	b.ne	LBB0_7
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	cbz	w8, LBB0_71
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20, #64]
	b	LBB0_7
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_62
; %bb.27:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.eq	LBB0_63
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #130
	b.ne	LBB0_7
; %bb.29:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	cbz	w8, LBB0_78
; %bb.30:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20, #20]
	b	LBB0_7
LBB0_31:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_50
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.ne	LBB0_7
; %bb.33:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w11, [x29, #-88]
	ldr	w8, [x20, #80]
Lloh10:
	adrp	x9, _AC_CHG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AC_CHG@GOTPAGEOFF]
	b	LBB0_51
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_54
; %bb.35:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.ne	LBB0_7
; %bb.36:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	sub	w8, w8, #141
	cmp	w8, #5
	b.hi	LBB0_7
; %bb.37:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh12:
	adrp	x11, lJTI0_1@PAGE
Lloh13:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x9, LBB0_38
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_38:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	b	LBB0_57
LBB0_39:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_67
; %bb.40:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #130
	b.eq	LBB0_68
; %bb.41:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #129
	b.ne	LBB0_7
; %bb.42:                               ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #96]
	b	LBB0_7
LBB0_43:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #128
	b.eq	LBB0_58
; %bb.44:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #130
	b.ne	LBB0_7
; %bb.45:                               ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #16]
	b	LBB0_7
LBB0_46:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x21, LBB0_7
; %bb.47:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	str	w8, [x20]
	b	LBB0_7
LBB0_48:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	cbz	w8, LBB0_76
; %bb.49:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	str	w8, [x20, #60]
	b	LBB0_7
LBB0_50:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w11, [x29, #-88]
	ldr	w8, [x20, #80]
Lloh14:
	adrp	x9, _USB_CHG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_CHG@GOTPAGEOFF]
LBB0_51:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w11, LBB0_69
; %bb.52:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w10, LBB0_7
; %bb.53:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w9, w9, w8
	stp	w9, w8, [x20, #80]
	ldr	w0, [x20, #108]
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	mov	w2, #0
	bl	_queue_delayed_work
	b	LBB0_7
LBB0_54:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	sub	w8, w8, #141
	cmp	w8, #5
	b.hi	LBB0_7
; %bb.55:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh16:
	adrp	x11, lJTI0_2@PAGE
Lloh17:
	add	x11, x11, lJTI0_2@PAGEOFF
	adr	x9, LBB0_56
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_56:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
LBB0_57:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	q0, [sp, #64]                   ; 16-byte Folded Reload
	str	q0, [x8]
	b	LBB0_7
LBB0_58:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-88]
	cbz	w8, LBB0_77
; %bb.59:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	str	w8, [x20, #68]
	b	LBB0_7
LBB0_60:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #92]
	b	LBB0_7
LBB0_61:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #88]
	b	LBB0_7
LBB0_62:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w11, [x29, #-88]
	ldr	w8, [x20, #72]
Lloh18:
	adrp	x9, _USB_CHG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _USB_CHG@GOTPAGEOFF]
	b	LBB0_64
LBB0_63:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w11, [x29, #-88]
	ldr	w8, [x20, #72]
Lloh20:
	adrp	x9, _AC_CHG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AC_CHG@GOTPAGEOFF]
LBB0_64:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w11, LBB0_72
; %bb.65:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w10, LBB0_7
; %bb.66:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w9, w9, w8
	b	LBB0_74
LBB0_67:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #100]
	b	LBB0_7
LBB0_68:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x8, [x29, #-88]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20, #12]
	b	LBB0_7
LBB0_69:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w10, LBB0_7
; %bb.70:                               ;   in Loop: Header=BB0_8 Depth=1
	bic	w9, w8, w9
	stp	w9, w8, [x20, #80]
	b	LBB0_7
LBB0_71:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	str	w8, [x20, #64]
	b	LBB0_7
LBB0_72:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w10, LBB0_7
; %bb.73:                               ;   in Loop: Header=BB0_8 Depth=1
	bic	w9, w8, w9
LBB0_74:                                ;   in Loop: Header=BB0_8 Depth=1
	stp	w9, w8, [x20, #72]
	b	LBB0_7
LBB0_75:                                ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20, #56]
	b	LBB0_7
LBB0_76:                                ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20, #60]
	b	LBB0_7
LBB0_77:                                ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x20, #68]
	b	LBB0_7
LBB0_78:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	str	w8, [x20, #20]
	b	LBB0_7
LBB0_79:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	b	LBB0_84
LBB0_80:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	b	LBB0_86
LBB0_81:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	b	LBB0_88
LBB0_82:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	b	LBB0_90
LBB0_83:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
LBB0_84:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	q0, [sp, #32]                   ; 16-byte Folded Reload
	str	q0, [x8]
	b	LBB0_7
LBB0_85:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
LBB0_86:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	str	q0, [x8]
	b	LBB0_7
LBB0_87:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
LBB0_88:                                ;   in Loop: Header=BB0_8 Depth=1
	stp	xzr, xzr, [x8]
	b	LBB0_7
LBB0_89:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
LBB0_90:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x8]
	b	LBB0_7
LBB0_91:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
	.byte	(LBB0_26-LBB0_14)>>2
	.byte	(LBB0_31-LBB0_14)>>2
	.byte	(LBB0_34-LBB0_14)>>2
	.byte	(LBB0_39-LBB0_14)>>2
	.byte	(LBB0_43-LBB0_14)>>2
	.byte	(LBB0_46-LBB0_14)>>2
lJTI0_1:
	.byte	(LBB0_79-LBB0_38)>>2
	.byte	(LBB0_80-LBB0_38)>>2
	.byte	(LBB0_38-LBB0_38)>>2
	.byte	(LBB0_81-LBB0_38)>>2
	.byte	(LBB0_82-LBB0_38)>>2
	.byte	(LBB0_38-LBB0_38)>>2
lJTI0_2:
	.byte	(LBB0_83-LBB0_56)>>2
	.byte	(LBB0_85-LBB0_56)>>2
	.byte	(LBB0_56-LBB0_56)>>2
	.byte	(LBB0_87-LBB0_56)>>2
	.byte	(LBB0_89-LBB0_56)>>2
	.byte	(LBB0_56-LBB0_56)>>2
                                        ; -- End function
	.comm	_AC_CHG,4,2                     ; @AC_CHG
	.comm	_USB_CHG,4,2                    ; @USB_CHG
	.no_dead_strip	_abx500_chargalg_get_ext_psy_data
.subsections_via_symbols
