	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxio_init_qpid_fifo
_cxio_init_qpid_fifo:                   ## @cxio_init_qpid_fifo
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	8(%rbx), %rdi
	movq	_T3_MAX_NUM_QP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	shll	$2, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_1:
	movl	$16, -36(%rbp)
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	cmpl	$17, %eax
	jl	LBB0_6
## %bb.2:
	movl	$16, %ecx
	leaq	-36(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movl	%ecx, -36(%rbp)
	cmpl	%eax, %ecx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, (%rbx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_kfifo_in
	movl	-36(%rbp), %ecx
	movl	(%r12), %eax
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T3_MAX_NUM_QP,4,2              ## @T3_MAX_NUM_QP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cxio_init_qpid_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxio_init_qpid_fifo
_cxio_init_qpid_fifo:                   ; @cxio_init_qpid_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #4
	bl	_spin_lock_init
Lloh0:
	adrp	x20, _T3_MAX_NUM_QP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _T3_MAX_NUM_QP@GOTPAGEOFF]
	ldr	x0, [x19, #8]
	ldr	w8, [x20]
	lsl	w1, w8, #2
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_kfifo_alloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	w8, #16
	str	w8, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #17
	b.lt	LBB0_7
; %bb.3:
	mov	w9, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	str	w9, [sp, #12]
	cmp	w9, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	add	x1, sp, #12
	mov	w2, #4
	bl	_kfifo_in
	ldr	w9, [sp, #12]
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_T3_MAX_NUM_QP,4,2              ; @T3_MAX_NUM_QP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cxio_init_qpid_fifo
.subsections_via_symbols
