	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_fdt_pm                      ## -- Begin function mv_fdt_pm
	.p2align	4, 0x90
_mv_fdt_pm:                             ## @mv_fdt_pm
	.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
	movl	%edi, %r15d
	movq	_CPU_PM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_cpu_ctrl
	movq	_fdt_pm_mask_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$24, %r14d
	xorl	%ebx, %ebx
	movq	_dev_mask@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%rdi,%r14), %rsi
	addq	$16, %r14
	testq	%rsi, %rsi
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	btl	%ebx, %edx
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_ofw_bus_node_is_compatible
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_fdt_pm_mask_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	notl	%esi
	movq	_fdt_pm_mask_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$4, %rcx
	xorl	%eax, %eax
	andl	(%rdx,%rcx), %esi
	sete	%al
	orl	%r12d, (%r13)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_PM_CTRL,4,2                ## @CPU_PM_CTRL
	.comm	_fdt_pm_mask_table,8,3          ## @fdt_pm_mask_table
	.comm	_dev_mask,4,2                   ## @dev_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_fdt_pm                      ; -- Begin function mv_fdt_pm
	.p2align	2
_mv_fdt_pm:                             ; @mv_fdt_pm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _CPU_PM_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_PM_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_read_cpu_ctrl
Lloh3:
	adrp	x22, _fdt_pm_mask_table@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fdt_pm_mask_table@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	mov	w19, #1
	cbz	x1, LBB0_8
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	w25, #24
Lloh5:
	adrp	x23, _dev_mask@GOTPAGE
Lloh6:
	ldr	x23, [x23, _dev_mask@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x1, [x8, x25]
	add	x25, x25, #16
	cbz	x1, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	lsl	w26, w19, w24
	tst	w9, w26
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_ofw_bus_node_is_compatible
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	b	LBB0_2
LBB0_6:
	mov	w19, #1
	b	LBB0_8
LBB0_7:
	and	x8, x24, #0xffffffff
	ldr	x9, [x22]
	lsl	x8, x8, #4
	ldr	w8, [x9, x8]
	bics	wzr, w8, w21
	cset	w19, eq
	ldr	w8, [x23]
	orr	w8, w8, w26
	str	w8, [x23]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_PM_CTRL,4,2                ; @CPU_PM_CTRL
	.comm	_fdt_pm_mask_table,8,3          ; @fdt_pm_mask_table
	.comm	_dev_mask,4,2                   ; @dev_mask
.subsections_via_symbols
