	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function native_irq_wait
_native_irq_wait:                       ## @native_irq_wait
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$-1000, %ebx                    ## imm = 0xFC18
	movq	_CXL_PSL_PEHandle_An@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	incl	%ebx
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movl	(%r13), %esi
	callq	_cxl_p2n_read
	movzwl	%ax, %r12d
	cmpl	(%r14), %r12d
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rdi
	movq	_CXL_PSL_DSISR_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cxl_p2n_read
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_cxl_is_power8
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CXL_PSL_DSISR_PENDING@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cxl_is_power9
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CXL_PSL9_DSISR_PENDING@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_PSL_PEHandle_An,4,2        ## @CXL_PSL_PEHandle_An
	.comm	_CXL_PSL_DSISR_An,4,2           ## @CXL_PSL_DSISR_An
	.comm	_CXL_PSL_DSISR_PENDING,4,2      ## @CXL_PSL_DSISR_PENDING
	.comm	_CXL_PSL9_DSISR_PENDING,4,2     ## @CXL_PSL9_DSISR_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: waiting on DSI for PE %i DSISR %016llx!\n"

	.no_dead_strip	_native_irq_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function native_irq_wait
_native_irq_wait:                       ; @native_irq_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w22, #-1000
Lloh0:
	adrp	x23, _CXL_PSL_PEHandle_An@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CXL_PSL_PEHandle_An@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CXL_PSL_DSISR_An@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CXL_PSL_DSISR_An@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CXL_PSL9_DSISR_PENDING@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CXL_PSL9_DSISR_PENDING@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CXL_PSL_DSISR_PENDING@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CXL_PSL_DSISR_PENDING@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_msleep
	adds	w22, w22, #1
	b.hs	LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	bl	_cxl_p2n_read
	and	w20, w0, #0xffff
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_cxl_p2n_read
	mov	x21, x0
	bl	_cxl_is_power8
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_cxl_is_power9
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_1
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_PSL_PEHandle_An,4,2        ; @CXL_PSL_PEHandle_An
	.comm	_CXL_PSL_DSISR_An,4,2           ; @CXL_PSL_DSISR_An
	.comm	_CXL_PSL_DSISR_PENDING,4,2      ; @CXL_PSL_DSISR_PENDING
	.comm	_CXL_PSL9_DSISR_PENDING,4,2     ; @CXL_PSL9_DSISR_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: waiting on DSI for PE %i DSISR %016llx!\n"

	.no_dead_strip	_native_irq_wait
.subsections_via_symbols
