	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_setup_loopback_qp         ## -- Begin function scif_setup_loopback_qp
	.p2align	4, 0x90
_scif_setup_loopback_qp:                ## @scif_setup_loopback_qp
	.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	%rdi, %r14
	callq	_scif_setup_intr_wq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_scif_info@GOTPCREL(%rip), %r13
	leaq	24(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movl	20(%r13), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	20(%r13), %edi
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_scif_loopb_wq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r13), %rdi
	callq	_INIT_WORK
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$28, %edi
	callq	_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_SCIFEP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	movq	_SCIF_NODE_QP_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r15
	movq	%r12, %rax
	leaq	12(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_get_count_order
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_scif_rb_init
	movq	%rbx, %r12
	addq	$8, %r12
	movq	_SCIF_NODE_QP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_count_order
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_scif_rb_init
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_scif_peer_register_device
	movq	%r14, 8(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_7:
	movl	4(%r13), %edi
	callq	_destroy_workqueue
LBB0_8:
	negl	%ebx
	movq	%r14, %rdi
	callq	_scif_destroy_intr_wq
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_info,32,3                 ## @scif_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCIF LOOPB %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_scif_loopb_wq_handler,4,2      ## @scif_loopb_wq_handler
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SCIFEP_MAGIC,4,2               ## @SCIFEP_MAGIC
	.comm	_SCIF_NODE_QP_SIZE,4,2          ## @SCIF_NODE_QP_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_setup_loopback_qp         ; -- Begin function scif_setup_loopback_qp
	.p2align	2
_scif_setup_loopback_qp:                ; @scif_setup_loopback_qp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_scif_setup_intr_wq
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x24, _scif_info@GOTPAGE
Lloh1:
	ldr	x24, [x24, _scif_info@GOTPAGEOFF]
	add	x0, x24, #24
	bl	_INIT_LIST_HEAD
	ldr	w0, [x24, #20]
	ldr	w3, [x19]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x24, #20]
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x24, #4]
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _scif_loopb_wq_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _scif_loopb_wq_handler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x0, x24, #16
	bl	_INIT_WORK
Lloh7:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #28
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh9:
	adrp	x8, _SCIFEP_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCIFEP_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	add	x0, x0, #20
	bl	_spin_lock_init
	add	x0, x20, #16
	bl	_spin_lock_init
Lloh12:
	adrp	x25, _SCIF_NODE_QP_SIZE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _SCIF_NODE_QP_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x21]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	add	x22, x20, #12
	add	x23, x20, #4
	ldr	w0, [x25]
	bl	_get_count_order
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	bl	_scif_rb_init
	add	x22, x20, #8
	ldr	w0, [x25]
	bl	_get_count_order
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	bl	_scif_rb_init
	ldr	w8, [x19]
	str	w8, [x24]
	mov	x0, x19
	bl	_scif_peer_register_device
	mov	w20, #0
	str	x19, [x24, #8]
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_8:
	ldr	w0, [x24, #4]
	bl	_destroy_workqueue
LBB0_9:
	neg	w20, w20
	mov	x0, x19
	bl	_scif_destroy_intr_wq
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_info,32,3                 ; @scif_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCIF LOOPB %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_scif_loopb_wq_handler,4,2      ; @scif_loopb_wq_handler
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SCIFEP_MAGIC,4,2               ; @SCIFEP_MAGIC
	.comm	_SCIF_NODE_QP_SIZE,4,2          ; @SCIF_NODE_QP_SIZE
.subsections_via_symbols
