	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_bt_init
_hns_roce_bt_init:                      ## @hns_roce_bt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movq	_HNS_ROCE_BT_RSV_BUF_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	leaq	16(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r12), %esi
	leaq	40(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 32(%rbx)
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %esi
	movq	24(%rbx), %rdx
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	negl	%r15d
	movl	(%r12), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_BT_RSV_BUF_SIZE,4,2   ## @HNS_ROCE_BT_RSV_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hns_roce_bt_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_bt_init
_hns_roce_bt_init:                      ; @hns_roce_bt_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x20, x19, [x0]
Lloh0:
	adrp	x22, _HNS_ROCE_BT_RSV_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HNS_ROCE_BT_RSV_BUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_dma_alloc_coherent
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x22]
	add	x2, x20, #16
	ldr	w3, [x21]
	mov	x0, x19
	bl	_dma_alloc_coherent
	str	x0, [x20, #24]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x22]
	add	x2, x20, #40
	ldr	w3, [x21]
	mov	x0, x19
	bl	_dma_alloc_coherent
	str	x0, [x20, #32]
	cbz	x0, LBB0_6
; %bb.3:
	mov	w21, #0
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	ldr	w1, [x22]
	ldr	x2, [x20, #24]
	ldr	w3, [x20, #16]
	mov	x0, x19
	bl	_dma_free_coherent
LBB0_7:
	neg	w21, w21
	ldr	w1, [x22]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_dma_free_coherent
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_BT_RSV_BUF_SIZE,4,2   ; @HNS_ROCE_BT_RSV_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hns_roce_bt_init
.subsections_via_symbols
