	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_probe
_bq2415x_probe:                         ## @bq2415x_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	testq	%r12, %r12
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_bq2415x_id_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	_bq2415x_id@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_53
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	leaq	4(%r14), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_11:
	movl	(%r13), %edi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %ecx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_50
## %bb.14:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movl	%r12d, (%r13)
	movq	%r15, 32(%r13)
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	movq	%rbx, %r15
	jmp	LBB0_18
LBB0_7:
	movq	%r15, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_acpi_match_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %rax
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_52
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_53
LBB0_50:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %r15
	jmp	LBB0_51
LBB0_16:
	movq	%r15, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	movq	%rbx, %r15
	je	LBB0_19
## %bb.17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movl	(%r14), %eax
	movl	%eax, 112(%r13)
LBB0_19:
	movq	%r15, 8(%r13)
	movq	_BQ2415X_MODE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 104(%r13)
	movq	%rax, 48(%r13)
	movq	$0, 96(%r13)
	movl	$0, 16(%r13)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_21
## %bb.20:
	movq	32(%r13), %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_29
LBB0_21:
	movq	32(%r13), %rdi
	leaq	84(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.22:
	movq	32(%r13), %rdi
	leaq	80(%r13), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.23:
	movq	32(%r13), %rdi
	leaq	76(%r13), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.24:
	movq	32(%r13), %rdi
	leaq	72(%r13), %rdx
	leaq	L_.str.7(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.25:
	movq	32(%r13), %rdi
	leaq	68(%r13), %rdx
	leaq	L_.str.8(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.26:
	movq	32(%r13), %rdi
	leaq	64(%r13), %rdx
	leaq	L_.str.9(%rip), %rsi
	callq	_device_property_read_u32
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.27:
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.28:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, 24(%r13)
	jmp	LBB0_30
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_52
LBB0_29:
	leaq	56(%r13), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$32, %edx
	callq	_memcpy
LBB0_30:
	movq	%r13, %rdi
	callq	_bq2415x_reset_chip
	movq	%r13, %rdi
	callq	_bq2415x_power_supply_init
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movl	%eax, %r14d
	movq	32(%r13), %rdi
	leaq	L_.str.11(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_32
LBB0_33:
	movq	%r13, %rdi
	callq	_bq2415x_set_defaults
	testl	%eax, %eax
	je	LBB0_36
## %bb.34:
	movl	%eax, %r14d
	movq	32(%r13), %rdi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_35
LBB0_36:
	cmpq	$0, 24(%r13)
	jne	LBB0_39
## %bb.37:
	cmpq	$0, 56(%r13)
	je	LBB0_38
LBB0_39:
	movq	_bq2415x_notifier_call@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	88(%r13), %rdi
	movq	%rax, 88(%r13)
	callq	_power_supply_reg_notifier
	testl	%eax, %eax
	je	LBB0_40
## %bb.54:
	movl	%eax, %r14d
	movq	32(%r13), %rdi
	leaq	L_.str.13(%rip), %rsi
LBB0_35:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_bq2415x_power_supply_exit
LBB0_32:
	movq	24(%r13), %rdi
	callq	_of_node_put
LBB0_51:
	movq	%r15, %rdi
	callq	_kfree
LBB0_52:
	movq	_bq2415x_id_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_bq2415x_id@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_idr_remove
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %r12d
LBB0_53:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	leaq	L_.str.14(%rip), %rsi
	movl	$1, %eax
	jmp	LBB0_41
LBB0_38:
	leaq	L_.str.15(%rip), %rsi
	movl	$-1, %eax
LBB0_41:
	movl	%eax, 16(%r13)
	movq	32(%r13), %rdi
	callq	_dev_info
	cmpq	$0, 88(%r13)
	je	LBB0_49
## %bb.42:
	testq	%rbx, %rbx
	je	LBB0_44
## %bb.43:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_power_supply_get_by_phandle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_49
	jmp	LBB0_46
LBB0_44:
	movq	56(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_49
## %bb.45:
	callq	_power_supply_get_by_name
	movq	%rax, %rbx
LBB0_46:
	testq	%rbx, %rbx
	je	LBB0_49
## %bb.47:
	movq	_POWER_SUPPLY_PROP_CURRENT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_power_supply_get_property
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_power_supply_put
	testl	%r14d, %r14d
	jne	LBB0_49
## %bb.48:
	movl	-48(%rbp), %esi
	movq	%r13, %rdi
	callq	_bq2415x_update_reported_mode
	movq	48(%r13), %rsi
	movq	%r13, %rdi
	callq	_bq2415x_set_mode
LBB0_49:
	movq	%r13, %rdi
	addq	$40, %rdi
	movq	_bq2415x_timer_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bq2415x_set_autotimer
	movq	32(%r13), %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Neither devicetree, nor platform data, nor ACPI support\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bq2415x_id_mutex,4,2           ## @bq2415x_id_mutex
	.comm	_bq2415x_id,4,2                 ## @bq2415x_id
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s-%d"

L_.str.2:                               ## @.str.2
	.asciz	"failed to match device name\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate device name\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BQ2415X_MODE_OFF,8,3           ## @BQ2415X_MODE_OFF
L_.str.4:                               ## @.str.4
	.asciz	"ti,current-limit"

L_.str.5:                               ## @.str.5
	.asciz	"ti,weak-battery-voltage"

L_.str.6:                               ## @.str.6
	.asciz	"ti,battery-regulation-voltage"

L_.str.7:                               ## @.str.7
	.asciz	"ti,charge-current"

L_.str.8:                               ## @.str.8
	.asciz	"ti,termination-current"

L_.str.9:                               ## @.str.9
	.asciz	"ti,resistor-sense"

L_.str.10:                              ## @.str.10
	.asciz	"ti,usb-charger-detection"

L_.str.11:                              ## @.str.11
	.asciz	"failed to register power supply: %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"failed to set default values: %d\n"

	.comm	_bq2415x_notifier_call,8,3      ## @bq2415x_notifier_call
L_.str.13:                              ## @.str.13
	.asciz	"failed to reg notifier: %d\n"

L_.str.14:                              ## @.str.14
	.asciz	"automode supported, waiting for events\n"

L_.str.15:                              ## @.str.15
	.asciz	"automode not supported\n"

	.comm	_POWER_SUPPLY_PROP_CURRENT_MAX,4,2 ## @POWER_SUPPLY_PROP_CURRENT_MAX
	.comm	_bq2415x_timer_work,4,2         ## @bq2415x_timer_work
L_.str.16:                              ## @.str.16
	.asciz	"driver registered\n"

	.no_dead_strip	_bq2415x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_probe
_bq2415x_probe:                         ; @bq2415x_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x1
	mov	x24, x0
	ldp	x23, x21, [x0, #8]
	cmp	x21, #0
	ccmp	x23, #0, #0, eq
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_26
LBB0_2:
Lloh0:
	adrp	x20, _bq2415x_id_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bq2415x_id_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w4, [x27]
Lloh4:
	adrp	x0, _bq2415x_id@GOTPAGE
Lloh5:
	ldr	x0, [x0, _bq2415x_id@GOTPAGEOFF]
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	tbnz	w19, #31, LBB0_42
; %bb.3:
	cbz	x25, LBB0_21
; %bb.4:
	mov	x26, #0
	add	x8, x25, #4
LBB0_5:
	ldr	w0, [x27]
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_kasprintf
	cbz	x0, LBB0_24
; %bb.6:
	mov	x22, x0
	ldr	w2, [x27]
	mov	x0, x24
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_27
; %bb.7:
	mov	x20, x0
	mov	x0, x24
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	w19, [x20]
	str	x24, [x20, #32]
	cbnz	x25, LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_11
; %bb.9:
	mov	x25, x26
LBB0_10:
	ldr	w8, [x25]
	str	w8, [x20, #112]
LBB0_11:
Lloh8:
	adrp	x8, _BQ2415X_MODE_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BQ2415X_MODE_OFF@GOTPAGEOFF]
	str	x22, [x20, #8]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #48]
	stp	xzr, x8, [x20, #96]
	str	wzr, [x20, #16]
	cbnz	x21, LBB0_13
; %bb.12:
	ldr	x0, [x20, #32]
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_29
LBB0_13:
	ldr	x0, [x20, #32]
	add	x2, x20, #84
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.14:
	ldr	x0, [x20, #32]
	add	x2, x20, #80
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.15:
	ldr	x0, [x20, #32]
	add	x2, x20, #76
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.16:
	ldr	x0, [x20, #32]
	add	x2, x20, #72
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.17:
	ldr	x0, [x20, #32]
	add	x2, x20, #68
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.18:
	ldr	x0, [x20, #32]
	add	x2, x20, #64
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_device_property_read_u32
	mov	x23, x0
	cbnz	w0, LBB0_39
; %bb.19:
	cbz	x21, LBB0_30
; %bb.20:
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	str	x0, [x20, #24]
	b	LBB0_30
LBB0_21:
	mov	x0, x24
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_24
; %bb.22:
	ldr	x8, [x24]
	ldr	w0, [x8]
	mov	x1, x24
	bl	_acpi_match_device
	cbz	x0, LBB0_28
; %bb.23:
	mov	x26, x0
	add	x8, x0, #4
	b	LBB0_5
LBB0_24:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_41
LBB0_26:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_err
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_42
LBB0_27:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_40
LBB0_28:
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_dev_err
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_25
LBB0_29:
	add	x0, x20, #56
	mov	x1, x23
	mov	w2, #32
	bl	_memcpy
LBB0_30:
	mov	x0, x20
	bl	_bq2415x_reset_chip
	mov	x0, x20
	bl	_bq2415x_power_supply_init
	cbz	w0, LBB0_32
; %bb.31:
	mov	x23, x0
	ldr	x0, [x20, #32]
	str	x23, [sp]
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
	b	LBB0_39
LBB0_32:
	mov	x0, x20
	bl	_bq2415x_set_defaults
	cbz	w0, LBB0_34
; %bb.33:
	mov	x23, x0
	ldr	x0, [x20, #32]
	str	x23, [sp]
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_38
LBB0_34:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_36
; %bb.35:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_44
LBB0_36:
Lloh45:
	adrp	x8, _bq2415x_notifier_call@GOTPAGE
Lloh46:
	ldr	x8, [x8, _bq2415x_notifier_call@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	mov	x0, x20
	str	x8, [x0, #88]!
	bl	_power_supply_reg_notifier
	cbz	w0, LBB0_43
; %bb.37:
	mov	x23, x0
	ldr	x0, [x20, #32]
	str	x23, [sp]
Lloh48:
	adrp	x1, l_.str.13@PAGE
Lloh49:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_38:
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	mov	x0, x20
	bl	_bq2415x_power_supply_exit
LBB0_39:
	ldr	x0, [x20, #24]
	bl	_of_node_put
LBB0_40:
	mov	x0, x22
	bl	_kfree
LBB0_41:
Lloh50:
	adrp	x20, _bq2415x_id_mutex@GOTPAGE
Lloh51:
	ldr	x20, [x20, _bq2415x_id_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh52:
	adrp	x0, _bq2415x_id@GOTPAGE
Lloh53:
	ldr	x0, [x0, _bq2415x_id@GOTPAGEOFF]
	mov	x1, x19
	bl	_idr_remove
	mov	x0, x20
	bl	_mutex_unlock
	mov	x19, x23
LBB0_42:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_43:
Lloh54:
	adrp	x1, l_.str.14@PAGE
Lloh55:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w8, #1
	b	LBB0_45
LBB0_44:
Lloh56:
	adrp	x1, l_.str.15@PAGE
Lloh57:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	w8, #-1
LBB0_45:
	str	w8, [x20, #16]
	ldr	x0, [x20, #32]
	bl	_dev_info
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_53
; %bb.46:
	cbz	x21, LBB0_48
; %bb.47:
Lloh58:
	adrp	x1, l_.str.10@PAGE
Lloh59:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_power_supply_get_by_phandle
	mov	x19, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_53
	b	LBB0_50
LBB0_48:
	ldr	x0, [x20, #56]
	cbz	x0, LBB0_53
; %bb.49:
	bl	_power_supply_get_by_name
	mov	x19, x0
LBB0_50:
	cbz	x19, LBB0_53
; %bb.51:
Lloh60:
	adrp	x8, _POWER_SUPPLY_PROP_CURRENT_MAX@GOTPAGE
Lloh61:
	ldr	x8, [x8, _POWER_SUPPLY_PROP_CURRENT_MAX@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_get_property
	mov	x21, x0
	mov	x0, x19
	bl	_power_supply_put
	cbnz	w21, LBB0_53
; %bb.52:
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_bq2415x_update_reported_mode
	ldr	x1, [x20, #48]
	mov	x0, x20
	bl	_bq2415x_set_mode
LBB0_53:
	add	x0, x20, #40
Lloh63:
	adrp	x8, _bq2415x_timer_work@GOTPAGE
Lloh64:
	ldr	x8, [x8, _bq2415x_timer_work@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x20
	mov	w1, #1
	bl	_bq2415x_set_autotimer
	ldr	x0, [x20, #32]
Lloh66:
	adrp	x1, l_.str.16@PAGE
Lloh67:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_dev_info
	mov	w19, #0
	b	LBB0_42
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Neither devicetree, nor platform data, nor ACPI support\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bq2415x_id_mutex,4,2           ; @bq2415x_id_mutex
	.comm	_bq2415x_id,4,2                 ; @bq2415x_id
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s-%d"

l_.str.2:                               ; @.str.2
	.asciz	"failed to match device name\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate device name\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BQ2415X_MODE_OFF,8,3           ; @BQ2415X_MODE_OFF
l_.str.4:                               ; @.str.4
	.asciz	"ti,current-limit"

l_.str.5:                               ; @.str.5
	.asciz	"ti,weak-battery-voltage"

l_.str.6:                               ; @.str.6
	.asciz	"ti,battery-regulation-voltage"

l_.str.7:                               ; @.str.7
	.asciz	"ti,charge-current"

l_.str.8:                               ; @.str.8
	.asciz	"ti,termination-current"

l_.str.9:                               ; @.str.9
	.asciz	"ti,resistor-sense"

l_.str.10:                              ; @.str.10
	.asciz	"ti,usb-charger-detection"

l_.str.11:                              ; @.str.11
	.asciz	"failed to register power supply: %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"failed to set default values: %d\n"

	.comm	_bq2415x_notifier_call,8,3      ; @bq2415x_notifier_call
l_.str.13:                              ; @.str.13
	.asciz	"failed to reg notifier: %d\n"

l_.str.14:                              ; @.str.14
	.asciz	"automode supported, waiting for events\n"

l_.str.15:                              ; @.str.15
	.asciz	"automode not supported\n"

	.comm	_POWER_SUPPLY_PROP_CURRENT_MAX,4,2 ; @POWER_SUPPLY_PROP_CURRENT_MAX
	.comm	_bq2415x_timer_work,4,2         ; @bq2415x_timer_work
l_.str.16:                              ; @.str.16
	.asciz	"driver registered\n"

	.no_dead_strip	_bq2415x_probe
.subsections_via_symbols
