	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function native_afu_reset
_native_afu_reset:                      ## @native_afu_reset
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	movq	_CXL_AFU_Cntl_An_RA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CXL_AFU_Cntl_An_RS_Complete@GOTPCREL(%rip), %rax
	movq	_CXL_AFU_Cntl_An_ES_Disabled@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CXL_AFU_Cntl_An_RS_MASK@GOTPCREL(%rip), %rax
	movq	_CXL_AFU_Cntl_An_ES_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_afu_control
	movl	%eax, %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_CXL_PSL_SERR_An@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1n_read
	movq	_CXL_PSL_SERR_An_IRQ_MASKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1n_write
LBB0_2:
	movl	%r14d, %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	"AFU reset request\n"

	.comm	_CXL_AFU_Cntl_An_RA,4,2         ## @CXL_AFU_Cntl_An_RA
	.comm	_CXL_AFU_Cntl_An_RS_Complete,4,2 ## @CXL_AFU_Cntl_An_RS_Complete
	.comm	_CXL_AFU_Cntl_An_ES_Disabled,4,2 ## @CXL_AFU_Cntl_An_ES_Disabled
	.comm	_CXL_AFU_Cntl_An_RS_MASK,4,2    ## @CXL_AFU_Cntl_An_RS_MASK
	.comm	_CXL_AFU_Cntl_An_ES_MASK,4,2    ## @CXL_AFU_Cntl_An_ES_MASK
	.comm	_CXL_PSL_SERR_An,4,2            ## @CXL_PSL_SERR_An
	.comm	_CXL_PSL_SERR_An_IRQ_MASKS,4,2  ## @CXL_PSL_SERR_An_IRQ_MASKS
	.no_dead_strip	_native_afu_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function native_afu_reset
_native_afu_reset:                      ; @native_afu_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
Lloh2:
	adrp	x8, _CXL_AFU_Cntl_An_RA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CXL_AFU_Cntl_An_RA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CXL_AFU_Cntl_An_RS_Complete@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CXL_AFU_Cntl_An_RS_Complete@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CXL_AFU_Cntl_An_ES_Disabled@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CXL_AFU_Cntl_An_ES_Disabled@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _CXL_AFU_Cntl_An_RS_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CXL_AFU_Cntl_An_RS_MASK@GOTPAGEOFF]
	orr	w3, w9, w8
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _CXL_AFU_Cntl_An_ES_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CXL_AFU_Cntl_An_ES_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x19
	mov	w2, #0
	mov	w5, #0
	bl	_afu_control
	mov	x20, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh17:
	adrp	x21, _CXL_PSL_SERR_An@GOTPAGE
Lloh18:
	ldr	x21, [x21, _CXL_PSL_SERR_An@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cxl_p1n_read
Lloh19:
	adrp	x8, _CXL_PSL_SERR_An_IRQ_MASKS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CXL_PSL_SERR_An_IRQ_MASKS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cxl_p1n_write
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AFU reset request\n"

	.comm	_CXL_AFU_Cntl_An_RA,4,2         ; @CXL_AFU_Cntl_An_RA
	.comm	_CXL_AFU_Cntl_An_RS_Complete,4,2 ; @CXL_AFU_Cntl_An_RS_Complete
	.comm	_CXL_AFU_Cntl_An_ES_Disabled,4,2 ; @CXL_AFU_Cntl_An_ES_Disabled
	.comm	_CXL_AFU_Cntl_An_RS_MASK,4,2    ; @CXL_AFU_Cntl_An_RS_MASK
	.comm	_CXL_AFU_Cntl_An_ES_MASK,4,2    ; @CXL_AFU_Cntl_An_ES_MASK
	.comm	_CXL_PSL_SERR_An,4,2            ; @CXL_PSL_SERR_An
	.comm	_CXL_PSL_SERR_An_IRQ_MASKS,4,2  ; @CXL_PSL_SERR_An_IRQ_MASKS
	.no_dead_strip	_native_afu_reset
.subsections_via_symbols
