	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_uk_init               ## -- Begin function i40iw_qp_uk_init
	.p2align	4, 0x90
_i40iw_qp_uk_init:                      ## @i40iw_qp_uk_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	_I40IW_MAX_WQ_FRAGMENT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	jg	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpq	%rax, 8(%rsi)
	jle	LBB0_3
LBB0_1:
	movq	_I40IW_ERR_INVALID_FRAG_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	movl	64(%rbx), %esi
	leaq	-32(%rbp), %rdx
	callq	_i40iw_get_wqe_shift
	movl	60(%rbx), %eax
	movl	%eax, 112(%r14)
	movups	44(%rbx), %xmm0
	movups	%xmm0, 96(%r14)
	movl	16(%rbx), %r15d
	movl	%r15d, (%r14)
	movups	28(%rbx), %xmm0
	movups	%xmm0, 80(%r14)
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movb	-32(%rbp), %cl
	shll	%cl, %r15d
	movl	76(%r14), %edi
	movl	%r15d, %esi
	callq	_I40IW_RING_INIT
	movl	72(%r14), %edi
	movl	%r15d, %esi
	callq	_I40IW_RING_INIT
	movl	76(%r14), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_I40IW_RING_MOVE_HEAD
	movl	76(%r14), %edi
	callq	_I40IW_RING_MOVE_TAIL
	movl	72(%r14), %edi
	xorl	%esi, %esi
	callq	_I40IW_RING_MOVE_HEAD
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r14)
	movl	$1, 24(%r14)
	movq	$0, 64(%r14)
	cmpl	$0, 56(%r14)
	jne	LBB0_8
## %bb.4:
	movl	20(%rbx), %esi
	movl	%esi, 28(%r14)
	movq	8(%rbx), %rax
	movq	%rax, 32(%r14)
	movl	52(%r14), %edi
	callq	_I40IW_RING_INIT
	cmpl	$4, 24(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	-28(%rbp), %rdx
	xorl	%esi, %esi
	callq	_i40iw_get_wqe_shift
	movl	-28(%rbp), %ecx
	jmp	LBB0_7
LBB0_6:
	movq	_I40IW_MAX_RQ_WQE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
LBB0_7:
	movl	%ecx, 40(%r14)
	movl	$4, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, 44(%r14)
LBB0_8:
	movq	_iw_qp_uk_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MAX_WQ_FRAGMENT_COUNT,8,3 ## @I40IW_MAX_WQ_FRAGMENT_COUNT
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ## @I40IW_ERR_INVALID_FRAG_COUNT
	.comm	_I40IW_MAX_RQ_WQE_SHIFT,4,2     ## @I40IW_MAX_RQ_WQE_SHIFT
	.comm	_iw_qp_uk_ops,4,2               ## @iw_qp_uk_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_uk_init               ; -- Begin function i40iw_qp_uk_init
	.p2align	2
_i40iw_qp_uk_init:                      ; @i40iw_qp_uk_init
	.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	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _I40IW_MAX_WQ_FRAGMENT_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MAX_WQ_FRAGMENT_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	x9, [x1, #8]
	cmp	x9, x8
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
	ldr	w1, [x20, #64]
	add	x2, sp, #12
	bl	_i40iw_get_wqe_shift
	ldr	w8, [x20, #60]
	str	w8, [x19, #112]
	ldur	q0, [x20, #44]
	str	q0, [x19, #96]
	ldr	w8, [x20, #16]
	str	w8, [x19]
	ldur	q0, [x20, #28]
	str	q0, [x19, #80]
	ldr	x9, [x20]
	str	x9, [x19, #8]
	ldr	w9, [sp, #12]
	lsl	w21, w8, w9
	ldr	w0, [x19, #76]
	mov	x1, x21
	bl	_I40IW_RING_INIT
	ldr	w0, [x19, #72]
	mov	x1, x21
	bl	_I40IW_RING_INIT
	ldr	w0, [x19, #76]
	mov	w1, #0
	bl	_I40IW_RING_MOVE_HEAD
	ldr	w0, [x19, #76]
	bl	_I40IW_RING_MOVE_TAIL
	ldr	w0, [x19, #72]
	mov	w1, #0
	bl	_I40IW_RING_MOVE_HEAD
	movi.2s	v0, #1
	str	d0, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #24]
	str	xzr, [x19, #64]
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_8
; %bb.4:
	ldr	w1, [x20, #20]
	str	w1, [x19, #28]
	ldr	x8, [x20, #8]
	str	x8, [x19, #32]
	ldr	w0, [x19, #52]
	bl	_I40IW_RING_INIT
	ldr	w8, [x20, #24]
	cmp	w8, #4
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x20, #8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_i40iw_get_wqe_shift
	ldr	w8, [sp, #8]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _I40IW_MAX_RQ_WQE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_MAX_RQ_WQE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_7:
	mov	w9, #4
	lsl	w9, w9, w8
	stp	w8, w9, [x19, #40]
LBB0_8:
	mov	w0, #0
Lloh9:
	adrp	x8, _iw_qp_uk_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iw_qp_uk_ops@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MAX_WQ_FRAGMENT_COUNT,8,3 ; @I40IW_MAX_WQ_FRAGMENT_COUNT
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ; @I40IW_ERR_INVALID_FRAG_COUNT
	.comm	_I40IW_MAX_RQ_WQE_SHIFT,4,2     ; @I40IW_MAX_RQ_WQE_SHIFT
	.comm	_iw_qp_uk_ops,4,2               ; @iw_qp_uk_ops
.subsections_via_symbols
