	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_init_db_tab              ## -- Begin function mthca_init_db_tab
	.p2align	4, 0x90
_mthca_init_db_tab:                     ## @mthca_init_db_tab
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mthca_is_memfree
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	addq	$24, %rax
	movq	%rax, %rdi
	callq	_mutex_init
	movl	8(%rbx), %eax
	movq	_MTHCA_ICM_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	$0, 16(%rcx)
	leal	-1(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	(%r15), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	(%rbx), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_7
## %bb.4:
	shlq	$3, %rsi
	movq	%rax, %rdi
	callq	___bzero
	jmp	LBB0_7
LBB0_5:
	callq	_kfree
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MTHCA_ICM_PAGE_SIZE,4,2        ## @MTHCA_ICM_PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_init_db_tab              ; -- Begin function mthca_init_db_tab
	.p2align	2
_mthca_init_db_tab:                     ; @mthca_init_db_tab
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mthca_is_memfree
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #32
	bl	_kmalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.2:
	add	x0, x0, #24
	bl	_mutex_init
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _MTHCA_ICM_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MTHCA_ICM_PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	ldr	x8, [x19]
	str	xzr, [x8, #16]
	sub	w9, w0, #1
	stp	w0, w9, [x8]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kmalloc_array
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	lsl	x1, x8, #3
	bl	_bzero
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x8
	bl	_kfree
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MTHCA_ICM_PAGE_SIZE,4,2        ; @MTHCA_ICM_PAGE_SIZE
.subsections_via_symbols
