	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scpi_pm_domain_probe
_scpi_pm_domain_probe:                  ## @scpi_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_scpi_ops
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-44(%rbp), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	%rax, %rbx
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.17:
	addq	$24, %rbx
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leaq	-20(%rbx), %r13
	movq	%r13, (%rax,%r12,8)
	movl	%r12d, -24(%rbx)
	movq	%r15, (%rbx)
	movl	-8(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %r14
	movl	%r12d, %ecx
	callq	_sprintf
	movl	-8(%rbx), %eax
	movl	%eax, -12(%rbx)
	movq	_scpi_pd_power_off@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbx)
	movq	_scpi_pd_power_on@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_pm_genpd_init
	movq	%r14, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	incq	%r12
	movslq	-44(%rbp), %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_18
LBB0_19:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movl	%ecx, (%rsi)
	movq	%r14, %rdi
	callq	_of_genpd_add_provider_onecell
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device tree node not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"power domains not supported in the firmware\n"

L_.str.2:                               ## @.str.2
	.asciz	"num-domains"

L_.str.3:                               ## @.str.3
	.asciz	"number of domains not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"%pOFn.%d"

	.comm	_scpi_pd_power_off,4,2          ## @scpi_pd_power_off
	.comm	_scpi_pd_power_on,4,2           ## @scpi_pd_power_on
	.no_dead_strip	_scpi_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 scpi_pm_domain_probe
_scpi_pm_domain_probe:                  ; @scpi_pm_domain_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	x22, x0
	ldr	x19, [x0]
	bl	_get_scpi_ops
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x19, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_property_read_u32
	cbz	w0, LBB0_12
; %bb.5:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x22
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	ldr	w1, [sp, #12]
Lloh14:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x22
	mov	w2, #32
	bl	_devm_kcalloc
	cbz	x0, LBB0_19
; %bb.13:
	mov	x24, x0
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_19
; %bb.14:
	mov	x21, x0
	ldr	w1, [sp, #12]
	ldr	w3, [x23]
	mov	x0, x22
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_19
; %bb.15:
	mov	x22, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x23, #0
	add	x26, x24, #12
Lloh16:
	adrp	x27, _scpi_pd_power_off@GOTPAGE
Lloh17:
	ldr	x27, [x27, _scpi_pd_power_off@GOTPAGEOFF]
Lloh18:
	adrp	x28, _scpi_pd_power_on@GOTPAGE
Lloh19:
	ldr	x28, [x28, _scpi_pd_power_on@GOTPAGEOFF]
Lloh20:
	adrp	x24, l_.str.4@PAGE
Lloh21:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	x25, x26, #8
	str	x25, [x22, x23, lsl #3]
	stur	w23, [x26, #-12]
	stur	x20, [x26, #12]
	ldr	w0, [x26, #4]
	mov	x1, x24
	mov	x2, x19
	mov	x3, x23
	bl	_sprintf
	ldr	w8, [x26, #4]
	str	w8, [x26]
	ldr	w8, [x27]
	stur	w8, [x26, #-4]
	ldr	w8, [x28]
	stur	w8, [x26, #-8]
	mov	x0, x25
	mov	x1, #0
	mov	w2, #1
	bl	_pm_genpd_init
	add	x23, x23, #1
	ldrsw	x8, [sp, #12]
	add	x26, x26, #32
	cmp	x23, x8
	b.lt	LBB0_17
LBB0_18:
	str	x22, [x21, #8]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_of_genpd_add_provider_onecell
	mov	w0, #0
	b	LBB0_11
LBB0_19:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device tree node not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"power domains not supported in the firmware\n"

l_.str.2:                               ; @.str.2
	.asciz	"num-domains"

l_.str.3:                               ; @.str.3
	.asciz	"number of domains not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"%pOFn.%d"

	.comm	_scpi_pd_power_off,4,2          ; @scpi_pd_power_off
	.comm	_scpi_pd_power_on,4,2           ; @scpi_pd_power_on
	.no_dead_strip	_scpi_pm_domain_probe
.subsections_via_symbols
