	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_pm_domain_probe
_scmi_pm_domain_probe:                  ## @scmi_pm_domain_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	addq	$8, %r15
	movq	%r13, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$32, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-88(%rbp), %rax
	xorl	%edx, %edx
	movq	_SCMI_POWER_STATE_GENERIC_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pm_genpd_init
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	addq	$32, %rbx
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax,%r12,8)
	movl	%r12d, (%rbx)
	movq	%r13, 24(%rbx)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*16(%rax)
	movl	%eax, 16(%rbx)
	movl	%eax, 12(%rbx)
	movq	_scmi_pd_power_off@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_scmi_pd_power_on@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	leaq	-88(%rbp), %rdx
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_warn
	jmp	LBB0_15
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_16:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsi)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_genpd_add_provider_onecell
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"number of domains not found\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_scmi_pd_power_off,4,2          ## @scmi_pd_power_off
	.comm	_scmi_pd_power_on,4,2           ## @scmi_pd_power_on
L_.str.1:                               ## @.str.1
	.asciz	"failed to get state for domain %d\n"

	.comm	_SCMI_POWER_STATE_GENERIC_OFF,8,3 ## @SCMI_POWER_STATE_GENERIC_OFF
	.no_dead_strip	_scmi_pm_domain_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_pm_domain_probe
_scmi_pm_domain_probe:                  ; @scmi_pm_domain_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_8
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	x23, [x20, #8]!
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	mov	x19, x0
	tbnz	w0, #31, LBB0_16
; %bb.3:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #32
	bl	_devm_kcalloc
	cbz	x0, LBB0_13
; %bb.4:
	mov	x26, x0
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x25, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_13
; %bb.6:
	mov	x24, x0
	stp	x25, x23, [sp, #8]              ; 16-byte Folded Spill
	cbz	w19, LBB0_17
; %bb.7:
	mov	x25, #0
	mov	w28, w19
	add	x22, x26, #12
Lloh2:
	adrp	x23, _scmi_pd_power_off@GOTPAGE
Lloh3:
	ldr	x23, [x23, _scmi_pd_power_off@GOTPAGEOFF]
Lloh4:
	adrp	x26, _scmi_pd_power_on@GOTPAGE
Lloh5:
	ldr	x26, [x26, _scmi_pd_power_on@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, _SCMI_POWER_STATE_GENERIC_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCMI_POWER_STATE_GENERIC_OFF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	mov	x0, x27
	mov	x1, #0
	bl	_pm_genpd_init
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	add	x22, x22, #32
	cmp	x28, x25
	b.eq	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x27, x22, #8
	str	x27, [x24, x25, lsl #3]
	stur	w25, [x22, #-12]
	stur	x21, [x22, #12]
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	mov	x0, x21
	mov	x1, x25
	blr	x8
	stp	w0, w0, [x22]
	ldr	w8, [x23]
	stur	w8, [x22, #-4]
	ldr	w8, [x26]
	stur	w8, [x22, #-8]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, x25
	blr	x8
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_10
LBB0_13:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_17:
	ldp	x1, x0, [sp, #8]                ; 16-byte Folded Reload
	str	x24, [x1, #8]
	str	w19, [x1]
	bl	_of_genpd_add_provider_onecell
	mov	w19, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"number of domains not found\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_scmi_pd_power_off,4,2          ; @scmi_pd_power_off
	.comm	_scmi_pd_power_on,4,2           ; @scmi_pd_power_on
l_.str.1:                               ; @.str.1
	.asciz	"failed to get state for domain %d\n"

	.comm	_SCMI_POWER_STATE_GENERIC_OFF,8,3 ; @SCMI_POWER_STATE_GENERIC_OFF
	.no_dead_strip	_scmi_pm_domain_probe
.subsections_via_symbols
