	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm2xxx_wall_charger_probe
_pm2xxx_wall_charger_probe:             ## @pm2xxx_wall_charger_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	8(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	$0, -48(%rbp)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$192, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r12, 104(%rax)
	movq	_pm2xxx_int@GOTPCREL(%rip), %rax
	movq	%rax, 184(%r14)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, 88(%r14)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, 176(%r14)
	movl	(%r13), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	%r13, 168(%r14)
	movq	%r15, 160(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	88(%r14), %rax
	movl	20(%rax), %eax
	movl	%eax, 140(%r14)
	movq	_POWER_SUPPLY_TYPE_MAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r14)
	movq	_pm2xxx_charger_ac_props@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 120(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 128(%r14)
	movq	_pm2xxx_charger_ac_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%r14)
	movq	88(%r14), %rax
	movl	16(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	12(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_pm2xxx_charger_ac_en@GOTPCREL(%rip), %rax
	movq	%rax, 80(%r14)
	movq	_pm2xxx_charger_watchdog_kick@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r14)
	movq	_pm2xxx_charger_update_charger_current@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r14)
	movq	_pm2xxx_charger_voltage_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	movq	-8(%rbx,%rax,8), %rax
	movq	%rax, 56(%r14)
	movq	_pm2xxx_charger_current_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	movq	-8(%rbx,%rax,8), %rax
	movq	%rax, 48(%r14)
	movq	_WD_KICK_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 24(%r14)
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_alloc_ordered_workqueue
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	152(%r14), %rdi
	movq	_pm2xxx_charger_ac_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	148(%r14), %rdi
	movq	_pm2xxx_charger_check_main_thermal_prot_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	144(%r14), %rdi
	movq	_pm2xxx_charger_check_hw_failure_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DEFERRABLE_WORK
	movq	104(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_regulator_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
LBB0_42:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_16
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_17:
	leaq	120(%r14), %rsi
	movq	104(%r14), %rdi
	leaq	-48(%rbp), %rdx
	callq	_power_supply_register
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	104(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_20:
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movq	_pm2xxx_charger_irq@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %edx
	movq	88(%r14), %rcx
	movl	8(%rcx), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	movq	104(%r14), %r15
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	(%rax), %r12d
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_23:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	104(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_25:
	movq	104(%r14), %rdi
	callq	_pm_runtime_enable
	movq	104(%r14), %rdi
	movq	_PM2XXX_AUTOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	104(%r14), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	104(%r14), %rdi
	callq	_pm_runtime_resume
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_enable_irq_wake
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	%eax, %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_22:
	movq	32(%r14), %rdi
	callq	_power_supply_unregister
LBB0_19:
	movq	16(%r14), %rdi
	callq	_regulator_put
LBB0_15:
	movq	8(%r14), %rdi
	callq	_destroy_workqueue
	jmp	LBB0_16
LBB0_28:
	movq	%r14, %rdi
	addq	$112, %rdi
	callq	_mutex_init
	movq	88(%r14), %rax
	movl	4(%rax), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_36
## %bb.29:
	movq	88(%r14), %rax
	movl	4(%rax), %edi
	movl	%edi, 96(%r14)
	leaq	L_.str.13(%rip), %rsi
	callq	_gpio_request
	testl	%eax, %eax
	js	LBB0_30
## %bb.31:
	movl	96(%r14), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	testl	%eax, %eax
	js	LBB0_32
## %bb.35:
	movq	%r14, %rdi
	callq	_set_lpn_pin
LBB0_36:
	movq	_PM2XXX_NUM_INT_REG@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_39
## %bb.37:
	xorl	%ebx, %ebx
	movq	_pm2xxx_interrupt_registers@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_pm2xxx_reg_read
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_38
LBB0_39:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pm2xxx_charger_detection
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.40:
	cmpq	$0, -56(%rbp)
	je	LBB0_42
## %bb.41:
	movl	$1, 100(%r14)
	movq	_AB8500_POW_KEY_1_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	movq	_AB8500_MAIN_CH_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ab8500_override_turn_on_stat
	movl	$1, (%r14)
	movq	32(%r14), %rdi
	callq	_power_supply_changed
	movq	32(%r14), %rdi
	leaq	L_.str.16(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_sysfs_notify
	jmp	LBB0_42
LBB0_30:
	movl	%eax, %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_34
LBB0_32:
	movl	%eax, %ebx
	movq	104(%r14), %rdi
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	96(%r14), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movl	96(%r14), %edi
	callq	_gpio_free
LBB0_34:
	movq	88(%r14), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_disable_irq_wake
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data supplied\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"pm2xxx_charger allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pm2xxx_int,4,2                 ## @pm2xxx_int
L_.str.2:                               ## @.str.2
	.asciz	"no charger platform data supplied\n"

L_.str.3:                               ## @.str.3
	.asciz	"no battery platform data supplied\n"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"pm2301 i2c_check_functionality failed\n"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ## @POWER_SUPPLY_TYPE_MAINS
	.comm	_pm2xxx_charger_ac_props,8,3    ## @pm2xxx_charger_ac_props
	.comm	_pm2xxx_charger_ac_get_property,4,2 ## @pm2xxx_charger_ac_get_property
	.comm	_pm2xxx_charger_ac_en,4,2       ## @pm2xxx_charger_ac_en
	.comm	_pm2xxx_charger_watchdog_kick,4,2 ## @pm2xxx_charger_watchdog_kick
	.comm	_pm2xxx_charger_update_charger_current,4,2 ## @pm2xxx_charger_update_charger_current
	.comm	_pm2xxx_charger_voltage_map,8,3 ## @pm2xxx_charger_voltage_map
	.comm	_pm2xxx_charger_current_map,8,3 ## @pm2xxx_charger_current_map
	.comm	_WD_KICK_INTERVAL,4,2           ## @WD_KICK_INTERVAL
L_.str.5:                               ## @.str.5
	.asciz	"pm2xxx_charger_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
L_.str.6:                               ## @.str.6
	.asciz	"failed to create work queue\n"

	.comm	_pm2xxx_charger_ac_work,4,2     ## @pm2xxx_charger_ac_work
	.comm	_pm2xxx_charger_check_main_thermal_prot_work,4,2 ## @pm2xxx_charger_check_main_thermal_prot_work
	.comm	_pm2xxx_charger_check_hw_failure_work,4,2 ## @pm2xxx_charger_check_hw_failure_work
L_.str.7:                               ## @.str.7
	.asciz	"vddadc"

L_.str.8:                               ## @.str.8
	.asciz	"failed to get vddadc regulator\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to register AC charger\n"

	.comm	_pm2xxx_charger_irq,8,3         ## @pm2xxx_charger_irq
L_.str.10:                              ## @.str.10
	.asciz	"failed to request %s IRQ %d: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"set active Error\n"

	.comm	_PM2XXX_AUTOSUSPEND_DELAY,4,2   ## @PM2XXX_AUTOSUSPEND_DELAY
L_.str.12:                              ## @.str.12
	.asciz	"failed to set irq wake\n"

L_.str.13:                              ## @.str.13
	.asciz	"pm2301_lpm_gpio"

L_.str.14:                              ## @.str.14
	.asciz	"pm2301_lpm_gpio request failed\n"

L_.str.15:                              ## @.str.15
	.asciz	"pm2301_lpm_gpio direction failed\n"

	.comm	_PM2XXX_NUM_INT_REG,4,2         ## @PM2XXX_NUM_INT_REG
	.comm	_pm2xxx_interrupt_registers,8,3 ## @pm2xxx_interrupt_registers
	.comm	_AB8500_POW_KEY_1_ON,4,2        ## @AB8500_POW_KEY_1_ON
	.comm	_AB8500_MAIN_CH_DET,4,2         ## @AB8500_MAIN_CH_DET
L_.str.16:                              ## @.str.16
	.asciz	"present"

	.no_dead_strip	_pm2xxx_wall_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm2xxx_wall_charger_probe
_pm2xxx_wall_charger_probe:             ; @pm2xxx_wall_charger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x0
	ldr	x23, [x22, #8]!
	str	xzr, [sp, #40]
	cbz	x23, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #192
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	str	x22, [x0, #104]
Lloh3:
	adrp	x8, _pm2xxx_int@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pm2xxx_int@GOTPAGEOFF]
	str	x8, [x0, #184]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_11
; %bb.3:
	str	x8, [x19, #88]
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.4:
	str	x8, [x19, #176]
Lloh5:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_16
; %bb.5:
	stp	x21, x20, [x19, #160]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh11:
	adrp	x8, _pm2xxx_charger_ac_props@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pm2xxx_charger_ac_props@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	mov	x20, x19
	str	x0, [x20, #120]!
	ldur	x8, [x20, #-32]
	ldr	w8, [x8, #20]
Lloh14:
	adrp	x9, _POWER_SUPPLY_TYPE_MAINS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _POWER_SUPPLY_TYPE_MAINS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	bl	_ARRAY_SIZE
Lloh17:
	adrp	x8, _pm2xxx_charger_ac_get_property@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pm2xxx_charger_ac_get_property@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	w0, w8, [x20, #8]
	ldur	x8, [x20, #-32]
Lloh20:
	adrp	x9, _pm2xxx_charger_ac_en@GOTPAGE
Lloh21:
	ldr	x9, [x9, _pm2xxx_charger_ac_en@GOTPAGEOFF]
	ldur	d0, [x8, #12]
	stur	x9, [x20, #-40]
Lloh22:
	adrp	x8, _pm2xxx_charger_watchdog_kick@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pm2xxx_charger_watchdog_kick@GOTPAGEOFF]
Lloh24:
	adrp	x9, _pm2xxx_charger_update_charger_current@GOTPAGE
Lloh25:
	ldr	x9, [x9, _pm2xxx_charger_update_charger_current@GOTPAGEOFF]
	str	d0, [sp, #40]
	stp	x9, x8, [x20, #-56]
Lloh26:
	adrp	x8, _pm2xxx_charger_voltage_map@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pm2xxx_charger_voltage_map@GOTPAGEOFF]
Lloh28:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	ldr	x8, [x21, w8, sxtw #3]
	stur	x8, [x20, #-64]
Lloh29:
	adrp	x8, _pm2xxx_charger_current_map@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pm2xxx_charger_current_map@GOTPAGEOFF]
Lloh31:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	ldr	x8, [x21, w8, sxtw #3]
	stur	x8, [x20, #-72]
Lloh32:
	adrp	x8, _WD_KICK_INTERVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WD_KICK_INTERVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	stur	w8, [x20, #-80]
	movi.2s	v0, #1
	stur	d0, [x20, #-96]
Lloh35:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_alloc_ordered_workqueue
	stur	x0, [x20, #-112]
	cbz	x0, LBB0_17
; %bb.6:
	add	x0, x19, #152
Lloh40:
	adrp	x8, _pm2xxx_charger_ac_work@GOTPAGE
Lloh41:
	ldr	x8, [x8, _pm2xxx_charger_ac_work@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #148
Lloh43:
	adrp	x8, _pm2xxx_charger_check_main_thermal_prot_work@GOTPAGE
Lloh44:
	ldr	x8, [x8, _pm2xxx_charger_check_main_thermal_prot_work@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #144
Lloh46:
	adrp	x8, _pm2xxx_charger_check_hw_failure_work@GOTPAGE
Lloh47:
	ldr	x8, [x8, _pm2xxx_charger_check_hw_failure_work@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_INIT_DEFERRABLE_WORK
	ldr	x0, [x19, #104]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_regulator_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #104]
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	b	LBB0_29
LBB0_8:
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh55:
	adrp	x8, _EINVAL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh59:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_11:
Lloh61:
	adrp	x1, l_.str.2@PAGE
Lloh62:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh63:
	adrp	x1, l_.str.3@PAGE
Lloh64:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x22
	bl	_dev_err
Lloh65:
	adrp	x8, _EINVAL@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x19
	bl	_kfree
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
Lloh68:
	adrp	x8, _ENODEV@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #104]
Lloh71:
	adrp	x1, l_.str.4@PAGE
Lloh72:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_17:
Lloh73:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #104]
Lloh76:
	adrp	x1, l_.str.6@PAGE
Lloh77:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_18:
	ldr	x0, [x19, #104]
	add	x2, sp, #40
	mov	x1, x20
	bl	_power_supply_register
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x0, [x19, #104]
Lloh78:
	adrp	x1, l_.str.9@PAGE
Lloh79:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_28
LBB0_20:
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_gpio_to_irq
Lloh80:
	adrp	x22, _pm2xxx_charger_irq@GOTPAGE
Lloh81:
	ldr	x22, [x22, _pm2xxx_charger_irq@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x19, #88]
	ldr	w3, [x9, #8]
	ldp	w4, w2, [x8]
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	ldr	x21, [x19, #104]
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x9, [x19, #88]
	ldr	w0, [x9]
	ldr	w22, [x8]
	bl	_gpio_to_irq
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x20, [sp, #8]
	str	x22, [sp]
Lloh82:
	adrp	x1, l_.str.10@PAGE
Lloh83:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_27
LBB0_22:
	mov	x0, x21
	bl	_pm_runtime_set_active
	cbz	w0, LBB0_24
; %bb.23:
	ldr	x0, [x19, #104]
Lloh84:
	adrp	x1, l_.str.11@PAGE
Lloh85:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
LBB0_24:
	ldr	x0, [x19, #104]
	bl	_pm_runtime_enable
	ldr	x0, [x19, #104]
Lloh86:
	adrp	x8, _PM2XXX_AUTOSUSPEND_DELAY@GOTPAGE
Lloh87:
	ldr	x8, [x8, _PM2XXX_AUTOSUSPEND_DELAY@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x19, #104]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x19, #104]
	bl	_pm_runtime_resume
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_enable_irq_wake
	cbz	w0, LBB0_30
; %bb.25:
	mov	x20, x0
	ldr	x0, [x19, #104]
Lloh89:
	adrp	x1, l_.str.12@PAGE
Lloh90:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dev_err
LBB0_26:
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	mov	x1, x19
	bl	_free_irq
LBB0_27:
	ldr	x0, [x19, #32]
	bl	_power_supply_unregister
LBB0_28:
	ldr	x0, [x19, #16]
	bl	_regulator_put
LBB0_29:
	ldr	x0, [x19, #8]
	bl	_destroy_workqueue
	b	LBB0_14
LBB0_30:
	add	x0, x19, #112
	bl	_mutex_init
	ldr	x8, [x19, #88]
	ldr	w0, [x8, #4]
	bl	_gpio_is_valid
	cbz	x0, LBB0_34
; %bb.31:
	ldr	x8, [x19, #88]
	ldr	w0, [x8, #4]
	str	w0, [x19, #96]
Lloh91:
	adrp	x1, l_.str.13@PAGE
Lloh92:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_gpio_request
	tbnz	w0, #31, LBB0_40
; %bb.32:
	ldr	w0, [x19, #96]
	mov	w1, #0
	bl	_gpio_direction_output
	tbnz	w0, #31, LBB0_41
; %bb.33:
	mov	x0, x19
	bl	_set_lpn_pin
LBB0_34:
Lloh93:
	adrp	x20, _PM2XXX_NUM_INT_REG@GOTPAGE
Lloh94:
	ldr	x20, [x20, _PM2XXX_NUM_INT_REG@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x21, #0
Lloh95:
	adrp	x22, _pm2xxx_interrupt_registers@GOTPAGE
Lloh96:
	ldr	x22, [x22, _pm2xxx_interrupt_registers@GOTPAGEOFF]
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	add	x2, sp, #32
	mov	x0, x19
	bl	_pm2xxx_reg_read
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_36
LBB0_37:
	add	x1, sp, #32
	mov	x0, x19
	bl	_pm2xxx_charger_detection
	mov	w20, #0
	cbnz	w0, LBB0_15
; %bb.38:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_15
; %bb.39:
	mov	w20, #1
Lloh97:
	adrp	x8, _AB8500_POW_KEY_1_ON@GOTPAGE
Lloh98:
	ldr	x8, [x8, _AB8500_POW_KEY_1_ON@GOTPAGEOFF]
	str	w20, [x19, #100]
Lloh99:
	ldr	w8, [x8]
	mvn	w0, w8
Lloh100:
	adrp	x8, _AB8500_MAIN_CH_DET@GOTPAGE
Lloh101:
	ldr	x8, [x8, _AB8500_MAIN_CH_DET@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
	bl	_ab8500_override_turn_on_stat
	str	w20, [x19]
	ldr	x0, [x19, #32]
	bl	_power_supply_changed
	ldr	x0, [x19, #32]
Lloh103:
	adrp	x2, l_.str.16@PAGE
Lloh104:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	mov	w20, #0
	b	LBB0_15
LBB0_40:
	mov	x20, x0
	ldr	x0, [x19, #104]
Lloh105:
	adrp	x1, l_.str.14@PAGE
Lloh106:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_dev_err
	b	LBB0_43
LBB0_41:
	mov	x20, x0
	ldr	x0, [x19, #104]
Lloh107:
	adrp	x1, l_.str.15@PAGE
Lloh108:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19, #96]
	bl	_gpio_is_valid
	cbz	x0, LBB0_43
; %bb.42:
	ldr	w0, [x19, #96]
	bl	_gpio_free
LBB0_43:
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_disable_irq_wake
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data supplied\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"pm2xxx_charger allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pm2xxx_int,4,2                 ; @pm2xxx_int
l_.str.2:                               ; @.str.2
	.asciz	"no charger platform data supplied\n"

l_.str.3:                               ; @.str.3
	.asciz	"no battery platform data supplied\n"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"pm2301 i2c_check_functionality failed\n"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ; @POWER_SUPPLY_TYPE_MAINS
	.comm	_pm2xxx_charger_ac_props,8,3    ; @pm2xxx_charger_ac_props
	.comm	_pm2xxx_charger_ac_get_property,4,2 ; @pm2xxx_charger_ac_get_property
	.comm	_pm2xxx_charger_ac_en,4,2       ; @pm2xxx_charger_ac_en
	.comm	_pm2xxx_charger_watchdog_kick,4,2 ; @pm2xxx_charger_watchdog_kick
	.comm	_pm2xxx_charger_update_charger_current,4,2 ; @pm2xxx_charger_update_charger_current
	.comm	_pm2xxx_charger_voltage_map,8,3 ; @pm2xxx_charger_voltage_map
	.comm	_pm2xxx_charger_current_map,8,3 ; @pm2xxx_charger_current_map
	.comm	_WD_KICK_INTERVAL,4,2           ; @WD_KICK_INTERVAL
l_.str.5:                               ; @.str.5
	.asciz	"pm2xxx_charger_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
l_.str.6:                               ; @.str.6
	.asciz	"failed to create work queue\n"

	.comm	_pm2xxx_charger_ac_work,4,2     ; @pm2xxx_charger_ac_work
	.comm	_pm2xxx_charger_check_main_thermal_prot_work,4,2 ; @pm2xxx_charger_check_main_thermal_prot_work
	.comm	_pm2xxx_charger_check_hw_failure_work,4,2 ; @pm2xxx_charger_check_hw_failure_work
l_.str.7:                               ; @.str.7
	.asciz	"vddadc"

l_.str.8:                               ; @.str.8
	.asciz	"failed to get vddadc regulator\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to register AC charger\n"

	.comm	_pm2xxx_charger_irq,8,3         ; @pm2xxx_charger_irq
l_.str.10:                              ; @.str.10
	.asciz	"failed to request %s IRQ %d: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"set active Error\n"

	.comm	_PM2XXX_AUTOSUSPEND_DELAY,4,2   ; @PM2XXX_AUTOSUSPEND_DELAY
l_.str.12:                              ; @.str.12
	.asciz	"failed to set irq wake\n"

l_.str.13:                              ; @.str.13
	.asciz	"pm2301_lpm_gpio"

l_.str.14:                              ; @.str.14
	.asciz	"pm2301_lpm_gpio request failed\n"

l_.str.15:                              ; @.str.15
	.asciz	"pm2301_lpm_gpio direction failed\n"

	.comm	_PM2XXX_NUM_INT_REG,4,2         ; @PM2XXX_NUM_INT_REG
	.comm	_pm2xxx_interrupt_registers,8,3 ; @pm2xxx_interrupt_registers
	.comm	_AB8500_POW_KEY_1_ON,4,2        ; @AB8500_POW_KEY_1_ON
	.comm	_AB8500_MAIN_CH_DET,4,2         ; @AB8500_MAIN_CH_DET
l_.str.16:                              ; @.str.16
	.asciz	"present"

	.no_dead_strip	_pm2xxx_wall_charger_probe
.subsections_via_symbols
