	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_tx_ring_create             ## -- Begin function sdp_tx_ring_create
	.p2align	4, 0x90
_sdp_tx_ring_create:                    ## @sdp_tx_ring_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_SDP_TX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -52(%rbp)
	movl	40(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sdp_dbg
	leaq	32(%rbx), %rdi
	leaq	44(%rbx), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_callout_init_rw
	leaq	48(%rbx), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_callout_init_rw
	leaq	28(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	24(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	(%r13), %edi
	shll	$2, %edi
	movq	_M_SDP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, (%rbx)
	movq	_sdp_tx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sdp_tx_cq_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_ib_create_cq
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_sdp_warn
	movq	(%rbx), %rdi
	movl	(%r12), %esi
	callq	_free
	movq	$0, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%r15, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_sdp_arm_tx_cq
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_TX_SIZE,4,2                ## @SDP_TX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx ring create\n"

	.comm	_M_SDP,4,2                      ## @M_SDP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_sdp_tx_irq,4,2                 ## @sdp_tx_irq
	.comm	_sdp_tx_cq_event_handler,4,2    ## @sdp_tx_cq_event_handler
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate TX CQ: %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_tx_ring_create             ; -- Begin function sdp_tx_ring_create
	.p2align	2
_sdp_tx_ring_create:                    ; @sdp_tx_ring_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SDP_TX_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDP_TX_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	stp	wzr, wzr, [sp, #4]
	str	w8, [sp]
	ldr	w0, [x0, #40]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sdp_dbg
	add	x0, x19, #32
	add	x21, x19, #44
	mov	x1, x21
	mov	w2, #0
	bl	_callout_init_rw
	add	x0, x19, #48
	mov	x1, x21
	mov	w2, #0
	bl	_callout_init_rw
	add	x0, x19, #28
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #24
	mov	w1, #1
	bl	_atomic_set
	ldr	w8, [x22]
	lsl	w0, w8, #2
Lloh4:
	adrp	x21, _M_SDP@GOTPAGE
Lloh5:
	ldr	x21, [x21, _M_SDP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_malloc
	str	x0, [x19]
Lloh9:
	adrp	x8, _sdp_tx_irq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sdp_tx_irq@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _sdp_tx_cq_event_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sdp_tx_cq_event_handler@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x20
	mov	x3, x19
	bl	_ib_create_cq
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w0, [x19, #40]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_sdp_warn
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_free
	str	xzr, [x19]
	b	LBB0_3
LBB0_2:
	stp	xzr, x20, [x19, #8]
	mov	x0, x19
	bl	_sdp_arm_tx_cq
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_TX_SIZE,4,2                ; @SDP_TX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx ring create\n"

	.comm	_M_SDP,4,2                      ; @M_SDP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_sdp_tx_irq,4,2                 ; @sdp_tx_irq
	.comm	_sdp_tx_cq_event_handler,4,2    ; @sdp_tx_cq_event_handler
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate TX CQ: %d.\n"

.subsections_via_symbols
