	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_transport_init_queue
_ntb_transport_init_queue:              ## @ntb_transport_init_queue
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_QP_TO_MW
	movl	%eax, %ebx
	movq	32(%r12), %r14
	movl	%r13d, %eax
	imulq	$120, %rax, %r15
	leaq	(%r14,%r15), %rdi
	movl	%r13d, (%r14,%r15)
	movq	%r12, 112(%r14,%r15)
	movl	24(%r12), %eax
	movl	%eax, 104(%r14,%r15)
	movl	$0, 4(%r14,%r15)
	movq	$0, 96(%r14,%r15)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ntb_qp_link_down_reset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	divl	%r10d
	movl	%eax, %esi
	xorl	%r8d, %r8d
	cmpl	%edx, %ebx
	adcl	$0, %esi
	movq	16(%r12), %rcx
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %rdi
	movq	(%rcx,%rdi,8), %rdx
	movq	16(%rcx,%rdi,8), %r9
	movq	_max_mw_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %rdx
	movl	%ebx, %eax
	cmovlel	%edx, %eax
	testq	%rbx, %rbx
	cmovel	%edx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%r10d
                                        ## kill: def $eax killed $eax def $rax
	imull	%ebx, %eax
	movl	%ebx, 8(%r14,%r15)
	movq	8(%rcx,%rdi,8), %rdx
	addq	%rax, %rdx
	movq	%rdx, 72(%r14,%r15)
	je	LBB0_1
## %bb.2:
	addq	%rax, %r9
	movq	%r9, 88(%r14,%r15)
	je	LBB0_3
## %bb.4:
	addl	$-4, %ebx
	addq	%rbx, %rdx
	movq	%rdx, 80(%r14,%r15)
	movq	_transport_mtu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	shrl	%esi
	callq	_min
	movl	%eax, %ecx
	movl	%eax, 12(%r14,%r15)
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, 16(%r14,%r15)
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	movq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_debugfs_create_dir
	movq	%rax, 64(%r14,%r15)
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	_ntb_qp_debugfs_stats@GOTPCREL(%rip), %r8
	movq	%rax, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r8d
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	subl	(%rax), %r8d
	jmp	LBB0_8
LBB0_6:
	movq	$0, 64(%r14,%r15)
	xorl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movq	%rax, 56(%r14,%r15)
	leaq	(%r14,%r15), %rdi
	addq	$52, %rdi
	movq	_ntb_qp_link_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	(%r14,%r15), %rdi
	addq	$48, %rdi
	movq	_ntb_qp_link_cleanup_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	(%r14,%r15), %rdi
	addq	$44, %rdi
	callq	_spin_lock_init
	leaq	(%r14,%r15), %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	leaq	(%r14,%r15), %rdi
	addq	$36, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r14,%r15), %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r14,%r15), %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r14,%r15), %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r14,%r15), %rdi
	addq	$20, %rdi
	movq	_ntb_transport_rxc_db@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	xorl	%r8d, %r8d
LBB0_8:
	movl	%r8d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_mw_size,8,3                ## @max_mw_size
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_transport_mtu,4,2              ## @transport_mtu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qp%d"

L_.str.1:                               ## @.str.1
	.asciz	"stats"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_ntb_qp_debugfs_stats,4,2       ## @ntb_qp_debugfs_stats
	.comm	_ntb_qp_link_work,4,2           ## @ntb_qp_link_work
	.comm	_ntb_qp_link_cleanup_work,4,2   ## @ntb_qp_link_cleanup_work
	.comm	_ntb_transport_rxc_db,4,2       ## @ntb_transport_rxc_db
	.no_dead_strip	_ntb_transport_init_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_transport_init_queue
