	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pamu_enable_liodn              ## -- Begin function pamu_enable_liodn
	.p2align	4, 0x90
_pamu_enable_liodn:                     ## @pamu_enable_liodn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_pamu_get_ppaace
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_PPAACE_AF_WSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_bf
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_mb
	movl	(%rbx), %edi
	movq	_PAACE_AF_V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAACE_V_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_set_bf
	xorl	%eax, %eax
	callq	_mb
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid primary paace entry\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PPAACE_AF_WSE,4,2              ## @PPAACE_AF_WSE
L_.str.1:                               ## @.str.1
	.asciz	"liodn %d not configured\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAACE_AF_V,4,2                 ## @PAACE_AF_V
	.comm	_PAACE_V_VALID,4,2              ## @PAACE_V_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pamu_enable_liodn              ; -- Begin function pamu_enable_liodn
	.p2align	2
_pamu_enable_liodn:                     ; @pamu_enable_liodn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_pamu_get_ppaace
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PPAACE_AF_WSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPAACE_AF_WSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_bf
	cbz	w0, LBB0_4
; %bb.2:
	bl	_mb
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _PAACE_AF_V@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAACE_AF_V@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PAACE_V_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAACE_V_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_set_bf
	bl	_mb
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid primary paace entry\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PPAACE_AF_WSE,4,2              ; @PPAACE_AF_WSE
l_.str.1:                               ; @.str.1
	.asciz	"liodn %d not configured\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAACE_AF_V,4,2                 ; @PAACE_AF_V
	.comm	_PAACE_V_VALID,4,2              ; @PAACE_V_VALID
.subsections_via_symbols
