	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_user_sdma_queue_create   ## -- Begin function ipath_user_sdma_queue_create
	.p2align	4, 0x90
_ipath_user_sdma_queue_create:          ## @ipath_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	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	24(%rax), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_mutex_init
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_snprintf
	movl	16(%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_5
## %bb.2:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_snprintf
	movl	12(%rbx), %edi
	movq	_IPATH_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, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_RB_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
	callq	_kmem_cache_destroy
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	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	"ipath-user-sdma-pkts-%u-%02u.%02u"

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

	.comm	_IPATH_USER_SDMA_EXP_HEADER_LENGTH,4,2 ## @IPATH_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_user_sdma_queue_create   ; -- Begin function ipath_user_sdma_queue_create
	.p2align	2
_ipath_user_sdma_queue_create:          ; @ipath_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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x0, x19, #24
	stp	xzr, xzr, [x19, #32]
	bl	_INIT_LIST_HEAD
	add	x0, x19, #20
	bl	_mutex_init
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	ldr	w0, [x19, #16]
	mov	w1, #4
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x8, _IPATH_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPATH_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #4
	mov	w4, #0
	bl	_dma_pool_create
	str	w0, [x19, #8]
	cbz	w0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _RB_ROOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RB_ROOT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
	bl	_kmem_cache_destroy
LBB0_5:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipath-user-sdma-pkts-%u-%02u.%02u"

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

	.comm	_IPATH_USER_SDMA_EXP_HEADER_LENGTH,4,2 ; @IPATH_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
.subsections_via_symbols
