	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afu_irq_free
_afu_irq_free:                          ## @afu_irq_free
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rsi), %edi
	movl	16(%rbx), %esi
	callq	_trace_ocxl_afu_irq_free
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_ocxl_irq_id_to_offset
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %ecx
	callq	_unmap_mapping_range
LBB0_2:
	movq	%rbx, %rdi
	callq	_release_afu_irq
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	callq	*%rax
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_ocxl_link_free_irq
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_afu_irq_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afu_irq_free
_afu_irq_free:                          ; @afu_irq_free
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	ldr	w1, [x19, #16]
	bl	_trace_ocxl_afu_irq_free
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_ocxl_irq_id_to_offset
	mov	x1, x0
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x21
	mov	w3, #1
	bl	_unmap_mapping_range
LBB0_2:
	mov	x0, x19
	bl	_release_afu_irq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	blr	x8
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_ocxl_link_free_irq
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_afu_irq_free
.subsections_via_symbols
