	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_mhop_free_eq
_hns_roce_mhop_free_eq:                 ## @hns_roce_mhop_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	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rdi), %ecx
	addl	%eax, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	%rsi, %r13
	movq	16(%rdi), %r14
	addl	8(%rdi), %eax
	movl	$1, %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movl	(%rdi), %ebx
	movq	_HNS_ROCE_HOP_NUM_0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_1
## %bb.18:
	movl	4(%r13), %esi
	movl	48(%r13), %ecx
	imull	(%r13), %esi
	movl	52(%r13), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
LBB0_1:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	48(%r13), %ecx
	movl	52(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_dma_free_coherent
	cmpl	$1, %ebx
	je	LBB0_10
## %bb.2:
	cmpl	$2, %ebx
	jne	LBB0_17
## %bb.3:
	cmpl	$0, 8(%r13)
	jle	LBB0_17
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	movq	%r15, %r14
	jge	LBB0_17
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	movq	%r14, %r15
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_dma_free_coherent
	movl	%r12d, %eax
	cltd
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	testl	%eax, %eax
	jle	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movslq	%ecx, %rax
	movq	32(%r13), %rcx
	movq	40(%r13), %rsi
	movl	(%rcx,%rax,4), %edx
	movl	(%rsi,%rax,4), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_free_coherent
	incl	%r14d
	movl	%r12d, %eax
	cltd
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%eax, %ecx
	cmpl	%eax, %r14d
	jge	LBB0_16
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ebx, %ecx
	addl	%r14d, %ecx
	movl	8(%r13), %eax
	decl	%eax
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	12(%r13), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%edi
	imull	%ecx, %eax
	subl	%eax, %esi
	imull	%edi, %esi
	movq	32(%r13), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	40(%r13), %rax
	movl	(%rax,%rcx,4), %ecx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	jmp	LBB0_16
LBB0_10:
	movl	8(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r13), %rax
	movq	40(%r13), %rcx
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_free_coherent
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_17
LBB0_13:
	movl	(%r13), %esi
	movl	4(%r13), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ecx
	movl	%ebx, %edx
	imull	%eax, %edx
	subl	%edx, %esi
	imull	%ecx, %esi
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	40(%r13), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_17:
	movq	40(%r13), %rdi
	callq	_kfree
	movq	32(%r13), %rdi
	callq	_kfree
	movq	24(%r13), %rdi
	callq	_kfree
	movq	16(%r13), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13)
	movups	%xmm0, 32(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_HNS_ROCE_HOP_NUM_0,4,2         ## @HNS_ROCE_HOP_NUM_0
	.comm	_BA_BYTE_LEN,4,2                ## @BA_BYTE_LEN
	.no_dead_strip	_hns_roce_mhop_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_mhop_free_eq
_hns_roce_mhop_free_eq:                 ; @hns_roce_mhop_free_eq
	.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, x1
	ldr	x20, [x0, #16]
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _HNS_ROCE_HOP_NUM_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_HOP_NUM_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	w8, w9, [x19]
	mul	w1, w9, w8
	ldp	w3, w2, [x19, #48]
	mov	x0, x20
	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	_dma_free_coherent
LBB0_2:
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x0, #4]
	add	w9, w8, w9
	mov	w11, #1
	lsl	w21, w11, w9
	add	w8, w10, w8
	lsl	w22, w11, w8
	ldp	w3, w2, [x19, #48]
	mov	x0, x20
	mov	x1, x22
	bl	_dma_free_coherent
	cmp	w23, #1
	b.eq	LBB0_13
; %bb.3:
	cmp	w23, #2
	b.ne	LBB0_18
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
	mov	x23, #0
Lloh6:
	adrp	x24, _BA_BYTE_LEN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BA_BYTE_LEN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	cmp	x23, x8
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x8, x23, #2
	ldp	x9, x10, [x19, #16]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x20
	mov	x1, x22
	bl	_dma_free_coherent
	ldr	w8, [x24]
	sdiv	w8, w22, w8
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	sbfiz	x8, x8, #2, #32
	ldp	x9, x10, [x19, #32]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	add	w25, w25, #1
	ldr	w8, [x24]
	sdiv	w8, w22, w8
	cmp	w25, w8
	b.ge	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w8, w23, w8, w25
	ldr	w9, [x19, #8]
	sub	w9, w9, #1
	cmp	x23, x9
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x19, #12]
	sub	w9, w9, #1
	cmp	w25, w9
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w10, w9, [x19]
	sdiv	w11, w21, w9
	msub	w10, w11, w8, w10
	mul	w1, w10, w9
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x8, x8, #2, #32
	ldp	x9, x10, [x19, #32]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x20
	bl	_dma_free_coherent
	b	LBB0_6
LBB0_13:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #1
	lsl	x8, x22, #2
	cmp	x22, x9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldp	x9, x10, [x19, #32]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_15
	b	LBB0_18
LBB0_17:
	ldp	w10, w9, [x19]
	sdiv	w11, w21, w9
	msub	w10, w11, w22, w10
	mul	w1, w10, w9
	ldp	x9, x10, [x19, #32]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_18:
	ldr	x0, [x19, #40]
	bl	_kfree
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	x0, [x19, #16]
	bl	_kfree
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_HNS_ROCE_HOP_NUM_0,4,2         ; @HNS_ROCE_HOP_NUM_0
	.comm	_BA_BYTE_LEN,4,2                ; @BA_BYTE_LEN
	.no_dead_strip	_hns_roce_mhop_free_eq
.subsections_via_symbols
