	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_baco_is_support
_smu_v11_0_baco_is_support:             ## @smu_v11_0_baco_is_support
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	movq	_SMU_FEATURE_BACO_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smu_feature_is_enabled
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_NBIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmRCC_BIF_STRAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	setne	%r14b
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_FEATURE_BACO_BIT,4,2       ## @SMU_FEATURE_BACO_BIT
	.comm	_NBIO,4,2                       ## @NBIO
	.comm	_mmRCC_BIF_STRAP0,4,2           ## @mmRCC_BIF_STRAP0
	.comm	_RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK,4,2 ## @RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK
	.no_dead_strip	_smu_v11_0_baco_is_support
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_baco_is_support
_smu_v11_0_baco_is_support:             ; @smu_v11_0_baco_is_support
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w21, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SMU_FEATURE_BACO_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_FEATURE_BACO_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smu_feature_is_enabled
	cbz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _NBIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NBIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _mmRCC_BIF_STRAP0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmRCC_BIF_STRAP0@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh9:
	adrp	x8, _RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_FEATURE_BACO_BIT,4,2       ; @SMU_FEATURE_BACO_BIT
	.comm	_NBIO,4,2                       ; @NBIO
	.comm	_mmRCC_BIF_STRAP0,4,2           ; @mmRCC_BIF_STRAP0
	.comm	_RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK,4,2 ; @RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK
	.no_dead_strip	_smu_v11_0_baco_is_support
.subsections_via_symbols
