	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_i2c_probe
_palmas_i2c_probe:                      ## @palmas_i2c_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	%rdi, %r14
	movq	(%rdi), %rbx
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_palmas_dt_to_pdata
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 40(%r12)
	movl	20(%r14), %eax
	movl	%eax, 12(%r12)
	movq	_of_palmas_match_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_PALMAS_NUM_CLIENTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.12:
	xorl	%ebx, %ebx
	movq	_palmas_regmap_config@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	callq	_i2c_new_dummy_device
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_get
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rdx
	movq	%rax, (%rdx)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12), %rax
	movq	%r14, (%rax)
	movq	(%r12), %rcx
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rcx,%r15,8), %rdi
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	callq	_devm_regmap_init_i2c
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movq	_PALMAS_NUM_CLIENTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_13
LBB0_27:
	cmpl	$0, 12(%r12)
	je	LBB0_28
## %bb.32:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %r8d
	movq	_PALMAS_POLARITY_CTRL_INT_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmovnel	%ecx, %r8d
	movl	%r8d, -44(%rbp)
	movq	_PALMAS_PU_PD_OD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PALMAS_POLARITY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_palmas_update_bits
	testl	%eax, %eax
	js	LBB0_33
## %bb.34:
	movq	_PALMAS_INTERRUPT_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PALMAS_BASE_TO_SLAVE
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_PALMAS_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PALMAS_BASE_TO_REG
	movq	_PALMAS_INT_CTRL_INT_CLEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, -44(%rbp)
	movq	16(%r12), %rcx
	movslq	%r15d, %rbx
	movq	(%rcx,%rbx,8), %rdi
	movl	%eax, %esi
	callq	_regmap_write
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	12(%r12), %esi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%r12, %r9
	addq	$8, %r9
	xorl	%ecx, %ecx
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	jns	LBB0_29
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_73:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	40(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_28:
	movq	40(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_29:
	movq	_PALMAS_PU_PD_OD_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PALMAS_BASE_TO_SLAVE
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PALMAS_BASE_TO_REG
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 24(%rcx)
	movslq	%r15d, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_35
## %bb.30:
	movl	4(%rcx), %r15d
	movl	%r15d, -44(%rbp)
	movq	16(%r12), %rcx
	movq	(%rcx,%rdx,8), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_regmap_write
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_37
LBB0_16:
	movq	40(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_PTR_ERR
LBB0_17:
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_33:
	movl	%eax, %r13d
	movq	40(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_35:
	movq	16(%r12), %rcx
	movq	(%rcx,%rdx,8), %rdi
	leaq	-44(%rbp), %rdx
	movl	%eax, %esi
	callq	_regmap_read
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.36:
	movl	-44(%rbp), %r15d
LBB0_37:
	movq	%rbx, %rsi
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_39
## %bb.38:
	movq	_PALMAS_GPIO_0_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
LBB0_39:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_40
## %bb.41:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$2, %edx
	shll	%cl, %edx
	cmpl	%edx, %eax
	jne	LBB0_43
## %bb.42:
	movq	_PALMAS_LED1_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	jmp	LBB0_45
LBB0_40:
	movq	_PALMAS_GPIO_1_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	jmp	LBB0_45
LBB0_43:
	movl	$3, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpl	%edx, %eax
	jne	LBB0_45
## %bb.44:
	movq	_PALMAS_PWM1_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r12)
LBB0_45:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_46
## %bb.47:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$2, %edx
	shll	%cl, %edx
	cmpl	%edx, %eax
	jne	LBB0_49
## %bb.48:
	movq	_PALMAS_LED2_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	jmp	LBB0_51
LBB0_46:
	movq	_PALMAS_GPIO_2_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	jmp	LBB0_51
LBB0_49:
	movl	$3, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpl	%edx, %eax
	jne	LBB0_51
## %bb.50:
	movq	_PALMAS_PWM2_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r12)
LBB0_51:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_53
## %bb.52:
	movq	_PALMAS_GPIO_3_MUXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
LBB0_53:
	movl	(%rsi), %edi
	movq	_PALMAS_PRIMARY_SECONDARY_PAD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PALMAS_BASE_TO_REG
	cmpq	$0, 24(%rbx)
	je	LBB0_55
## %bb.54:
	movl	8(%rbx), %edx
	movl	%edx, -44(%rbp)
	movq	16(%r12), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rcx,%rsi,8), %rdi
	movl	%eax, %esi
	callq	_regmap_write
	jmp	LBB0_56
LBB0_55:
	movq	16(%r12), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rdi
	leaq	-44(%rbp), %rdx
	movl	%eax, %esi
	callq	_regmap_read
LBB0_56:
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.57:
	movl	-44(%rbp), %eax
	movq	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_59
## %bb.58:
	movq	_PALMAS_GPIO_4_MUXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%r12)
