	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_table_get_range       ## -- Begin function hns_roce_table_get_range
	.p2align	4, 0x90
_hns_roce_table_get_range:              ## @hns_roce_table_get_range
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %esi
	movq	%r12, %rdi
	callq	_hns_roce_check_whether_mhop
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hns_roce_calc_hem_mhop
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	-64(%rbp), %rax
	movq	8(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:
	xorl	%eax, %eax
	cmpq	%r13, %r14
	ja	LBB0_18
## %bb.10:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_hns_roce_table_get
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	cmpq	%r13, %r14
	movq	%rbx, %r12
	jbe	LBB0_11
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r14
	jbe	LBB0_17
## %bb.15:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	negq	%r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r13), %rdx
	subq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hns_roce_table_put
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	ja	LBB0_16
LBB0_17:
	movl	%r12d, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_table_get_range       ; -- Begin function hns_roce_table_get_range
	.p2align	2
_hns_roce_table_get_range:              ; @hns_roce_table_get_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x23, x24, [x1]
	ldr	w1, [x1, #16]
	bl	_hns_roce_check_whether_mhop
	cbz	x0, LBB0_3
; %bb.1:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_hns_roce_calc_hem_mhop
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	udiv	x25, x8, x9
	cmp	x19, x22
	b.hi	LBB0_7
	b	LBB0_4
LBB0_3:
	udiv	x25, x23, x24
	cmp	x19, x22
	b.hi	LBB0_7
LBB0_4:
	mov	x24, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_hns_roce_table_get
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, x25
	cmp	x24, x22
	b.ls	LBB0_5
LBB0_7:
	mov	w23, #0
LBB0_8:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x23, x0
	cmp	x24, x19
	b.ls	LBB0_8
; %bb.10:
	neg	x22, x25
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x26, x24, x25
	add	x2, x22, x24
	mov	x0, x21
	mov	x1, x20
	bl	_hns_roce_table_put
	mov	x24, x26
	cmp	x26, x19
	b.hi	LBB0_11
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
