	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_pmic_probe
_sec_pmic_probe:                        ## @sec_pmic_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 16(%r13)
	movq	%r14, 48(%r13)
	movl	8(%r14), %eax
	movl	%eax, 44(%r13)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sec_i2c_get_driver_data
	movq	16(%r13), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.4:
	movq	%rax, %r12
	callq	_sec_pmic_i2c_parse_dt_pdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.23:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	(%r15), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r12, (%r15)
	testq	%r15, %r15
	sete	%bl
LBB0_9:
	movq	%r12, (%r13)
	movl	20(%r15), %eax
	movl	%eax, 40(%r13)
	movl	16(%r15), %eax
	movl	%eax, 8(%r13)
	movq	%r15, 32(%r13)
	jmp	LBB0_10
LBB0_7:
	movq	(%r13), %r12
	movb	$1, %bl
	xorl	%r15d, %r15d
LBB0_10:
	leaq	-128(%r12), %rax
	cmpq	$8, %rax
	ja	LBB0_11
## %bb.12:
	leaq	l_switch.table.sec_pmic_probe(%rip), %rax
	movq	-1024(%rax,%r12,8), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	_sec_regmap_config@GOTPCREL(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 24(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	24(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testb	%bl, %bl
	jne	LBB0_18
## %bb.16:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	callq	*%rcx
LBB0_18:
	movq	%r13, %rdi
	callq	_sec_irq_init
	movq	16(%r13), %rdi
	callq	_pm_runtime_set_active
	movq	(%r13), %rdx
	leaq	-128(%rdx), %rax
	cmpq	$9, %rax
	jae	LBB0_19
## %bb.20:
	leaq	l_switch.table.sec_pmic_probe.2(%rip), %rax
	movq	-1024(%rax,%rdx,8), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	16(%r13), %rdi
	movq	$0, (%rsp)
	movl	$-1, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	16(%r13), %rdi
	movl	8(%r13), %esi
	callq	_device_init_wakeup
	movq	%r13, %rdi
	callq	_sec_pmic_configure
	movq	%r13, %rdi
	callq	_sec_pmic_dump_rev
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_s2mpa01_regmap_config,4,2      ## @s2mpa01_regmap_config
	.comm	_s2mps11_regmap_config,4,2      ## @s2mps11_regmap_config
	.comm	_s2mps13_regmap_config,4,2      ## @s2mps13_regmap_config
	.comm	_s2mps14_regmap_config,4,2      ## @s2mps14_regmap_config
	.comm	_s2mps15_regmap_config,4,2      ## @s2mps15_regmap_config
	.comm	_s5m8763_regmap_config,4,2      ## @s5m8763_regmap_config
	.comm	_s5m8767_regmap_config,4,2      ## @s5m8767_regmap_config
	.comm	_s2mpu02_regmap_config,4,2      ## @s2mpu02_regmap_config
	.comm	_sec_regmap_config,4,2          ## @sec_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_s5m8751_devs,8,3               ## @s5m8751_devs
	.comm	_s5m8763_devs,8,3               ## @s5m8763_devs
	.comm	_s5m8767_devs,8,3               ## @s5m8767_devs
	.comm	_s2mpa01_devs,8,3               ## @s2mpa01_devs
	.comm	_s2mps11_devs,8,3               ## @s2mps11_devs
	.comm	_s2mps13_devs,8,3               ## @s2mps13_devs
	.comm	_s2mps14_devs,8,3               ## @s2mps14_devs
	.comm	_s2mps15_devs,8,3               ## @s2mps15_devs
	.comm	_s2mpu02_devs,8,3               ## @s2mpu02_devs
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported device type (%lu)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_sec_pmic_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sec_pmic_probe
l_switch.table.sec_pmic_probe:
	.quad	_s5m8767_regmap_config
	.quad	_s5m8763_regmap_config
	.quad	_sec_regmap_config
	.quad	_s2mpu02_regmap_config
	.quad	_s2mps15_regmap_config
	.quad	_s2mps14_regmap_config
	.quad	_s2mps13_regmap_config
	.quad	_s2mps11_regmap_config
	.quad	_s2mpa01_regmap_config

	.p2align	3                               ## @switch.table.sec_pmic_probe.2
l_switch.table.sec_pmic_probe.2:
	.quad	_s5m8767_devs
	.quad	_s5m8763_devs
	.quad	_s5m8751_devs
	.quad	_s2mpu02_devs
	.quad	_s2mps15_devs
	.quad	_s2mps14_devs
	.quad	_s2mps13_devs
	.quad	_s2mps11_devs
	.quad	_s2mpa01_devs

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_pmic_probe
_sec_pmic_probe:                        ; @sec_pmic_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x19, #16]
	str	x20, [x19, #48]
	ldr	w8, [x20, #8]
	str	w8, [x19, #44]
	mov	x0, x20
	mov	x1, x22
	bl	_sec_i2c_get_driver_data
	mov	x22, x0
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	bl	_sec_pmic_i2c_parse_dt_pdata
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_6:
	cbz	x21, LBB0_10
; %bb.7:
	mov	w23, #0
	ldr	x22, [x21]
	b	LBB0_9
LBB0_8:
	str	x22, [x21]
	cmp	x21, #0
	cset	w23, eq
LBB0_9:
	str	x22, [x19]
	ldp	w9, w8, [x21, #16]
	str	w8, [x19, #40]
	str	w9, [x19, #8]
	str	x21, [x19, #32]
	b	LBB0_11
LBB0_10:
	ldr	x22, [x19]
	mov	w23, #1
LBB0_11:
	sub	x8, x22, #128
	cmp	x8, #8
	b.hi	LBB0_13
; %bb.12:
Lloh5:
	adrp	x9, l_switch.table.sec_pmic_probe@PAGE
Lloh6:
	add	x9, x9, l_switch.table.sec_pmic_probe@PAGEOFF
	ldr	x1, [x9, x8, lsl #3]
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x1, _sec_regmap_config@GOTPAGE
Lloh8:
	ldr	x1, [x1, _sec_regmap_config@GOTPAGEOFF]
LBB0_14:
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	tbnz	w23, #0, LBB0_20
; %bb.18:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_20
; %bb.19:
	blr	x8
LBB0_20:
	mov	x0, x19
	bl	_sec_irq_init
	ldr	x0, [x19, #16]
	bl	_pm_runtime_set_active
	ldr	x2, [x19]
	sub	x8, x2, #128
	cmp	x8, #9
	b.hs	LBB0_23
; %bb.21:
Lloh11:
	adrp	x9, l_switch.table.sec_pmic_probe.2@PAGE
Lloh12:
	add	x9, x9, l_switch.table.sec_pmic_probe.2@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	x0, [x19, #16]
	mov	w1, #-1
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.22:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_device_init_wakeup
	mov	x0, x19
	bl	_sec_pmic_configure
	mov	x0, x19
	bl	_sec_pmic_dump_rev
	b	LBB0_16
LBB0_23:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_s2mpa01_regmap_config,4,2      ; @s2mpa01_regmap_config
	.comm	_s2mps11_regmap_config,4,2      ; @s2mps11_regmap_config
	.comm	_s2mps13_regmap_config,4,2      ; @s2mps13_regmap_config
	.comm	_s2mps14_regmap_config,4,2      ; @s2mps14_regmap_config
	.comm	_s2mps15_regmap_config,4,2      ; @s2mps15_regmap_config
	.comm	_s5m8763_regmap_config,4,2      ; @s5m8763_regmap_config
	.comm	_s5m8767_regmap_config,4,2      ; @s5m8767_regmap_config
	.comm	_s2mpu02_regmap_config,4,2      ; @s2mpu02_regmap_config
	.comm	_sec_regmap_config,4,2          ; @sec_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_s5m8751_devs,8,3               ; @s5m8751_devs
	.comm	_s5m8763_devs,8,3               ; @s5m8763_devs
	.comm	_s5m8767_devs,8,3               ; @s5m8767_devs
	.comm	_s2mpa01_devs,8,3               ; @s2mpa01_devs
	.comm	_s2mps11_devs,8,3               ; @s2mps11_devs
	.comm	_s2mps13_devs,8,3               ; @s2mps13_devs
	.comm	_s2mps14_devs,8,3               ; @s2mps14_devs
	.comm	_s2mps15_devs,8,3               ; @s2mps15_devs
	.comm	_s2mpu02_devs,8,3               ; @s2mpu02_devs
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported device type (%lu)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_sec_pmic_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sec_pmic_probe
l_switch.table.sec_pmic_probe:
	.quad	_s5m8767_regmap_config
	.quad	_s5m8763_regmap_config
	.quad	_sec_regmap_config
	.quad	_s2mpu02_regmap_config
	.quad	_s2mps15_regmap_config
	.quad	_s2mps14_regmap_config
	.quad	_s2mps13_regmap_config
	.quad	_s2mps11_regmap_config
	.quad	_s2mpa01_regmap_config

	.p2align	3                               ; @switch.table.sec_pmic_probe.2
l_switch.table.sec_pmic_probe.2:
	.quad	_s5m8767_devs
	.quad	_s5m8763_devs
	.quad	_s5m8751_devs
	.quad	_s2mpu02_devs
	.quad	_s2mps15_devs
	.quad	_s2mps14_devs
	.quad	_s2mps13_devs
	.quad	_s2mps11_devs
	.quad	_s2mpa01_devs

.subsections_via_symbols
