	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_set_odb_ext
_hns_roce_set_odb_ext:                  ## @hns_roce_set_odb_ext
	.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
	movl	%edx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r12
	movq	_ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_roce_write
	movq	_ROCEE_EXT_DB_OTHERS_WL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_roce_write
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	_ROCEE_EXT_DB_OTH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$12, %edx
	movq	%rbx, %rdi
	callq	_roce_write
	movq	_ROCEE_EXT_DB_OTH_H_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, %r13d
	movq	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	callq	_roce_set_field
	movq	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	callq	_roce_set_field
	movl	%r13d, %edi
	callq	_le32_to_cpu
	movq	_ROCEE_EXT_DB_OTH_H_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_roce_write
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG,4,2 ## @ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG
	.comm	_ROCEE_EXT_DB_OTHERS_WL_REG,4,2 ## @ROCEE_EXT_DB_OTHERS_WL_REG
	.comm	_ROCEE_EXT_DB_OTH_REG,4,2       ## @ROCEE_EXT_DB_OTH_REG
	.comm	_ROCEE_EXT_DB_OTH_H_REG,4,2     ## @ROCEE_EXT_DB_OTH_H_REG
	.comm	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M,4,2 ## @ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M
	.comm	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S,4,2 ## @ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S
	.comm	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M,4,2 ## @ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M
	.comm	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S,4,2 ## @ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ext ODB depth: 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"ext ODB threshold: empty: 0x%x, ful: 0x%x\n"

	.no_dead_strip	_hns_roce_set_odb_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_set_odb_ext
_hns_roce_set_odb_ext:                  ; @hns_roce_set_odb_ext
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldp	x24, x21, [x0]
Lloh0:
	adrp	x8, _ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_roce_write
Lloh3:
	adrp	x8, _ROCEE_EXT_DB_OTHERS_WL_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROCEE_EXT_DB_OTHERS_WL_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_roce_write
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ROCEE_EXT_DB_OTH_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ROCEE_EXT_DB_OTH_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	asr	w2, w8, #12
	mov	x0, x22
	bl	_roce_write
Lloh9:
	adrp	x25, _ROCEE_EXT_DB_OTH_H_REG@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ROCEE_EXT_DB_OTH_H_REG@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_roce_read
	bl	_cpu_to_le32
	mov	x23, x0
Lloh11:
	adrp	x8, _ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	x8, [x24]
	ldr	w3, [x8]
	bl	_roce_set_field
Lloh17:
	adrp	x8, _ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	x8, [x24]
	ldr	w3, [x8]
	mov	x0, x23
	bl	_roce_set_field
	mov	x0, x23
	bl	_le32_to_cpu
	mov	x2, x0
	ldr	w1, [x25]
	mov	x0, x22
	bl	_roce_write
	ldr	x8, [x24]
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_dev_dbg
	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
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG,4,2 ; @ROCEE_EXT_DB_OTHERS_WL_EMPTY_REG
	.comm	_ROCEE_EXT_DB_OTHERS_WL_REG,4,2 ; @ROCEE_EXT_DB_OTHERS_WL_REG
	.comm	_ROCEE_EXT_DB_OTH_REG,4,2       ; @ROCEE_EXT_DB_OTH_REG
	.comm	_ROCEE_EXT_DB_OTH_H_REG,4,2     ; @ROCEE_EXT_DB_OTH_H_REG
	.comm	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M,4,2 ; @ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_M
	.comm	_ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S,4,2 ; @ROCEE_EXT_DB_OTH_H_EXT_DB_OTH_SHIFT_S
	.comm	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M,4,2 ; @ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_M
	.comm	_ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S,4,2 ; @ROCEE_EXT_DB_SQ_H_EXT_DB_OTH_BA_H_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ext ODB depth: 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"ext ODB threshold: empty: 0x%x, ful: 0x%x\n"

	.no_dead_strip	_hns_roce_set_odb_ext
.subsections_via_symbols
