	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_pmu_probe_active_mcb_mcu_l3c
_fdt_pmu_probe_active_mcb_mcu_l3c:      ## @fdt_pmu_probe_active_mcb_mcu_l3c
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movl	$1, (%r14)
	movq	_CSW_CSWCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_regmap_read
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_CSW_CSWCR_DUALMCB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.10:
	movl	$3, 4(%r14)
	movq	_MCBADDRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.11:
	movq	_MCBADDRMR_DUALMCU_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-44(%rbp), %ecx
	movl	$5, %ecx
	movl	$15, %edx
	cmovel	%ecx, %edx
	movl	%edx, 8(%r14)
	jmp	LBB0_14
LBB0_12:
	movl	$1, 4(%r14)
	movq	_MCBADDRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	_MCBADDRMR_DUALMCU_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	-44(%rbp), %ecx
	setne	%dl
	leal	(%rdx,%rdx), %ecx
	incl	%ecx
	movl	%ecx, 8(%r14)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap-csw"

L_.str.1:                               ## @.str.1
	.asciz	"unable to get syscon regmap csw\n"

L_.str.2:                               ## @.str.2
	.asciz	"regmap-mcba"

L_.str.3:                               ## @.str.3
	.asciz	"unable to get syscon regmap mcba\n"

L_.str.4:                               ## @.str.4
	.asciz	"regmap-mcbb"

L_.str.5:                               ## @.str.5
	.asciz	"unable to get syscon regmap mcbb\n"

	.comm	_CSW_CSWCR,4,2                  ## @CSW_CSWCR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CSW_CSWCR_DUALMCB_MASK,4,2     ## @CSW_CSWCR_DUALMCB_MASK
	.comm	_MCBADDRMR,4,2                  ## @MCBADDRMR
	.comm	_MCBADDRMR_DUALMCU_MODE_MASK,4,2 ## @MCBADDRMR_DUALMCU_MODE_MASK
	.no_dead_strip	_fdt_pmu_probe_active_mcb_mcu_l3c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_pmu_probe_active_mcb_mcu_l3c
_fdt_pmu_probe_active_mcb_mcu_l3c:      ; @fdt_pmu_probe_active_mcb_mcu_l3c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_syscon_regmap_lookup_by_phandle
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x22
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_syscon_regmap_lookup_by_phandle
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x20
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_syscon_regmap_lookup_by_phandle
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x23
LBB0_6:
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
Lloh12:
	adrp	x8, _CSW_CSWCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSW_CSWCR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_regmap_read
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_9:
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _CSW_CSWCR_DUALMCB_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CSW_CSWCR_DUALMCB_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w8, #3
	str	w8, [x19, #4]
Lloh21:
	adrp	x8, _MCBADDRMR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MCBADDRMR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x23
	bl	_regmap_read
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x9, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #15
	mov	w9, #5
	csel	w8, w9, w8, eq
	b	LBB0_15
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh27:
	adrp	x8, _MCBADDRMR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MCBADDRMR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	cbz	x0, LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
Lloh30:
	adrp	x8, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MCBADDRMR_DUALMCU_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #3
	csinc	w8, w8, wzr, ne
LBB0_15:
	str	w8, [x19, #8]
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap-csw"

l_.str.1:                               ; @.str.1
	.asciz	"unable to get syscon regmap csw\n"

l_.str.2:                               ; @.str.2
	.asciz	"regmap-mcba"

l_.str.3:                               ; @.str.3
	.asciz	"unable to get syscon regmap mcba\n"

l_.str.4:                               ; @.str.4
	.asciz	"regmap-mcbb"

l_.str.5:                               ; @.str.5
	.asciz	"unable to get syscon regmap mcbb\n"

	.comm	_CSW_CSWCR,4,2                  ; @CSW_CSWCR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CSW_CSWCR_DUALMCB_MASK,4,2     ; @CSW_CSWCR_DUALMCB_MASK
	.comm	_MCBADDRMR,4,2                  ; @MCBADDRMR
	.comm	_MCBADDRMR_DUALMCU_MODE_MASK,4,2 ; @MCBADDRMR_DUALMCU_MODE_MASK
	.no_dead_strip	_fdt_pmu_probe_active_mcb_mcu_l3c
.subsections_via_symbols
