	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_table_put             ## -- Begin function hns_roce_table_put
	.p2align	4, 0x90
_hns_roce_table_put:                    ## @hns_roce_table_put
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	40(%rsi), %esi
	callq	_hns_roce_check_whether_mhop
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns_roce_table_mhop_put        ## TAILCALL
LBB0_1:
	movslq	(%rbx), %rcx
	decq	%rcx
	andq	%r12, %rcx
	movq	8(%rbx), %rax
	movq	16(%rbx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
LBB0_4:
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r13
	jmp	LBB0_7
LBB0_5:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
LBB0_7:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	decq	(%rax)
	jne	LBB0_11
## %bb.8:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
LBB0_10:
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movq	%r14, %rdi
	callq	_hns_roce_free_hem
	movq	32(%rbx), %rax
	movq	$0, (%rax,%r13,8)
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Clear HEM base address failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_table_put             ; -- Begin function hns_roce_table_put
	.p2align	2
_hns_roce_table_put:                    ; @hns_roce_table_put
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x1, #40]
	bl	_hns_roce_check_whether_mhop
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w3, #1
	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	_hns_roce_table_mhop_put
LBB0_2:
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	and	x8, x8, x23
	ldp	x9, x10, [x19, #8]
	udiv	x9, x9, x10
	add	x22, x19, #24
	udiv	x24, x8, x9
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w3, #0
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_5:
	ldr	x8, [x19, #32]
	lsl	x21, x24, #3
	ldr	x1, [x8, x21]
	mov	x0, x20
	bl	_hns_roce_free_hem
	ldr	x8, [x19, #32]
	str	xzr, [x8, x21]
LBB0_6:
	mov	x0, x22
	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	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Clear HEM base address failed.\n"

.subsections_via_symbols
