	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_loop_free
_hns_roce_loop_free:                    ## @hns_roce_loop_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rdi), %ecx
	movl	$1, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	movl	4(%rdi), %edx
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.1:
	cmpl	$3, %edx
	jne	LBB0_10
## %bb.2:
	testl	%eax, %eax
	js	LBB0_23
## %bb.3:
	movl	%eax, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	-1(%rbx), %rax
	testq	%rbx, %rbx
	movq	%rax, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_23
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rax,%rbx,4), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dma_free_coherent
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r12d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%r12d, %eax
	cltd
	idivl	%esi
	cltq
	addq	%r15, %rax
	movq	32(%r14), %rcx
	movq	40(%r14), %rdx
	movq	(%rdx,%rax,8), %rdx
	movl	(%rcx,%rax,4), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_dma_free_coherent
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
	incq	%r15
	cmpl	%eax, %r15d
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	cmpl	$1, %ecx
	jne	LBB0_18
## %bb.11:
	cmpl	$3, %edx
	jne	LBB0_18
## %bb.12:
	testl	%eax, %eax
	jle	LBB0_23
## %bb.13:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %r12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$2, -80(%rbp)                   ## 8-byte Folded Reload
	movq	%rdi, %r15
	jl	LBB0_23
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %rdx
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	movq	(%rcx,%rsi,8), %rdx
	movl	(%rax,%rsi,4), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dma_free_coherent
	movl	(%r12), %esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
	testl	%eax, %eax
	movq	%r15, %rdi
	jle	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%esi
	cltq
	addq	%r15, %rax
	movq	32(%r14), %rcx
	movq	40(%r14), %rdx
	movq	(%rdx,%rax,8), %rdx
	movl	(%rcx,%rax,4), %ecx
	movl	%r13d, %esi
	movl	%r13d, %ebx
	movq	%r14, %r13
	movq	%rdi, %r14
	callq	_dma_free_coherent
	movq	%r14, %rdi
	movq	%r13, %r14
	movl	%ebx, %r13d
	movl	(%r12), %esi
	movl	%ebx, %eax
	cltd
	idivl	%esi
	incq	%r15
	cmpl	%eax, %r15d
	jl	LBB0_17
	jmp	LBB0_14
LBB0_18:
	cmpl	$1, %ecx
	jne	LBB0_24
## %bb.19:
	cmpl	$2, %edx
	jne	LBB0_24
## %bb.20:
	testl	%eax, %eax
	jle	LBB0_23
## %bb.21:
	movl	%eax, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	16(%r14), %rcx
	movq	24(%r14), %rdx
	movq	(%rdx,%rax,8), %rdx
	movl	(%rcx,%rax,4), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dma_free_coherent
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_22
LBB0_23:
	movq	8(%r14), %rdx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dma_free_coherent
	movq	$0, 8(%r14)
	movl	$0, (%r14)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_BA_BYTE_LEN,4,2                ## @BA_BYTE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not support: mhop_num=%d, err_loop_index=%d."

	.no_dead_strip	_hns_roce_loop_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_loop_free
_hns_roce_loop_free:                    ; @hns_roce_loop_free
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x2
	mov	x19, x1
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w2, [x0]
	add	w23, w9, w10
	mov	w9, #1
	lsl	w21, w9, w23
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.1:
	cmp	w2, #3
	b.ne	LBB0_10
; %bb.2:
	tbnz	w3, #31, LBB0_23
; %bb.3:
	mov	x22, x4
	mov	w24, w3
Lloh3:
	adrp	x25, _BA_BYTE_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BA_BYTE_LEN@GOTPAGEOFF]
	mov	x26, x24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x26, #1
	cmp	x26, #0
	mov	x26, x8
	b.le	LBB0_23
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldp	x9, x8, [x19, #16]
	ldr	x2, [x8, x26, lsl #3]
	ldr	w3, [x9, x26, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	ldr	w8, [x25]
	sdiv	w9, w21, w8
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	lsl	w28, w26, w23
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sdiv	w8, w28, w8
	add	x8, x27, w8, sxtw
	ldp	x10, x9, [x19, #32]
	ldr	x2, [x9, x8, lsl #3]
	ldr	w3, [x10, x8, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	ldr	w8, [x25]
	sdiv	w9, w21, w8
	add	x27, x27, #1
	cmp	w27, w9
	b.ge	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x26, x24
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w27, w22
	b.lt	LBB0_7
	b	LBB0_4
LBB0_10:
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.11:
	cmp	w2, #3
	b.ne	LBB0_18
; %bb.12:
	cmp	w3, #1
	b.lt	LBB0_23
; %bb.13:
	mov	w22, w3
Lloh5:
	adrp	x24, _BA_BYTE_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BA_BYTE_LEN@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	x25, #2
	b.lt	LBB0_23
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x25, x22
	sub	x22, x22, #1
	ldp	x9, x8, [x19, #16]
	ldr	x2, [x8, w22, uxtw #3]
	ldr	w3, [x9, w22, uxtw #2]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	ldr	w8, [x24]
	sdiv	w9, w21, w8
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x26, #0
	lsl	w27, w22, w23
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	w8, w27, w8
	add	x8, x26, w8, sxtw
	ldp	x10, x9, [x19, #32]
	ldr	x2, [x9, x8, lsl #3]
	ldr	w3, [x10, x8, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	ldr	w8, [x24]
	sdiv	w9, w21, w8
	add	x26, x26, #1
	cmp	w26, w9
	b.lt	LBB0_17
	b	LBB0_14
LBB0_18:
	cmp	w8, #1
	b.ne	LBB0_24
; %bb.19:
	cmp	w2, #2
	b.ne	LBB0_24
; %bb.20:
	cmp	w3, #1
	b.lt	LBB0_23
; %bb.21:
	mov	w8, w3
	add	x22, x8, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, #2
	ldp	x10, x9, [x19, #16]
	ldr	x2, [x9, w8, uxtw #3]
	ldr	w3, [x10, w8, uxtw #2]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	sub	x22, x22, #1
	cmp	x22, #1
	b.hi	LBB0_22
LBB0_23:
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	str	xzr, [x19, #8]
	str	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_BA_BYTE_LEN,4,2                ; @BA_BYTE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not support: mhop_num=%d, err_loop_index=%d."

	.no_dead_strip	_hns_roce_loop_free
.subsections_via_symbols
