	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enic_init_vnic_resources       ## -- Begin function enic_init_vnic_resources
	.p2align	4, 0x90
_enic_init_vnic_resources:              ## @enic_init_vnic_resources
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	56(%rdi), %edi
	callq	_vnic_dev_get_intr_mode
	xorl	%esi, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	orl	$2, %eax
	movl	$0, %r12d
	movl	$0, %r15d
	cmpl	$130, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %r15d
	addl	$-2, %r15d
	movl	$1, %r12d
LBB0_2:
	cmpl	$0, 4(%r13)
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rdi
	addq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_vnic_rq_init
	incq	%rbx
	movl	4(%r13), %esi
	addq	$4, %r14
	cmpq	%rsi, %rbx
	jb	LBB0_4
LBB0_5:
	cmpl	$0, 8(%r13)
	je	LBB0_9
## %bb.6:
	movq	40(%r13), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_vnic_wq_init
	cmpl	$2, 8(%r13)
	jb	LBB0_9
## %bb.7:
	movl	$1, %ebx
	movl	$4, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %esi
	addl	%ebx, %esi
	movq	40(%r13), %rdi
	addq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_vnic_wq_init
	incq	%rbx
	movl	8(%r13), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	cmpl	$0, 12(%r13)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_12
## %bb.10:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$128, %r14d
	movl	$0, %eax
	cmovel	%ebx, %eax
	movq	32(%r13), %rdi
	addq	%r15, %rdi
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$0
	pushq	%rax
	pushq	$0
	pushq	$1
	pushq	$1
	callq	_vnic_cq_init
	addq	$48, %rsp
	incq	%rbx
	movl	12(%r13), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_11
LBB0_12:
	andl	$-2, %r14d
	xorl	%r15d, %r15d
	cmpl	$128, %r14d
	sete	%al
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.13:
	movb	%al, %r15b
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	addq	%r14, %rdi
	movl	16(%r13), %edx
	movl	20(%r13), %esi
	movl	%r15d, %ecx
	callq	_vnic_intr_init
	incq	%rbx
	movl	(%r13), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enic_init_vnic_resources       ; -- Begin function enic_init_vnic_resources
	.p2align	2
_enic_init_vnic_resources:              ; @enic_init_vnic_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0, #56]
	bl	_vnic_dev_get_intr_mode
	mov	x20, x0
	orr	w8, w0, #0x2
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	sub	w22, w8, #2
	mov	w21, #1
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
LBB0_2:
	mov	x24, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x0, x8, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_vnic_rq_init
	add	x23, x23, #1
	ldr	w1, [x19, #4]
	add	x24, x24, #4
	cmp	x23, x1
	b.lo	LBB0_3
; %bb.4:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
	b	LBB0_10
LBB0_5:
	mov	w21, #0
	mov	w22, #0
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_2
LBB0_6:
	mov	w1, #0
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
LBB0_7:
	ldr	x0, [x19, #40]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	mov	x3, x22
	bl	_vnic_wq_init
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lo	LBB0_10
; %bb.8:
	mov	w23, #1
	mov	w24, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	add	w1, w23, w8
	ldr	x8, [x19, #40]
	add	x0, x8, x24
	mov	x2, x21
	mov	x3, x22
	bl	_vnic_wq_init
	add	x23, x23, #1
	ldr	w8, [x19, #8]
	add	x24, x24, #4
	cmp	x23, x8
	b.lo	LBB0_9
LBB0_10:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x21, #0
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, #128
	csel	w8, w22, wzr, eq
	ldr	x9, [x19, #32]
	add	x0, x9, x21
	stp	w8, wzr, [sp, #4]
	str	wzr, [sp]
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	mov	w6, #1
	mov	w7, #1
	bl	_vnic_cq_init
	add	x22, x22, #1
	ldr	w8, [x19, #12]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_12
LBB0_13:
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	cset	w20, eq
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.14:
	mov	x21, #0
	mov	x22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	ldp	w2, w1, [x19, #16]
	mov	x3, x20
	bl	_vnic_intr_init
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_15
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
