	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_free_ctxtdata             ## -- Begin function hfi1_free_ctxtdata
	.p2align	4, 0x90
_hfi1_free_ctxtdata:                    ## @hfi1_free_ctxtdata
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	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	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.2:
	movq	(%r14), %r15
	movq	%r12, %rdi
	callq	_rcvhdrq_size
	movq	(%r12), %rdx
	movq	88(%r12), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, (%r12)
	movq	72(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	80(%r12), %rcx
	callq	_dma_free_coherent
	movq	$0, 72(%r12)
LBB0_4:
	leaq	48(%r12), %r15
	movq	64(%r12), %rdi
	callq	_kfree
	movq	$0, 64(%r12)
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	addq	$24, %rbx
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rdx
	movq	-8(%rdx,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rdi
	movl	(%rdx,%rbx), %esi
	movq	-16(%rdx,%rbx), %rdx
	callq	_dma_free_coherent
	movq	(%r15), %rax
	jmp	LBB0_8
LBB0_9:
	movq	56(%r12), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	40(%r12), %rdi
	callq	_sc_free
	movq	$0, 40(%r12)
	movq	32(%r12), %rdi
	callq	_vfree
	movq	24(%r12), %rdi
	callq	_vfree
	movq	16(%r12), %rdi
	callq	_vfree
	movq	8(%r12), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movups	%xmm0, 24(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_free_ctxtdata             ; -- Begin function hfi1_free_ctxtdata
	.p2align	2
_hfi1_free_ctxtdata:                    ; @hfi1_free_ctxtdata
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_10
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x21, [x20]
	mov	x0, x19
	bl	_rcvhdrq_size
	mov	x1, x0
	ldr	x2, [x19]
	ldr	x3, [x19, #88]
	mov	x0, x21
	bl	_dma_free_coherent
	str	xzr, [x19]
	ldr	x2, [x19, #72]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [x19, #80]
	bl	_dma_free_coherent
	str	xzr, [x19, #72]
LBB0_4:
	ldr	x0, [x19, #64]
	bl	_kfree
	str	xzr, [x19, #64]
	mov	x21, x19
	ldr	x8, [x21, #48]!
	cbz	x8, LBB0_9
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	add	x22, x22, #24
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	add	x9, x9, x22
	ldr	x3, [x9, #8]
	cbz	x3, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20]
	ldr	w1, [x9, #16]
	ldr	x2, [x9]
	bl	_dma_free_coherent
	ldr	x8, [x21]
	b	LBB0_6
LBB0_9:
	ldr	x0, [x19, #56]
	bl	_kfree
	stp	xzr, xzr, [x21]
	ldr	x0, [x19, #40]
	bl	_sc_free
	str	xzr, [x19, #40]
	ldr	x0, [x19, #32]
	bl	_vfree
	ldr	x0, [x19, #24]
	bl	_vfree
	ldr	x0, [x19, #16]
	bl	_vfree
	ldr	x0, [x19, #8]
	bl	_kfree
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
