	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_db_ext_init
_hns_roce_db_ext_init:                  ## @hns_roce_db_ext_init
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kmalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kmalloc
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	_HNS_ROCE_V1_EXT_SDB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	movq	%rax, 16(%rdi)
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	-64(%rbp), %rax
	movq	%rax, 8(%rdi)
	movq	_HNS_ROCE_V1_EXT_SDB_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	movq	(%r13), %rcx
	movq	%rax, 40(%rcx)
	movq	_HNS_ROCE_V1_EXT_SDB_ALEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V1_EXT_SDB_ALFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hns_roce_set_sdb_ext
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_8
LBB0_5:
	movq	_HNS_ROCE_V1_ODB_ALEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V1_ODB_ALFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hns_roce_set_odb
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movq	_HNS_ROCE_V1_SDB_ALEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V1_SDB_ALFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hns_roce_set_sdb
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
LBB0_8:
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kmalloc
	movq	(%r13), %rcx
	movq	%rax, 24(%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_HNS_ROCE_V1_EXT_ODB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	(%r13), %rcx
	movq	24(%rcx), %rdi
	movq	%rax, 16(%rdi)
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	-56(%rbp), %rax
	movq	%rax, 8(%rdi)
	movq	_HNS_ROCE_V1_EXT_ODB_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	movq	_HNS_ROCE_V1_EXT_ODB_ALEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V1_EXT_ODB_ALFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hns_roce_set_odb_ext
LBB0_11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_hns_roce_set_db_ext_mode
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_17
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_kfree
	testq	%r15, %r15
	je	LBB0_17
LBB0_15:
	movq	_HNS_ROCE_V1_EXT_SDB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	(%r13), %rax
	movq	(%rax), %rdi
LBB0_16:
	callq	_kfree
LBB0_17:
	negl	%ebx
	movq	(%r13), %rdi
	callq	_kfree
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HNS_ROCE_V1_EXT_SDB_SIZE,4,2   ## @HNS_ROCE_V1_EXT_SDB_SIZE
	.comm	_HNS_ROCE_V1_EXT_SDB_DEPTH,4,2  ## @HNS_ROCE_V1_EXT_SDB_DEPTH
	.comm	_HNS_ROCE_V1_EXT_SDB_ALEPT,4,2  ## @HNS_ROCE_V1_EXT_SDB_ALEPT
	.comm	_HNS_ROCE_V1_EXT_SDB_ALFUL,4,2  ## @HNS_ROCE_V1_EXT_SDB_ALFUL
	.comm	_HNS_ROCE_V1_SDB_ALEPT,4,2      ## @HNS_ROCE_V1_SDB_ALEPT
	.comm	_HNS_ROCE_V1_SDB_ALFUL,4,2      ## @HNS_ROCE_V1_SDB_ALFUL
	.comm	_HNS_ROCE_V1_EXT_ODB_SIZE,4,2   ## @HNS_ROCE_V1_EXT_ODB_SIZE
	.comm	_HNS_ROCE_V1_EXT_ODB_DEPTH,4,2  ## @HNS_ROCE_V1_EXT_ODB_DEPTH
	.comm	_HNS_ROCE_V1_EXT_ODB_ALEPT,4,2  ## @HNS_ROCE_V1_EXT_ODB_ALEPT
	.comm	_HNS_ROCE_V1_EXT_ODB_ALFUL,4,2  ## @HNS_ROCE_V1_EXT_ODB_ALFUL
	.comm	_HNS_ROCE_V1_ODB_ALEPT,4,2      ## @HNS_ROCE_V1_ODB_ALEPT
	.comm	_HNS_ROCE_V1_ODB_ALFUL,4,2      ## @HNS_ROCE_V1_ODB_ALFUL
	.no_dead_strip	_hns_roce_db_ext_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_db_ext_init
_hns_roce_db_ext_init:                  ; @hns_roce_db_ext_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldp	x23, x22, [x0]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #48
	bl	_kmalloc
	str	x0, [x23]
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
	ldr	w1, [x24]
	mov	w0, #48
	bl	_kmalloc
	ldr	x8, [x23]
	str	x0, [x8]
	cbz	x0, LBB0_12
; %bb.3:
Lloh2:
	adrp	x8, _HNS_ROCE_V1_EXT_SDB_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_SDB_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x24]
	add	x2, sp, #8
	mov	x0, x22
	bl	_dma_alloc_coherent
	mov	x8, x0
	ldr	x9, [x23]
	ldr	x0, [x9]
	str	x8, [x0, #16]
	cbz	x8, LBB0_13
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x0, #8]
Lloh5:
	adrp	x8, _HNS_ROCE_V1_EXT_SDB_DEPTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_SDB_DEPTH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_ilog2
	ldr	x8, [x23]
	str	x0, [x8, #40]
Lloh8:
	adrp	x8, _HNS_ROCE_V1_EXT_SDB_ALEPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_SDB_ALEPT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HNS_ROCE_V1_EXT_SDB_ALFUL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_SDB_ALFUL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hns_roce_set_sdb_ext
	cbnz	x20, LBB0_8
LBB0_5:
Lloh14:
	adrp	x8, _HNS_ROCE_V1_ODB_ALEPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HNS_ROCE_V1_ODB_ALEPT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _HNS_ROCE_V1_ODB_ALFUL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HNS_ROCE_V1_ODB_ALFUL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hns_roce_set_odb
	b	LBB0_11
LBB0_6:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_7:
Lloh23:
	adrp	x8, _HNS_ROCE_V1_SDB_ALEPT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HNS_ROCE_V1_SDB_ALEPT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _HNS_ROCE_V1_SDB_ALFUL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HNS_ROCE_V1_SDB_ALFUL@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hns_roce_set_sdb
	cbz	x20, LBB0_5
LBB0_8:
	ldr	w1, [x24]
	mov	w0, #48
	bl	_kmalloc
	ldr	x8, [x23]
	str	x0, [x8, #24]
	cbz	x0, LBB0_14
; %bb.9:
Lloh29:
	adrp	x8, _HNS_ROCE_V1_EXT_ODB_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_ODB_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w3, [x24]
	mov	x2, sp
	mov	x0, x22
	bl	_dma_alloc_coherent
	mov	x8, x0
	ldr	x9, [x23]
	ldr	x0, [x9, #24]
	str	x8, [x0, #16]
	cbz	x8, LBB0_15
; %bb.10:
	ldr	x8, [sp]
	str	x8, [x0, #8]
Lloh32:
	adrp	x8, _HNS_ROCE_V1_EXT_ODB_DEPTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_ODB_DEPTH@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_ilog2
	ldr	x8, [x23]
	str	x0, [x8, #32]
Lloh35:
	adrp	x8, _HNS_ROCE_V1_EXT_ODB_ALEPT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_ODB_ALEPT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _HNS_ROCE_V1_EXT_ODB_ALFUL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_ODB_ALFUL@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hns_roce_set_odb_ext
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_hns_roce_set_db_ext_mode
	mov	w19, #0
	b	LBB0_19
LBB0_12:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_13:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_14:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh49:
	ldr	w20, [x8]
	cbnz	x19, LBB0_16
	b	LBB0_18
LBB0_15:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
	bl	_kfree
	cbz	x19, LBB0_18
LBB0_16:
Lloh53:
	adrp	x8, _HNS_ROCE_V1_EXT_SDB_SIZE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HNS_ROCE_V1_EXT_SDB_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldp	x3, x2, [x8, #8]
	mov	x0, x22
	bl	_dma_free_coherent
	ldr	x8, [x23]
	ldr	x0, [x8]
LBB0_17:
	bl	_kfree
LBB0_18:
	neg	w19, w20
	ldr	x0, [x23]
	bl	_kfree
LBB0_19:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HNS_ROCE_V1_EXT_SDB_SIZE,4,2   ; @HNS_ROCE_V1_EXT_SDB_SIZE
	.comm	_HNS_ROCE_V1_EXT_SDB_DEPTH,4,2  ; @HNS_ROCE_V1_EXT_SDB_DEPTH
	.comm	_HNS_ROCE_V1_EXT_SDB_ALEPT,4,2  ; @HNS_ROCE_V1_EXT_SDB_ALEPT
	.comm	_HNS_ROCE_V1_EXT_SDB_ALFUL,4,2  ; @HNS_ROCE_V1_EXT_SDB_ALFUL
	.comm	_HNS_ROCE_V1_SDB_ALEPT,4,2      ; @HNS_ROCE_V1_SDB_ALEPT
	.comm	_HNS_ROCE_V1_SDB_ALFUL,4,2      ; @HNS_ROCE_V1_SDB_ALFUL
	.comm	_HNS_ROCE_V1_EXT_ODB_SIZE,4,2   ; @HNS_ROCE_V1_EXT_ODB_SIZE
	.comm	_HNS_ROCE_V1_EXT_ODB_DEPTH,4,2  ; @HNS_ROCE_V1_EXT_ODB_DEPTH
	.comm	_HNS_ROCE_V1_EXT_ODB_ALEPT,4,2  ; @HNS_ROCE_V1_EXT_ODB_ALEPT
	.comm	_HNS_ROCE_V1_EXT_ODB_ALFUL,4,2  ; @HNS_ROCE_V1_EXT_ODB_ALFUL
	.comm	_HNS_ROCE_V1_ODB_ALEPT,4,2      ; @HNS_ROCE_V1_ODB_ALEPT
	.comm	_HNS_ROCE_V1_ODB_ALFUL,4,2      ; @HNS_ROCE_V1_ODB_ALFUL
	.no_dead_strip	_hns_roce_db_ext_init
.subsections_via_symbols
