	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_user_sdma_queue_create     ## -- Begin function qib_user_sdma_queue_create
	.p2align	4, 0x90
_qib_user_sdma_queue_create:            ## @qib_user_sdma_queue_create
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	$0, 8(%rax)
	leaq	36(%rax), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rax)
	movups	%xmm0, 56(%rax)
	movq	$0, 72(%rax)
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$28, %rdi
	callq	_mutex_init
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_snprintf
	movl	24(%rbx), %edi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_snprintf
	movl	20(%rbx), %edi
	movq	_QIB_USER_SDMA_EXP_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_dma_pool_create
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	_RB_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_qib_user_sdma_rb_root@GOTPCREL(%rip), %rdi
	callq	_qib_user_sdma_rb_search
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	incl	(%rax)
	movq	%rax, 8(%rbx)
	jmp	LBB0_12
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r14
	movl	$1, (%rax)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_qib_user_sdma_rb_root@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_qib_user_sdma_rb_insert
	movq	%r14, 8(%rbx)
	jmp	LBB0_12
LBB0_8:
	movl	4(%rbx), %edi
	callq	_dma_pool_destroy
LBB0_9:
	movl	(%rbx), %edi
	callq	_kmem_cache_destroy
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qib-user-sdma-pkts-%u-%02u.%02u"

L_.str.1:                               ## @.str.1
	.asciz	"qib-user-sdma-headers-%u-%02u.%02u"

	.comm	_QIB_USER_SDMA_EXP_HEADER_LENGTH,4,2 ## @QIB_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
	.comm	_qib_user_sdma_rb_root,4,2      ## @qib_user_sdma_rb_root
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_user_sdma_queue_create     ; -- Begin function qib_user_sdma_queue_create
	.p2align	2
_qib_user_sdma_queue_create:            ; @qib_user_sdma_queue_create
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #80
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	str	xzr, [x19, #8]
	add	x0, x19, #36
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	str	xzr, [x19, #72]
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #28
	bl	_mutex_init
	ldr	w0, [x19, #24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	ldr	w0, [x19, #24]
	mov	w1, #4
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19]
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #20]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	ldr	w0, [x19, #20]
Lloh6:
	adrp	x8, _QIB_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QIB_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #4
	mov	w4, #0
	bl	_dma_pool_create
	str	w0, [x19, #4]
	cbz	w0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _RB_ROOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RB_ROOT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh12:
	adrp	x21, _current@GOTPAGE
Lloh13:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, _qib_user_sdma_rb_root@GOTPAGE
Lloh15:
	ldr	x0, [x0, _qib_user_sdma_rb_root@GOTPAGEOFF]
	bl	_qib_user_sdma_rb_search
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	str	x0, [x19, #8]
	b	LBB0_10
LBB0_5:
	ldr	w1, [x24]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
	mov	w8, #1
	ldr	x9, [x21]
	ldr	w9, [x9]
	stp	w8, w9, [x0]
Lloh16:
	adrp	x0, _qib_user_sdma_rb_root@GOTPAGE
Lloh17:
	ldr	x0, [x0, _qib_user_sdma_rb_root@GOTPAGEOFF]
	mov	x1, x20
	bl	_qib_user_sdma_rb_insert
	str	x20, [x19, #8]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_dma_pool_destroy
LBB0_8:
	ldr	w0, [x19]
	bl	_kmem_cache_destroy
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qib-user-sdma-pkts-%u-%02u.%02u"

l_.str.1:                               ; @.str.1
	.asciz	"qib-user-sdma-headers-%u-%02u.%02u"

	.comm	_QIB_USER_SDMA_EXP_HEADER_LENGTH,4,2 ; @QIB_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
	.comm	_qib_user_sdma_rb_root,4,2      ; @qib_user_sdma_rb_root
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