_ntb_transport_init_queue:              ; @ntb_transport_init_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	ldp	w24, w25, [x0]
	bl	_QP_TO_MW
	mov	x22, x0
	ldr	x23, [x20, #32]
	mov	w8, #120
	umaddl	x19, w21, w8, x23
	str	x20, [x19, #112]
	ldr	w8, [x20, #24]
	str	w8, [x19, #104]
	stp	w21, wzr, [x19]
	str	xzr, [x19, #96]
	mov	x0, x19
	bl	_ntb_qp_link_down_reset
	udiv	w8, w25, w24
	msub	w9, w8, w24, w25
	cmp	w22, w9
	cinc	w9, w8, lo
	ldr	x8, [x20, #16]
	mov	w10, #24
	umaddl	x10, w22, w10, x8
Lloh0:
	adrp	x11, _max_mw_size@GOTPAGE
Lloh1:
	ldr	x11, [x11, _max_mw_size@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	x12, [x10]
	ldp	x10, x8, [x10, #8]
	cmp	x12, x11
	ccmp	x11, #0, #4, gt
	csel	w11, w11, w12, ne
	udiv	w9, w11, w9
	udiv	w11, w21, w24
	mul	w11, w11, w9
	str	w9, [x19, #8]
	adds	x10, x10, x11
	str	x10, [x19, #72]
	b.eq	LBB0_4
; %bb.1:
	mov	w22, w21
	mov	w12, #120
	madd	x12, x22, x12, x23
	adds	x8, x8, x11
	str	x8, [x12, #88]
	b.eq	LBB0_4
; %bb.2:
	sub	w24, w9, #4
	add	x8, x10, x24
	mov	w9, #120
	madd	x25, x22, x9, x23
	str	x8, [x25, #80]
Lloh3:
	adrp	x8, _transport_mtu@GOTPAGE
Lloh4:
	ldr	x8, [x8, _transport_mtu@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	lsr	w1, w24, #1
	bl	_min
	udiv	w8, w24, w0
	stp	w0, w8, [x25, #12]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	w1, #4
	mov	x3, x21
	bl	_snprintf
	ldr	x1, [x20, #8]
	add	x0, sp, #12
	bl	_debugfs_create_dir
	mov	x2, x0
	mov	w8, #120
	madd	x8, x22, x8, x23
	str	x0, [x8, #64]
Lloh8:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh13:
	adrp	x4, _ntb_qp_debugfs_stats@GOTPAGE
Lloh14:
	ldr	x4, [x4, _ntb_qp_debugfs_stats@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	x0, #0
	mov	w8, #120
	madd	x8, x22, x8, x23
	str	xzr, [x8, #64]
LBB0_6:
	mov	w8, #120
	madd	x20, x22, x8, x23
	str	x0, [x20, #56]
	add	x0, x20, #52
Lloh18:
	adrp	x8, _ntb_qp_link_work@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ntb_qp_link_work@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #48
Lloh21:
	adrp	x8, _ntb_qp_link_cleanup_work@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ntb_qp_link_cleanup_work@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #44
	bl	_spin_lock_init
	add	x0, x20, #40
	bl	_spin_lock_init
	add	x0, x20, #36
	bl	_INIT_LIST_HEAD
	add	x0, x20, #32
	bl	_INIT_LIST_HEAD
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	add	x0, x20, #20
Lloh24:
	adrp	x8, _ntb_transport_rxc_db@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ntb_transport_rxc_db@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_max_mw_size,8,3                ; @max_mw_size
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_transport_mtu,4,2              ; @transport_mtu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qp%d"

l_.str.1:                               ; @.str.1
	.asciz	"stats"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_ntb_qp_debugfs_stats,4,2       ; @ntb_qp_debugfs_stats
	.comm	_ntb_qp_link_work,4,2           ; @ntb_qp_link_work
	.comm	_ntb_qp_link_cleanup_work,4,2   ; @ntb_qp_link_cleanup_work
	.comm	_ntb_transport_rxc_db,4,2       ; @ntb_transport_rxc_db
	.no_dead_strip	_ntb_transport_init_queue
.subsections_via_symbols
