	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_free_eq
_hns_roce_v1_free_eq:                   ## @hns_roce_v1_free_eq
	.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	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	imull	(%rsi), %edi
	callq	_PAGE_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	_HNS_ROCE_BA_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_free_coherent
	cmpl	$1, %r15d
	je	LBB0_5
## %bb.3:
	movl	%r15d, %r15d
	decq	%r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	8(%r13), %rax
	movq	(%r14), %rdi
	movl	8(%rax,%rbx,8), %ecx
	movl	12(%rax,%rbx,8), %edx
	callq	_dma_free_coherent
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_5:
	movq	8(%r13), %rdi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_BA_SIZE,4,2           ## @HNS_ROCE_BA_SIZE
	.no_dead_strip	_hns_roce_v1_free_eq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v1_free_eq
_hns_roce_v1_free_eq:                   ; @hns_roce_v1_free_eq
	.cfi_startproc
; %bb.0:
	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
	ldp	w8, w9, [x1]
	mul	w0, w9, w8
	bl	_PAGE_ALIGN
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x21, _HNS_ROCE_BA_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HNS_ROCE_BA_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	w8, w8, w1
	sub	w8, w8, #1
	sdiv	w23, w8, w1
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x20]
	ldp	w3, w2, [x0]
	mov	x0, x8
	bl	_dma_free_coherent
	cmp	w23, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x22, #0
	sub	x23, x23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x8, [x19, #8]
	ldr	x0, [x20]
	add	x8, x8, x22
	ldp	w3, w2, [x8, #8]
	bl	_dma_free_coherent
	add	x22, x22, #8
	subs	x23, x23, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	x0, [x19, #8]
LBB0_6:
	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
	b	_kfree
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_BA_SIZE,4,2           ; @HNS_ROCE_BA_SIZE
	.no_dead_strip	_hns_roce_v1_free_eq
.subsections_via_symbols
