	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu9_baco_get_capability       ## -- Begin function smu9_baco_get_capability
	.p2align	4, 0x90
_smu9_baco_get_capability:              ## @smu9_baco_get_capability
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	$0, (%rsi)
	movl	(%rdi), %edi
	movq	_PHM_PlatformCaps_BACO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	$73844, %edi                    ## imm = 0x12074
	movl	$-1048517, %esi                 ## imm = 0xFFF0003B
	callq	_WREG32
	movl	$73845, %edi                    ## imm = 0x12075
	callq	_RREG32
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movq	_NBIF@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
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_BACO,4,2      ## @PHM_PlatformCaps_BACO
	.comm	_NBIF,4,2                       ## @NBIF
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu9_baco_get_capability       ; -- Begin function smu9_baco_get_capability
	.p2align	2
_smu9_baco_get_capability:              ; @smu9_baco_get_capability
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	wzr, [x1]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_BACO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_BACO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
	cbz	w0, LBB0_4
; %bb.1:
	mov	w20, #8308
	movk	w20, #1, lsl #16
	mov	w0, #8308
	movk	w0, #1, lsl #16
	mov	w1, #59
	movk	w1, #65520, lsl #16
	bl	_WREG32
	orr	w0, w20, #0x1
	bl	_RREG32
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _NBIF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NBIF@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
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_PHM_PlatformCaps_BACO,4,2      ; @PHM_PlatformCaps_BACO
	.comm	_NBIF,4,2                       ; @NBIF
	.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
.subsections_via_symbols
