	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_get_PE_attributes       ## -- Begin function cxllib_get_PE_attributes
	.p2align	4, 0x90
_cxllib_get_PE_attributes:              ## @cxllib_get_PE_attributes
	.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
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_CXL_TRANSLATED_MODE@GOTPCREL(%rip), %rcx
	movq	_CXL_REAL_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, (%rcx)
	je	LBB0_3
## %bb.1:
	cmpq	%rsi, %rax
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	xorl	%edx, %edx
	cmpq	%rsi, %rax
	sete	%dl
	xorl	%esi, %esi
	testq	%r15, %r15
	sete	%sil
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_cxl_calculate_sr
	movl	%eax, 20(%r14)
	movq	_SPRN_LPID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movl	%eax, 16(%r14)
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_get_task_mm
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, %rdi
	callq	_mmput
	movq	(%r15), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_TRANSLATED_MODE,8,3        ## @CXL_TRANSLATED_MODE
	.comm	_CXL_REAL_MODE,8,3              ## @CXL_REAL_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPRN_LPID,4,2                  ## @SPRN_LPID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_get_PE_attributes       ; -- Begin function cxllib_get_PE_attributes
	.p2align	2
_cxllib_get_PE_attributes:              ; @cxllib_get_PE_attributes
	.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
Lloh0:
	adrp	x8, _CXL_TRANSLATED_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXL_TRANSLATED_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _CXL_REAL_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXL_REAL_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x1
	ccmp	x8, x1, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	cmp	x8, x1
	cset	w2, eq
	cmp	x0, #0
	cset	w1, eq
	mov	w0, #0
	mov	w3, #1
	bl	_cxl_calculate_sr
	str	w0, [x19, #20]
Lloh6:
	adrp	x8, _SPRN_LPID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPRN_LPID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_mfspr
	str	w0, [x19, #16]
	cbz	x20, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_get_task_mm
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x0]
	str	x8, [x19, #8]
	bl	_mmput
	mov	w0, #0
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	stp	xzr, xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_TRANSLATED_MODE,8,3        ; @CXL_TRANSLATED_MODE
	.comm	_CXL_REAL_MODE,8,3              ; @CXL_REAL_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPRN_LPID,4,2                  ; @SPRN_LPID
.subsections_via_symbols
