	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_wq_service
_enic_wq_service:                       ## @enic_wq_service
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rsi, %r12
	callq	_vnic_dev_priv
	movq	%rax, %r15
	leaq	(,%r14,4), %rbx
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_spin_lock
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movq	_enic_wq_free_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_vnic_wq_service
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_netdev_get_tx_queue
	movl	%eax, %edi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	callq	_vnic_wq_desc_avail
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	_ENIC_DESC_MAX_SPLITS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_3
## %bb.2:
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_netif_wake_subqueue
LBB0_3:
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_enic_wq_free_buf,4,2           ## @enic_wq_free_buf
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.comm	_ENIC_DESC_MAX_SPLITS,8,3       ## @ENIC_DESC_MAX_SPLITS
	.no_dead_strip	_enic_wq_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_wq_service
_enic_wq_service:                       ; @enic_wq_service
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x23, x1
	bl	_vnic_dev_priv
	mov	x20, x0
	ldr	x8, [x0]
	lsl	x24, x19, #2
	add	x0, x8, x24
	bl	_spin_lock
	ldr	x8, [x20, #16]
	add	x0, x8, x24
Lloh0:
	adrp	x8, _enic_wq_free_buf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _enic_wq_free_buf@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x23
	mov	x2, x22
	mov	x4, x21
	bl	_vnic_wq_service
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_netdev_get_tx_queue
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	add	x0, x8, x19, lsl #2
	bl	_vnic_wq_desc_avail
Lloh3:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ENIC_DESC_MAX_SPLITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENIC_DESC_MAX_SPLITS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_netif_wake_subqueue
LBB0_3:
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	bl	_spin_unlock
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_enic_wq_free_buf,4,2           ; @enic_wq_free_buf
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.comm	_ENIC_DESC_MAX_SPLITS,8,3       ; @ENIC_DESC_MAX_SPLITS
	.no_dead_strip	_enic_wq_service
.subsections_via_symbols
