	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hfi1_vnic_sdma_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hfi1_vnic_sdma_init
	.p2align	4, 0x90
_hfi1_vnic_sdma_init:                   ## @hfi1_vnic_sdma_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movl	$24, %ebx
	movl	$8, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%rdi), %rax
	addq	$8, %r14
	addq	$64, %rbx
	addq	$64, %r13
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %r12
	leaq	(%r12,%rbx), %rdi
	movq	_hfi1_vnic_sdma_sleep@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_hfi1_vnic_sdma_wakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iowait_init
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	leaq	(%rcx,%r14), %rdx
	movq	%rdx, 32(%r12,%r14,8)
	movq	%rax, 56(%r12,%r14,8)
	movq	%rdi, 48(%r12,%r14,8)
	movl	%r15d, (%r12,%r14,8)
	movq	_HFI1_VNIC_SDMA_Q_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12,%r14,8)
	movq	(%rcx,%r15,8), %rax
	movq	_HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	_HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12,%r14,8)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_iowait_get_ib_work
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_list_add_tail
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hfi1_vnic_sdma_sleep,4,2       ## @hfi1_vnic_sdma_sleep
	.comm	_hfi1_vnic_sdma_wakeup,4,2      ## @hfi1_vnic_sdma_wakeup
	.comm	_HFI1_VNIC_SDMA_Q_ACTIVE,4,2    ## @HFI1_VNIC_SDMA_Q_ACTIVE
	.comm	_HFI1_VNIC_SDMA_DESC_WTRMRK,8,3 ## @HFI1_VNIC_SDMA_DESC_WTRMRK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_vnic_sdma_init            ; -- Begin function hfi1_vnic_sdma_init
	.p2align	2
_hfi1_vnic_sdma_init:                   ; @hfi1_vnic_sdma_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x23, #0
	mov	w24, #32
Lloh0:
	adrp	x21, _hfi1_vnic_sdma_sleep@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hfi1_vnic_sdma_sleep@GOTPAGEOFF]
Lloh2:
	adrp	x26, _hfi1_vnic_sdma_wakeup@GOTPAGE
Lloh3:
	ldr	x26, [x26, _hfi1_vnic_sdma_wakeup@GOTPAGEOFF]
Lloh4:
	adrp	x28, _HFI1_VNIC_SDMA_Q_ACTIVE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HFI1_VNIC_SDMA_Q_ACTIVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	add	x24, x24, #64
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x25, x8, x24
	sub	x20, x25, #8
	ldr	w4, [x21]
	ldr	w5, [x26]
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x6, #0
	mov	x7, #0
	bl	_iowait_init
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	add	x10, x9, x22
	str	x10, [x25]
	stp	x19, x8, [x25, #16]
	stur	w23, [x25, #-32]
	ldr	w8, [x28]
	str	w8, [x25, #8]
	ldr	x8, [x9, x23, lsl #3]
Lloh6:
	adrp	x9, _HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x26
	mov	x26, x21
	sub	x21, x25, #24
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh9:
	adrp	x8, _HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFI1_VNIC_SDMA_DESC_WTRMRK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stur	x8, [x25, #-16]
	mov	x0, x20
	bl	_iowait_get_ib_work
	mov	x1, x0
	mov	x0, x21
	mov	x21, x26
	mov	x26, x27
	bl	_list_add_tail
	b	LBB0_2
LBB0_5:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_hfi1_vnic_sdma_sleep,4,2       ; @hfi1_vnic_sdma_sleep
	.comm	_hfi1_vnic_sdma_wakeup,4,2      ; @hfi1_vnic_sdma_wakeup
	.comm	_HFI1_VNIC_SDMA_Q_ACTIVE,4,2    ; @HFI1_VNIC_SDMA_Q_ACTIVE
	.comm	_HFI1_VNIC_SDMA_DESC_WTRMRK,8,3 ; @HFI1_VNIC_SDMA_DESC_WTRMRK
.subsections_via_symbols
