	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmic_mpp_probe
_pmic_mpp_probe:                        ## @pmic_mpp_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
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_platform_irq_count
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, %r12d
	js	LBB0_25
## %bb.6:
	movq	_pmic_mpp_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setg	%dil
	callq	_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 32(%rbx)
	movl	(%r14), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 44(%rbx)
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movq	%rax, %r13
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	%rax, %r15
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_pmic_mpp_pinctrl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r15)
	movq	_pmic_mpp_pinmux_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r15)
	movq	_pmic_mpp_pinconf_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, 32(%r15)
	movq	%rbx, 24(%r15)
	movl	%r12d, (%r15)
	movq	_pmic_mpp_bindings@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r15)
	movq	_pmic_mpp_bindings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r15)
	addq	$8, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, (%rbx)
	movl	%r15d, -8(%rbx)
	movq	_pmic_mpp_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	movl	%eax, -4(%rbx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_platform_get_irq
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_PMIC_MPP_ADDRESS_RANGE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	addq	-72(%rbp), %rcx
	movq	%rcx, 8(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pmic_mpp_populate
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	addq	$16, %r13
	addq	$16, %rbx
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.18:
	movq	_pmic_mpp_gpio_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movups	%xmm0, (%r15)
	movq	16(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%r14, 24(%r15)
	movl	$-1, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, 16(%r15)
	movq	$2, 8(%r15)
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 40(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	40(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_25
LBB0_1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_25
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r12d
	jmp	LBB0_25
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_25
LBB0_16:
	movl	%eax, %r12d
	jmp	LBB0_25
LBB0_20:
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	movq	32(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_24
LBB0_22:
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_gpiochip_add_pin_range
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_gpiochip_remove
LBB0_24:
	movl	%ebx, %r12d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"missing base address"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pmic_mpp_groups,8,3            ## @pmic_mpp_groups
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pmic_mpp_pinctrl_ops,4,2       ## @pmic_mpp_pinctrl_ops
	.comm	_pmic_mpp_pinmux_ops,4,2        ## @pmic_mpp_pinmux_ops
	.comm	_pmic_mpp_pinconf_ops,4,2       ## @pmic_mpp_pinconf_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_pmic_mpp_bindings,8,3          ## @pmic_mpp_bindings
	.comm	_PMIC_MPP_ADDRESS_RANGE,4,2     ## @PMIC_MPP_ADDRESS_RANGE
	.comm	_pmic_mpp_gpio_template,32,3    ## @pmic_mpp_gpio_template
L_.str.2:                               ## @.str.2
	.asciz	"can't add gpio chip\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to add pin range\n"

	.comm	_pmic_conf_items,4,2            ## @pmic_conf_items
	.no_dead_strip	_pmic_mpp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pmic_mpp_probe
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pmic_mpp_probe:                        ; @pmic_mpp_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	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_platform_irq_count
	cbz	w0, LBB0_14
; %bb.2:
	mov	x19, x0
	tbnz	w0, #31, LBB0_17
; %bb.3:
Lloh2:
	adrp	x26, _pmic_mpp_groups@GOTPAGE
Lloh3:
	ldr	x26, [x26, _pmic_mpp_groups@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	cset	w0, gt
	bl	_BUG_ON
Lloh4:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	str	x20, [x21, #32]
	ldr	w0, [x20]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x21, #44]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_15
; %bb.5:
	mov	x24, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_15
; %bb.6:
	mov	x23, x0
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.7:
	mov	x22, x0
Lloh6:
	adrp	x8, _pmic_mpp_pinctrl_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pmic_mpp_pinctrl_ops@GOTPAGEOFF]
	mov	w27, w19
	str	x8, [x0, #64]
Lloh8:
	adrp	x8, _pmic_mpp_pinmux_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pmic_mpp_pinmux_ops@GOTPAGEOFF]
Lloh10:
	adrp	x9, _pmic_mpp_pinconf_ops@GOTPAGE
Lloh11:
	ldr	x9, [x9, _pmic_mpp_pinconf_ops@GOTPAGEOFF]
	stp	x9, x8, [x0, #48]
Lloh12:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	mov	x0, x20
	bl	_dev_name
	stp	x24, x0, [x22, #24]
	str	w19, [x22]
Lloh15:
	adrp	x28, _pmic_mpp_bindings@GOTPAGE
Lloh16:
	ldr	x28, [x28, _pmic_mpp_bindings@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	mov	x25, #0
	str	w0, [x22, #4]
	ldr	x8, [x28]
	str	x8, [x22, #16]
	add	x24, x24, #8
Lloh17:
	adrp	x28, _PMIC_MPP_ADDRESS_RANGE@GOTPAGE
Lloh18:
	ldr	x28, [x28, _PMIC_MPP_ADDRESS_RANGE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [x24]
	stur	w25, [x24, #-8]
	ldr	x8, [x26]
	ldr	w8, [x8, x25, lsl #2]
	stur	w8, [x24, #-4]
	mov	x0, x20
	mov	x1, x25
	bl	_platform_get_irq
	str	x0, [x23]
	tbnz	x0, #63, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #8]
	ldrsw	x9, [x28]
	sxtw	x10, w25
	madd	x8, x9, x10, x8
	str	x8, [x23, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_pmic_mpp_populate
	tbnz	w0, #31, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	add	x23, x23, #16
	add	x24, x24, #16
	cmp	x27, x25
	b.ne	LBB0_8
; %bb.11:
Lloh19:
	adrp	x8, _pmic_mpp_gpio_template@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pmic_mpp_gpio_template@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x21]
	stp	x9, x20, [x21, #16]
	mov	w8, #-1
	stp	w8, w27, [x21]
	mov	x0, x20
	bl	_dev_name
	str	x0, [x21, #16]
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_devm_pinctrl_register
	str	w0, [x21, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.12:
	ldr	w0, [x21, #40]
	bl	_PTR_ERR
	mov	x19, x0
	b	LBB0_17
LBB0_13:
	mov	x19, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_17
LBB0_14:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_17:
	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_18:
	mov	x19, x0
	b	LBB0_17
LBB0_19:
	mov	x19, x0
	b	LBB0_17
LBB0_20:
	mov	x0, x21
	mov	x1, x21
	bl	_gpiochip_add_data
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
	ldr	x0, [x21, #32]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x19, x22
	b	LBB0_17
LBB0_22:
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_gpiochip_add_pin_range
	mov	x19, x0
	cbz	w0, LBB0_17
; %bb.23:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_gpiochip_remove
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"missing base address"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pmic_mpp_groups,8,3            ; @pmic_mpp_groups
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pmic_mpp_pinctrl_ops,4,2       ; @pmic_mpp_pinctrl_ops
	.comm	_pmic_mpp_pinmux_ops,4,2        ; @pmic_mpp_pinmux_ops
	.comm	_pmic_mpp_pinconf_ops,4,2       ; @pmic_mpp_pinconf_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_pmic_mpp_bindings,8,3          ; @pmic_mpp_bindings
	.comm	_PMIC_MPP_ADDRESS_RANGE,4,2     ; @PMIC_MPP_ADDRESS_RANGE
	.comm	_pmic_mpp_gpio_template,32,3    ; @pmic_mpp_gpio_template
l_.str.2:                               ; @.str.2
	.asciz	"can't add gpio chip\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to add pin range\n"

	.comm	_pmic_conf_items,4,2            ; @pmic_conf_items
	.no_dead_strip	_pmic_mpp_probe
.subsections_via_symbols
