	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_csr                       ## -- Begin function init_csr
	.p2align	4, 0x90
_init_csr:                              ## @init_csr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CSR1212_KV_ID_NODE_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$33728, %esi                    ## imm = 0x83C0
	callq	_csr1212_new_immediate
	movq	_node_cap@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_csr_highlevel@GOTPCREL(%rip), %rdi
	callq	_hpsb_register_highlevel
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_KV_ID_NODE_CAPABILITIES,4,2 ## @CSR1212_KV_ID_NODE_CAPABILITIES
	.comm	_node_cap,4,2                   ## @node_cap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for Node Capabilties ConfigROM entry!"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_csr_highlevel,4,2              ## @csr_highlevel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_csr                       ; -- Begin function init_csr
	.p2align	2
_init_csr:                              ; @init_csr
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _CSR1212_KV_ID_NODE_CAPABILITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR1212_KV_ID_NODE_CAPABILITIES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #33728
	bl	_csr1212_new_immediate
Lloh3:
	adrp	x8, _node_cap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _node_cap@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, _csr_highlevel@GOTPAGE
Lloh7:
	ldr	x0, [x0, _csr_highlevel@GOTPAGEOFF]
	bl	_hpsb_register_highlevel
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_ERR
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_ID_NODE_CAPABILITIES,4,2 ; @CSR1212_KV_ID_NODE_CAPABILITIES
	.comm	_node_cap,4,2                   ; @node_cap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for Node Capabilties ConfigROM entry!"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_csr_highlevel,4,2              ; @csr_highlevel
.subsections_via_symbols
