	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_charger_probe
_smbb_charger_probe:                    ## @smbb_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$144, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 136(%rax)
	leaq	128(%rax), %rdi
	callq	_mutex_init
	movl	4(%r14), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	(%r14), %edi
	leaq	8(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_47
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_47
LBB0_8:
	movl	16(%r15), %edi
	movq	_SMBB_MISC_REV2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_47:
	movl	%r12d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %eax
	leal	1(%rax), %edx
	movl	%edx, (%r15)
	decl	%eax
	cmpl	$2, %eax
	jae	LBB0_11
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_of_property_read_bool
	movq	%rax, 96(%r15)
	movq	__ATTR_CNT@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_smbb_charger_attr_parse
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_15
LBB0_17:
	movq	%r15, -144(%rbp)
	movl	(%r14), %eax
	movl	%eax, -136(%rbp)
	movq	_bat_psy_desc@GOTPCREL(%rip), %rsi
	leaq	-160(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_power_supply_register
	movq	%rax, 120(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	120(%r15), %rdi
	jmp	LBB0_38
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_16:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_7
LBB0_19:
	movq	%r15, -112(%rbp)
	movq	_smbb_bif@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%rdi, -120(%rbp)
	callq	_ARRAY_SIZE
	movl	%eax, -128(%rbp)
	movq	_usb_psy_desc@GOTPCREL(%rip), %rsi
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_power_supply_register
	movq	%rax, 112(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	112(%r15), %rdi
LBB0_38:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_47
LBB0_21:
	movq	_smbb_usb_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_extcon_dev_allocate
	movq	%rax, 104(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.10(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_47
LBB0_23:
	movq	104(%r15), %rsi
	movq	%r14, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	js	LBB0_24
## %bb.25:
	cmpq	$0, 96(%r15)
	je	LBB0_26
LBB0_28:
	movq	_smbb_charger_irqs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_36
## %bb.29:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	24(%rax,%r13), %esi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	(%rbx), %rax
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	*32(%rax,%r13)
	movq	(%rbx), %rax
	movq	32(%rax,%r13), %rcx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	24(%rax,%r13), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jne	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %r12
	movq	%rax, %rbx
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$40, %r13
	movq	%rbx, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	movq	%r12, %rbx
	jl	LBB0_30
LBB0_36:
	movq	%r15, %rsi
	addq	$40, %rsi
	movl	$-1, 40(%r15)
	leaq	L_.str.15(%rip), %rax
	movq	%rax, 48(%r15)
	movq	_smbb_chg_otg_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 80(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%r15)
	movq	_REGULATOR_VOLTAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r15)
	leaq	L_.str.16(%rip), %rcx
	movq	%rcx, 56(%r15)
	movq	%rax, 64(%r15)
	movq	%r14, -56(%rbp)
	movq	%r15, -64(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_regulator_register
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	32(%r15), %rdi
	jmp	LBB0_38
LBB0_24:
	movl	%eax, %r12d
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_7
LBB0_26:
	movq	%r15, -80(%rbp)
	movq	(%rbx), %rdi
	movq	%rdi, -88(%rbp)
	callq	_ARRAY_SIZE
	movl	%eax, -96(%rbp)
	movq	_dc_psy_desc@GOTPCREL(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_power_supply_register
	movq	%rax, 88(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	88(%r15), %rdi
	jmp	LBB0_38
LBB0_39:
	movl	(%r14), %edi
	leaq	L_.str.17(%rip), %rsi
	callq	_of_property_read_bool
	movq	%rax, 24(%r15)
	movl	16(%r15), %edi
	movq	_SMBB_BAT_BTC_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r15), %rsi
	movq	_BTC_CTRL_COLD_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BTC_CTRL_HOT_EXT_N@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	%ebx, %edx
	orl	%ecx, %edx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_40
## %bb.48:
	movl	%eax, %r12d
	cmpq	$0, 24(%r15)
	leaq	L_.str.20(%rip), %rax
	leaq	L_.str.19(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.18(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_47
LBB0_31:
	movq	(%rbx), %rax
	movl	24(%rax,%r13), %edx
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_32
LBB0_34:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	24(%rax,%r13), %edx
	leaq	L_.str.14(%rip), %rsi
LBB0_32:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_47
LBB0_40:
	movq	_smbb_charger_setup@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_46
## %bb.41:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_42
LBB0_45:                                ##   in Loop: Header=BB0_42 Depth=1
	incq	%r13
	movq	_smbb_charger_setup@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$40, %rbx
	cmpq	%rax, %r13
	jge	LBB0_46
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r12
	movl	-16(%r12,%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_BIT
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	16(%r15), %edi
	movq	(%r12,%rbx), %rsi
	addq	8(%r15), %rsi
	movl	-12(%r12,%rbx), %edx
	movl	-8(%r12,%rbx), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_45
## %bb.44:
	movl	%eax, %r12d
	leaq	L_.str.21(%rip), %rsi
	jmp	LBB0_7
LBB0_46:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to locate regmap\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"missing or invalid 'reg' property\n"

	.comm	_SMBB_MISC_REV2,8,3             ## @SMBB_MISC_REV2
L_.str.3:                               ## @.str.3
	.asciz	"unable to read revision\n"

L_.str.4:                               ## @.str.4
	.asciz	"v1 hardware not supported\n"

L_.str.5:                               ## @.str.5
	.asciz	"Initializing SMBB rev %u"

L_.str.6:                               ## @.str.6
	.asciz	"qcom,disable-dc"

	.comm	__ATTR_CNT,4,2                  ## @_ATTR_CNT
L_.str.7:                               ## @.str.7
	.asciz	"failed to parse/apply settings\n"

	.comm	_bat_psy_desc,4,2               ## @bat_psy_desc
L_.str.8:                               ## @.str.8
	.asciz	"failed to register battery\n"

	.comm	_smbb_bif,8,3                   ## @smbb_bif
	.comm	_usb_psy_desc,4,2               ## @usb_psy_desc
L_.str.9:                               ## @.str.9
	.asciz	"failed to register USB power supply\n"

	.comm	_smbb_usb_extcon_cable,4,2      ## @smbb_usb_extcon_cable
L_.str.10:                              ## @.str.10
	.asciz	"failed to allocate extcon device\n"

L_.str.11:                              ## @.str.11
	.asciz	"failed to register extcon device\n"

	.comm	_dc_psy_desc,4,2                ## @dc_psy_desc
L_.str.12:                              ## @.str.12
	.asciz	"failed to register DC power supply\n"

	.comm	_smbb_charger_irqs,8,3          ## @smbb_charger_irqs
L_.str.13:                              ## @.str.13
	.asciz	"failed to get irq '%s'\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.14:                              ## @.str.14
	.asciz	"failed to request irq '%s'\n"

L_.str.15:                              ## @.str.15
	.asciz	"otg-vbus"

	.comm	_smbb_chg_otg_ops,4,2           ## @smbb_chg_otg_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_REGULATOR_VOLTAGE,4,2          ## @REGULATOR_VOLTAGE
L_.str.16:                              ## @.str.16
	.asciz	"usb-otg-in"

L_.str.17:                              ## @.str.17
	.asciz	"qcom,jeita-extended-temp-range"

	.comm	_SMBB_BAT_BTC_CTRL,8,3          ## @SMBB_BAT_BTC_CTRL
	.comm	_BTC_CTRL_COLD_EXT,4,2          ## @BTC_CTRL_COLD_EXT
	.comm	_BTC_CTRL_HOT_EXT_N,4,2         ## @BTC_CTRL_HOT_EXT_N
L_.str.18:                              ## @.str.18
	.asciz	"unable to set %s temperature range\n"

L_.str.19:                              ## @.str.19
	.asciz	"JEITA extended"

L_.str.20:                              ## @.str.20
	.asciz	"normal"

	.comm	_smbb_charger_setup,8,3         ## @smbb_charger_setup
L_.str.21:                              ## @.str.21
	.asciz	"unable to initializing charging, bailing\n"

	.no_dead_strip	_smbb_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbb_charger_probe
_smbb_charger_probe:                    ; @smbb_charger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #144
	bl	_devm_kzalloc
	cbz	x0, LBB0_23
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #136]
	add	x0, x0, #128
	bl	_mutex_init
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #16]
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	add	x2, x20, #8
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_24
LBB0_6:
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _SMBB_MISC_REV2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMBB_MISC_REV2@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x2, x20
	bl	_regmap_read
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_25
LBB0_9:
	ldr	w8, [x20]
	add	w2, w8, #1
	str	w2, [x20]
	sub	w8, w8, #1
	cmp	w8, #2
	b.hs	LBB0_16
; %bb.10:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_property_read_bool
	str	x0, [x20, #96]
Lloh20:
	adrp	x23, __ATTR_CNT@GOTPAGE
Lloh21:
	ldr	x23, [x23, __ATTR_CNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	w22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_smbb_charger_attr_parse
	cbnz	w0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_12
LBB0_14:
	str	x20, [sp, #112]
	ldr	w8, [x19]
	str	w8, [sp, #120]
Lloh22:
	adrp	x1, _bat_psy_desc@GOTPAGE
Lloh23:
	ldr	x1, [x1, _bat_psy_desc@GOTPAGEOFF]
	add	x2, sp, #96
	mov	x0, x19
	bl	_devm_power_supply_register
	str	x0, [x20, #120]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.15:
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #120]
	b	LBB0_20
LBB0_16:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_17:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_8
LBB0_18:
Lloh30:
	adrp	x22, _smbb_bif@GOTPAGE
Lloh31:
	ldr	x22, [x22, _smbb_bif@GOTPAGEOFF]
	ldr	x0, [x22]
	stp	x0, x20, [sp, #72]
	bl	_ARRAY_SIZE
	str	w0, [sp, #64]
Lloh32:
	adrp	x1, _usb_psy_desc@GOTPAGE
Lloh33:
	ldr	x1, [x1, _usb_psy_desc@GOTPAGEOFF]
	add	x2, sp, #64
	mov	x0, x19
	bl	_devm_power_supply_register
	str	x0, [x20, #112]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #112]
LBB0_20:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_25
LBB0_21:
Lloh36:
	adrp	x8, _smbb_usb_extcon_cable@GOTPAGE
Lloh37:
	ldr	x8, [x8, _smbb_usb_extcon_cable@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_extcon_dev_allocate
	str	x0, [x20, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.22:
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_23:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_25:
	mov	x0, x21
	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
	add	sp, sp, #208
	ret
LBB0_26:
	ldr	x1, [x20, #104]
	mov	x0, x19
	bl	_devm_extcon_dev_register
	tbnz	w0, #31, LBB0_35
; %bb.27:
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_36
LBB0_28:
Lloh43:
	adrp	x22, _smbb_charger_irqs@GOTPAGE
Lloh44:
	ldr	x22, [x22, _smbb_charger_irqs@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.29:
	mov	x23, #0
	mov	x24, #0
Lloh45:
	adrp	x25, _IRQF_ONESHOT@GOTPAGE
Lloh46:
	ldr	x25, [x25, _IRQF_ONESHOT@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w1, [x8, #24]
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_40
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	x8, [x8, #32]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	x3, [x8, #32]
	ldr	w4, [x25]
	ldr	w5, [x8, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_41
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #40
	cmp	x24, w0, sxtw
	b.lt	LBB0_30
LBB0_33:
	mov	w8, #-1
	mov	x1, x20
	str	w8, [x1, #40]!
Lloh47:
	adrp	x8, l_.str.15@PAGE
Lloh48:
	add	x8, x8, l_.str.15@PAGEOFF
Lloh49:
	adrp	x9, _smbb_chg_otg_ops@GOTPAGE
Lloh50:
	ldr	x9, [x9, _smbb_chg_otg_ops@GOTPAGEOFF]
	str	x9, [x20, #80]
Lloh51:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
Lloh54:
	adrp	x10, _REGULATOR_VOLTAGE@GOTPAGE
Lloh55:
	ldr	x10, [x10, _REGULATOR_VOLTAGE@GOTPAGEOFF]
Lloh56:
	ldr	w10, [x10]
Lloh57:
	adrp	x11, l_.str.16@PAGE
Lloh58:
	add	x11, x11, l_.str.16@PAGEOFF
	stp	w10, w9, [x20, #72]
	stp	x8, x11, [x20, #48]
	str	x8, [x20, #64]
	stp	x20, x19, [sp, #16]
	add	x2, sp, #16
	mov	x0, x19
	bl	_devm_regulator_register
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_38
; %bb.34:
	ldr	x0, [x20, #32]
	b	LBB0_20
LBB0_35:
	mov	x21, x0
Lloh59:
	adrp	x1, l_.str.11@PAGE
Lloh60:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_8
LBB0_36:
	ldr	x0, [x22]
	stp	x0, x20, [sp, #40]
	bl	_ARRAY_SIZE
	str	w0, [sp, #32]
Lloh61:
	adrp	x1, _dc_psy_desc@GOTPAGE
Lloh62:
	ldr	x1, [x1, _dc_psy_desc@GOTPAGEOFF]
	add	x2, sp, #32
	mov	x0, x19
	bl	_devm_power_supply_register
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.37:
Lloh63:
	adrp	x1, l_.str.12@PAGE
Lloh64:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #88]
	b	LBB0_20
LBB0_38:
	ldr	w0, [x19]
Lloh65:
	adrp	x1, l_.str.17@PAGE
Lloh66:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_of_property_read_bool
	str	x0, [x20, #24]
	ldr	w8, [x20, #16]
Lloh67:
	adrp	x9, _SMBB_BAT_BTC_CTRL@GOTPAGE
Lloh68:
	ldr	x9, [x9, _SMBB_BAT_BTC_CTRL@GOTPAGEOFF]
	ldr	x10, [x20, #8]
Lloh69:
	ldr	x9, [x9]
	add	x1, x9, x10
Lloh70:
	adrp	x9, _BTC_CTRL_COLD_EXT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _BTC_CTRL_COLD_EXT@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
Lloh73:
	adrp	x10, _BTC_CTRL_HOT_EXT_N@GOTPAGE
Lloh74:
	ldr	x10, [x10, _BTC_CTRL_HOT_EXT_N@GOTPAGEOFF]
Lloh75:
	ldr	w10, [x10]
	orr	w2, w10, w9
	cmp	x0, #0
	csel	w3, w10, w9, eq
	mov	x0, x8
	bl	_regmap_update_bits
	cbz	w0, LBB0_42
; %bb.39:
	mov	x21, x0
	ldr	x8, [x20, #24]
Lloh76:
	adrp	x9, l_.str.19@PAGE
Lloh77:
	add	x9, x9, l_.str.19@PAGEOFF
Lloh78:
	adrp	x10, l_.str.20@PAGE
Lloh79:
	add	x10, x10, l_.str.20@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh80:
	adrp	x1, l_.str.18@PAGE
Lloh81:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_8
LBB0_40:
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w8, [x8, #24]
	str	x8, [sp]
Lloh82:
	adrp	x1, l_.str.13@PAGE
Lloh83:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_8
LBB0_41:
	mov	x21, x0
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w8, [x8, #24]
	str	x8, [sp]
Lloh84:
	adrp	x1, l_.str.14@PAGE
Lloh85:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_8
LBB0_42:
Lloh86:
	adrp	x22, _smbb_charger_setup@GOTPAGE
Lloh87:
	ldr	x22, [x22, _smbb_charger_setup@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_48
; %bb.43:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #40
	cmp	x24, w0, sxtw
	b.ge	LBB0_48
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x22]
	ldr	w25, [x21, x23]
	ldr	w0, [x20]
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	add	x9, x21, x23
	ldr	x10, [x9, #16]
	add	x1, x10, x8
	ldp	w2, w3, [x9, #4]
	bl	_regmap_update_bits
	cbz	w0, LBB0_44
; %bb.47:
	mov	x21, x0
Lloh88:
	adrp	x1, l_.str.21@PAGE
Lloh89:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_8
LBB0_48:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to locate regmap\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"missing or invalid 'reg' property\n"

	.comm	_SMBB_MISC_REV2,8,3             ; @SMBB_MISC_REV2
l_.str.3:                               ; @.str.3
	.asciz	"unable to read revision\n"

l_.str.4:                               ; @.str.4
	.asciz	"v1 hardware not supported\n"

l_.str.5:                               ; @.str.5
	.asciz	"Initializing SMBB rev %u"

l_.str.6:                               ; @.str.6
	.asciz	"qcom,disable-dc"

	.comm	__ATTR_CNT,4,2                  ; @_ATTR_CNT
l_.str.7:                               ; @.str.7
	.asciz	"failed to parse/apply settings\n"

	.comm	_bat_psy_desc,4,2               ; @bat_psy_desc
l_.str.8:                               ; @.str.8
	.asciz	"failed to register battery\n"

	.comm	_smbb_bif,8,3                   ; @smbb_bif
	.comm	_usb_psy_desc,4,2               ; @usb_psy_desc
l_.str.9:                               ; @.str.9
	.asciz	"failed to register USB power supply\n"

	.comm	_smbb_usb_extcon_cable,4,2      ; @smbb_usb_extcon_cable
l_.str.10:                              ; @.str.10
	.asciz	"failed to allocate extcon device\n"

l_.str.11:                              ; @.str.11
	.asciz	"failed to register extcon device\n"

	.comm	_dc_psy_desc,4,2                ; @dc_psy_desc
l_.str.12:                              ; @.str.12
	.asciz	"failed to register DC power supply\n"

	.comm	_smbb_charger_irqs,8,3          ; @smbb_charger_irqs
l_.str.13:                              ; @.str.13
	.asciz	"failed to get irq '%s'\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.14:                              ; @.str.14
	.asciz	"failed to request irq '%s'\n"

l_.str.15:                              ; @.str.15
	.asciz	"otg-vbus"

	.comm	_smbb_chg_otg_ops,4,2           ; @smbb_chg_otg_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_REGULATOR_VOLTAGE,4,2          ; @REGULATOR_VOLTAGE
l_.str.16:                              ; @.str.16
	.asciz	"usb-otg-in"

l_.str.17:                              ; @.str.17
	.asciz	"qcom,jeita-extended-temp-range"

	.comm	_SMBB_BAT_BTC_CTRL,8,3          ; @SMBB_BAT_BTC_CTRL
	.comm	_BTC_CTRL_COLD_EXT,4,2          ; @BTC_CTRL_COLD_EXT
	.comm	_BTC_CTRL_HOT_EXT_N,4,2         ; @BTC_CTRL_HOT_EXT_N
l_.str.18:                              ; @.str.18
	.asciz	"unable to set %s temperature range\n"

l_.str.19:                              ; @.str.19
	.asciz	"JEITA extended"

l_.str.20:                              ; @.str.20
	.asciz	"normal"

	.comm	_smbb_charger_setup,8,3         ; @smbb_charger_setup
l_.str.21:                              ; @.str.21
	.asciz	"unable to initializing charging, bailing\n"

	.no_dead_strip	_smbb_charger_probe
.subsections_via_symbols
