	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_scu_init_pm_domains
_imx_scu_init_pm_domains:               ## @imx_scu_init_pm_domains
	.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, %rbx
	movq	8(%rsi), %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_1:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	pmovsxdq	(%r15,%rsi,4), %xmm2
	paddq	%xmm0, %xmm2
	pmovsxdq	8(%r15,%rsi,4), %xmm3
	paddq	%xmm1, %xmm3
	pmovsxdq	16(%r15,%rsi,4), %xmm0
	pmovsxdq	24(%r15,%rsi,4), %xmm1
	paddq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %dl
	je	LBB0_10
LBB0_9:
	pmovsxdq	(%r15,%rsi,4), %xmm2
	paddq	%xmm2, %xmm0
	pmovsxdq	8(%r15,%rsi,4), %xmm2
	paddq	%xmm2, %xmm1
LBB0_10:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rsi
	cmpq	%rax, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r15,%rcx,4), %rdx
	addq	%rdx, %rsi
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.17:
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_25
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	cmpl	$0, (%r15,%rdx,4)
	jle	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rdx,4), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	incl	%r14d
	cmpl	(%r15), %r14d
	jge	LBB0_23
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_imx_scu_add_pm_domain
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r12,8)
	incq	%r12
	movl	(%r13), %edx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_22
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_16:
	xorl	%r12d, %r12d
LBB0_25:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rsi)
	movq	%r12, 8(%rsi)
	movq	_imx_scu_pd_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	(%rbx), %edi
	callq	_of_genpd_add_provider_onecell
	xorl	%eax, %eax
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %dl
	jne	LBB0_9
	jmp	LBB0_10
	.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	"added power domain %s\n"

	.comm	_imx_scu_pd_xlate,4,2           ## @imx_scu_pd_xlate
	.no_dead_strip	_imx_scu_init_pm_domains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_scu_init_pm_domains
_imx_scu_init_pm_domains:               ; @imx_scu_init_pm_domains
	.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	x19, x0
	ldr	x27, [x1, #8]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	x1, #0
	b	LBB0_7
LBB0_3:
	mov	x1, #0
	b	LBB0_9
LBB0_4:
	and	x9, x8, #0xfffffff8
	add	x10, x27, #16
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d4, d5, [x10, #-16]
	ldp	d6, d7, [x10], #32
	saddw.2d	v0, v0, v4
	saddw.2d	v1, v1, v5
	saddw.2d	v2, v2, v6
	saddw.2d	v3, v3, v7
	subs	x11, x11, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x1, d0
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x27, x9, lsl #2
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x10], #4
	add	x1, x1, x9
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_20
; %bb.10:
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_20
; %bb.11:
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.12:
	mov	x28, #0
	mov	x20, #0
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_22
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	add	x24, x27, x28, lsl #2
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w25, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_imx_scu_add_pm_domain
	mov	x26, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x22, x20, #1
	str	x26, [x21, x20, lsl #3]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_dbg
	mov	x20, x22
	b	LBB0_17
LBB0_20:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_21:
	mov	x20, #0
LBB0_22:
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	stp	x20, x21, [x1, #8]
Lloh7:
	adrp	x8, _imx_scu_pd_xlate@GOTPAGE
Lloh8:
	ldr	x8, [x8, _imx_scu_pd_xlate@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	w0, [x19]
	bl	_of_genpd_add_provider_onecell
	mov	w0, #0
LBB0_23:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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	"added power domain %s\n"

	.comm	_imx_scu_pd_xlate,4,2           ; @imx_scu_pd_xlate
	.no_dead_strip	_imx_scu_init_pm_domains
.subsections_via_symbols