LBB0_59:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_61
## %bb.60:
	movq	_PALMAS_GPIO_5_MUXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%r12)
LBB0_61:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_63
## %bb.62:
	movq	_PALMAS_GPIO_6_MUXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%r12)
LBB0_63:
	movq	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_65
## %bb.64:
	movl	32(%r12), %edx
	jmp	LBB0_66
LBB0_65:
	movq	_PALMAS_GPIO_7_MUXED@GOTPCREL(%rip), %rax
	movl	32(%r12), %edx
	orl	(%rax), %edx
	movl	%edx, 32(%r12)
LBB0_66:
	movq	40(%r12), %rdi
	movl	24(%r12), %r8d
	movl	28(%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_PALMAS_PMU_CONTROL_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PALMAS_BASE_TO_SLAVE
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_PALMAS_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PALMAS_BASE_TO_REG
	movq	16(%r12), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rdi
	movl	-44(%rbp), %edx
	movl	%eax, %esi
	callq	_regmap_write
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_67
LBB0_31:
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	callq	_regmap_del_irq_chip
LBB0_18:
	movq	_PALMAS_NUM_CLIENTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_73
## %bb.19:
	movl	$1, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_73
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	_i2c_unregister_device
	movl	(%r14), %eax
	jmp	LBB0_22
LBB0_67:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_68
## %bb.69:
	movq	%r14, %rdi
	callq	_devm_of_platform_populate
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_31
## %bb.70:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_73
## %bb.71:
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_73
## %bb.72:
	movq	_palmas_dev@GOTPCREL(%rip), %rcx
	movq	%r12, (%rcx)
	movq	_palmas_power_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_73
LBB0_68:
	xorl	%r13d, %r13d
	jmp	LBB0_73
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_of_palmas_match_tbl,4,2        ## @of_palmas_match_tbl
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_PALMAS_NUM_CLIENTS,4,2         ## @PALMAS_NUM_CLIENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't attach client %d\n"

	.comm	_palmas_regmap_config,8,3       ## @palmas_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate regmap %d, err: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"IRQ missing: skipping irq request\n"

	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_PALMAS_POLARITY_CTRL_INT_POLARITY,4,2 ## @PALMAS_POLARITY_CTRL_INT_POLARITY
	.comm	_PALMAS_PU_PD_OD_BASE,4,2       ## @PALMAS_PU_PD_OD_BASE
	.comm	_PALMAS_POLARITY_CTRL,4,2       ## @PALMAS_POLARITY_CTRL
L_.str.3:                               ## @.str.3
	.asciz	"POLARITY_CTRL update failed: %d\n"

	.comm	_PALMAS_INTERRUPT_BASE,4,2      ## @PALMAS_INTERRUPT_BASE
	.comm	_PALMAS_INT_CTRL,4,2            ## @PALMAS_INT_CTRL
	.comm	_PALMAS_INT_CTRL_INT_CLEAR,4,2  ## @PALMAS_INT_CTRL_INT_CLEAR
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0
	.comm	_PALMAS_GPIO_0_MUXED,4,2        ## @PALMAS_GPIO_0_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK
	.comm	_PALMAS_GPIO_1_MUXED,4,2        ## @PALMAS_GPIO_1_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT
	.comm	_PALMAS_LED1_MUXED,4,2          ## @PALMAS_LED1_MUXED
	.comm	_PALMAS_PWM1_MUXED,4,2          ## @PALMAS_PWM1_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK
	.comm	_PALMAS_GPIO_2_MUXED,4,2        ## @PALMAS_GPIO_2_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT
	.comm	_PALMAS_LED2_MUXED,4,2          ## @PALMAS_LED2_MUXED
	.comm	_PALMAS_PWM2_MUXED,4,2          ## @PALMAS_PWM2_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3
	.comm	_PALMAS_GPIO_3_MUXED,4,2        ## @PALMAS_GPIO_3_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD2
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4
	.comm	_PALMAS_GPIO_4_MUXED,4,2        ## @PALMAS_GPIO_4_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK
	.comm	_PALMAS_GPIO_5_MUXED,4,2        ## @PALMAS_GPIO_5_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6
	.comm	_PALMAS_GPIO_6_MUXED,4,2        ## @PALMAS_GPIO_6_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK
	.comm	_PALMAS_GPIO_7_MUXED,4,2        ## @PALMAS_GPIO_7_MUXED
L_.str.4:                               ## @.str.4
	.asciz	"Muxing GPIO %x, PWM %x, LED %x\n"

	.comm	_PALMAS_PMU_CONTROL_BASE,4,2    ## @PALMAS_PMU_CONTROL_BASE
	.comm	_PALMAS_POWER_CTRL,4,2          ## @PALMAS_POWER_CTRL
	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_palmas_dev,8,3                 ## @palmas_dev
	.comm	_palmas_power_off,8,3           ## @palmas_power_off
	.no_dead_strip	_palmas_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_i2c_probe
_palmas_i2c_probe:                      ; @palmas_i2c_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	x20, x0
	ldr	x21, [x0]
	bl	_dev_get_platdata
	mov	x22, x0
	cmp	x21, #0
	ccmp	x0, #0, #0, ne
Lloh0:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	b.ne	LBB0_3
; %bb.1:
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_palmas_dt_to_pdata
LBB0_3:
	cbz	x22, LBB0_18
; %bb.4:
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.5:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x19, #40]
	ldr	w8, [x20, #20]
	str	w8, [x19, #12]
Lloh2:
	adrp	x8, _of_palmas_match_tbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _of_palmas_match_tbl@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_19
; %bb.6:
	ldr	x25, [x0]
	ldr	x8, [x25, #8]
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh5:
	adrp	x26, _PALMAS_NUM_CLIENTS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PALMAS_NUM_CLIENTS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	mov	x24, #0
	mov	x23, #0
Lloh7:
	adrp	x27, _palmas_regmap_config@GOTPAGE
Lloh8:
	ldr	x27, [x27, _palmas_regmap_config@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x28, x23, #3
	cbz	x23, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	add	x1, x23, x8
	bl	_i2c_new_dummy_device
	ldr	x8, [x19]
	str	x0, [x8, x28]
	ldr	x8, [x19]
	ldr	x0, [x8, x28]
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_of_node_get
	ldr	x8, [x19]
	ldr	x9, [x8, x23, lsl #3]
	str	x0, [x9]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	str	x20, [x8]
	ldr	x8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x8, x28]
	ldr	x8, [x27]
	add	x1, x8, x24
	bl	_devm_regmap_init_i2c
	ldr	x8, [x19, #16]
	str	x0, [x8, x28]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x28]
	bl	_IS_ERR
	cbnz	x0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x26]
	add	x24, x24, #4
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_14:
	ldr	w8, [x19, #12]
Lloh9:
	adrp	x27, _PALMAS_PU_PD_OD_BASE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PALMAS_PU_PD_OD_BASE@GOTPAGEOFF]
	cbz	w8, LBB0_23
; %bb.15:
Lloh11:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _PALMAS_POLARITY_CTRL_INT_POLARITY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PALMAS_POLARITY_CTRL_INT_POLARITY@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x10]
	tst	w8, w9
	csel	w4, wzr, w3, eq
	str	w4, [sp, #12]
	ldr	w1, [x27]
Lloh17:
	adrp	x8, _PALMAS_POLARITY_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PALMAS_POLARITY_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_palmas_update_bits
	tbnz	w0, #31, LBB0_28
; %bb.16:
Lloh20:
	adrp	x24, _PALMAS_INTERRUPT_BASE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _PALMAS_INTERRUPT_BASE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_PALMAS_BASE_TO_SLAVE
	mov	x23, x0
	ldr	w0, [x24]
Lloh22:
	adrp	x8, _PALMAS_INT_CTRL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PALMAS_INT_CTRL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_PALMAS_BASE_TO_REG
	mov	x1, x0
Lloh25:
	adrp	x8, _PALMAS_INT_CTRL_INT_CLEAR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PALMAS_INT_CTRL_INT_CLEAR@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	sbfiz	x23, x23, #3, #32
	ldr	x0, [x8, x23]
	bl	_regmap_write
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x23]
Lloh28:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w1, [x19, #12]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w2, w9, w8
	ldr	w4, [x25]
	add	x5, x19, #8
	mov	w3, #0
	bl	_regmap_add_irq_chip
	tbz	w0, #31, LBB0_24
	b	LBB0_27
LBB0_17:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh35:
	adrp	x8, _ENODATA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_21:
	mov	x0, x24
	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_22:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x23, lsl #3]
	bl	_PTR_ERR
	mov	x24, x0
	ldr	x0, [x19, #40]
	str	x24, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_62
LBB0_23:
	ldr	x0, [x19, #40]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_24:
	ldr	w0, [x27]
	bl	_PALMAS_BASE_TO_SLAVE
	mov	x23, x0
	ldr	w0, [x27]
Lloh41:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_PALMAS_BASE_TO_REG
	mov	x1, x0
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_29
; %bb.25:
	ldr	w25, [x22, #4]
	str	w25, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w23, sxtw #3]
	mov	x2, x25
	bl	_regmap_write
	mov	x24, x0
	cbnz	w0, LBB0_61
	b	LBB0_31
LBB0_26:
	ldr	x0, [x19, #40]
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	ldr	x8, [x19]
	ldr	x0, [x8, x23, lsl #3]
	bl	_PTR_ERR
LBB0_27:
	mov	x24, x0
	b	LBB0_62
LBB0_28:
	mov	x24, x0
	ldr	x0, [x19, #40]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	b	LBB0_62
LBB0_29:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w23, sxtw #3]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x24, x0
	cbnz	w0, LBB0_61
; %bb.30:
	ldr	w25, [sp, #12]
LBB0_31:
Lloh48:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_33
; %bb.32:
Lloh51:
	adrp	x8, _PALMAS_GPIO_0_MUXED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PALMAS_GPIO_0_MUXED@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_33:
Lloh54:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ands	w8, w8, w25
	b.eq	LBB0_36
; %bb.34:
Lloh57:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPAGE
Lloh58:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	mov	w10, #2
	lsl	w10, w10, w9
	cmp	w8, w10
	b.ne	LBB0_37
; %bb.35:
Lloh60:
	adrp	x8, _PALMAS_LED1_MUXED@GOTPAGE
Lloh61:
	ldr	x8, [x8, _PALMAS_LED1_MUXED@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_39
LBB0_36:
Lloh63:
	adrp	x8, _PALMAS_GPIO_1_MUXED@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PALMAS_GPIO_1_MUXED@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_39
LBB0_37:
	mov	w10, #3
	lsl	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.38:
Lloh66:
	adrp	x8, _PALMAS_PWM1_MUXED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _PALMAS_PWM1_MUXED@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
	str	w8, [x19, #28]
LBB0_39:
Lloh69:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	ands	w8, w8, w25
	b.eq	LBB0_42
; %bb.40:
Lloh72:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT@GOTPAGE
Lloh73:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	mov	w10, #2
	lsl	w10, w10, w9
	cmp	w8, w10
	b.ne	LBB0_43
; %bb.41:
Lloh75:
	adrp	x8, _PALMAS_LED2_MUXED@GOTPAGE
Lloh76:
	ldr	x8, [x8, _PALMAS_LED2_MUXED@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_45
LBB0_42:
Lloh78:
	adrp	x8, _PALMAS_GPIO_2_MUXED@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PALMAS_GPIO_2_MUXED@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_45
LBB0_43:
	mov	w10, #3
	lsl	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_45
; %bb.44:
Lloh81:
	adrp	x8, _PALMAS_PWM2_MUXED@GOTPAGE
Lloh82:
	ldr	x8, [x8, _PALMAS_PWM2_MUXED@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
	str	w8, [x19, #28]
LBB0_45:
Lloh84:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_47
; %bb.46:
Lloh87:
	adrp	x8, _PALMAS_GPIO_3_MUXED@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PALMAS_GPIO_3_MUXED@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_47:
	ldr	w0, [x27]
Lloh90:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD2@GOTPAGE
Lloh91:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD2@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	bl	_PALMAS_BASE_TO_REG
	mov	x1, x0
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_49
; %bb.48:
	ldr	w2, [x22, #8]
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w23, sxtw #3]
	bl	_regmap_write
	b	LBB0_50
LBB0_49:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w23, sxtw #3]
	add	x2, sp, #12
	bl	_regmap_read
LBB0_50:
	mov	x24, x0
	cbnz	w0, LBB0_61
; %bb.51:
	ldr	w8, [sp, #12]
Lloh93:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4@GOTPAGE
Lloh94:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_53
; %bb.52:
Lloh96:
	adrp	x9, _PALMAS_GPIO_4_MUXED@GOTPAGE
Lloh97:
	ldr	x9, [x9, _PALMAS_GPIO_4_MUXED@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	str	w9, [x19, #32]
LBB0_53:
Lloh99:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK@GOTPAGE
Lloh100:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_55
; %bb.54:
Lloh102:
	adrp	x9, _PALMAS_GPIO_5_MUXED@GOTPAGE
Lloh103:
	ldr	x9, [x9, _PALMAS_GPIO_5_MUXED@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	str	w9, [x19, #32]
LBB0_55:
Lloh105:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6@GOTPAGE
Lloh106:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_57
; %bb.56:
Lloh108:
	adrp	x9, _PALMAS_GPIO_6_MUXED@GOTPAGE
Lloh109:
	ldr	x9, [x9, _PALMAS_GPIO_6_MUXED@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	str	w9, [x19, #32]
LBB0_57:
Lloh111:
	adrp	x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK@GOTPAGE
Lloh112:
	ldr	x9, [x9, _PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_59
; %bb.58:
	ldr	w2, [x19, #32]
	b	LBB0_60
LBB0_59:
Lloh114:
	adrp	x8, _PALMAS_GPIO_7_MUXED@GOTPAGE
Lloh115:
	ldr	x8, [x8, _PALMAS_GPIO_7_MUXED@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w2, w9, w8
	str	w2, [x19, #32]
LBB0_60:
	ldr	x0, [x19, #40]
	ldp	w4, w3, [x19, #24]
Lloh117:
	adrp	x1, l_.str.4@PAGE
Lloh118:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	ldr	w8, [x22, #12]
	str	w8, [sp, #12]
Lloh119:
	adrp	x24, _PALMAS_PMU_CONTROL_BASE@GOTPAGE
Lloh120:
	ldr	x24, [x24, _PALMAS_PMU_CONTROL_BASE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_PALMAS_BASE_TO_SLAVE
	mov	x23, x0
	ldr	w0, [x24]
Lloh121:
	adrp	x8, _PALMAS_POWER_CTRL@GOTPAGE
Lloh122:
	ldr	x8, [x8, _PALMAS_POWER_CTRL@GOTPAGEOFF]
Lloh123:
	ldr	w1, [x8]
	bl	_PALMAS_BASE_TO_REG
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w23, sxtw #3]
	ldr	w2, [sp, #12]
	bl	_regmap_write
	mov	x24, x0
	cbz	w0, LBB0_67
LBB0_61:
	ldp	w1, w0, [x19, #8]
	bl	_regmap_del_irq_chip
LBB0_62:
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.63:
	mov	w20, #1
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_21
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	bl	_i2c_unregister_device
	ldr	w8, [x26]
	b	LBB0_64
LBB0_67:
	cbz	x21, LBB0_72
; %bb.68:
	mov	x0, x20
	bl	_devm_of_platform_populate
	mov	x24, x0
	tbnz	w0, #31, LBB0_61
; %bb.69:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_21
; %bb.70:
Lloh124:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh125:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_21
; %bb.71:
Lloh126:
	adrp	x9, _palmas_dev@GOTPAGE
Lloh127:
	ldr	x9, [x9, _palmas_dev@GOTPAGEOFF]
Lloh128:
	str	x19, [x9]
Lloh129:
	adrp	x9, _palmas_power_off@GOTPAGE
Lloh130:
	ldr	x9, [x9, _palmas_power_off@GOTPAGEOFF]
Lloh131:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_21
LBB0_72:
	mov	w24, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotStr	Lloh126, Lloh127, Lloh128
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_of_palmas_match_tbl,4,2        ; @of_palmas_match_tbl
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_PALMAS_NUM_CLIENTS,4,2         ; @PALMAS_NUM_CLIENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't attach client %d\n"

	.comm	_palmas_regmap_config,8,3       ; @palmas_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate regmap %d, err: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"IRQ missing: skipping irq request\n"

	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_PALMAS_POLARITY_CTRL_INT_POLARITY,4,2 ; @PALMAS_POLARITY_CTRL_INT_POLARITY
	.comm	_PALMAS_PU_PD_OD_BASE,4,2       ; @PALMAS_PU_PD_OD_BASE
	.comm	_PALMAS_POLARITY_CTRL,4,2       ; @PALMAS_POLARITY_CTRL
l_.str.3:                               ; @.str.3
	.asciz	"POLARITY_CTRL update failed: %d\n"

	.comm	_PALMAS_INTERRUPT_BASE,4,2      ; @PALMAS_INTERRUPT_BASE
	.comm	_PALMAS_INT_CTRL,4,2            ; @PALMAS_INT_CTRL
	.comm	_PALMAS_INT_CTRL_INT_CLEAR,4,2  ; @PALMAS_INT_CTRL_INT_CLEAR
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0
	.comm	_PALMAS_GPIO_0_MUXED,4,2        ; @PALMAS_GPIO_0_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK
	.comm	_PALMAS_GPIO_1_MUXED,4,2        ; @PALMAS_GPIO_1_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT
	.comm	_PALMAS_LED1_MUXED,4,2          ; @PALMAS_LED1_MUXED
	.comm	_PALMAS_PWM1_MUXED,4,2          ; @PALMAS_PWM1_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK
	.comm	_PALMAS_GPIO_2_MUXED,4,2        ; @PALMAS_GPIO_2_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT
	.comm	_PALMAS_LED2_MUXED,4,2          ; @PALMAS_LED2_MUXED
	.comm	_PALMAS_PWM2_MUXED,4,2          ; @PALMAS_PWM2_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3
	.comm	_PALMAS_GPIO_3_MUXED,4,2        ; @PALMAS_GPIO_3_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD2
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4
	.comm	_PALMAS_GPIO_4_MUXED,4,2        ; @PALMAS_GPIO_4_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK
	.comm	_PALMAS_GPIO_5_MUXED,4,2        ; @PALMAS_GPIO_5_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6
	.comm	_PALMAS_GPIO_6_MUXED,4,2        ; @PALMAS_GPIO_6_MUXED
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK
	.comm	_PALMAS_GPIO_7_MUXED,4,2        ; @PALMAS_GPIO_7_MUXED
l_.str.4:                               ; @.str.4
	.asciz	"Muxing GPIO %x, PWM %x, LED %x\n"

	.comm	_PALMAS_PMU_CONTROL_BASE,4,2    ; @PALMAS_PMU_CONTROL_BASE
	.comm	_PALMAS_POWER_CTRL,4,2          ; @PALMAS_POWER_CTRL
	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_palmas_dev,8,3                 ; @palmas_dev
	.comm	_palmas_power_off,8,3           ; @palmas_power_off
	.no_dead_strip	_palmas_i2c_probe
.subsections_via_symbols
