	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function netxen_send_cmd_descs
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_netxen_send_cmd_descs:                 ## @netxen_send_cmd_descs
	.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), %rax
	movq	_NETXEN_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movl	4(%r15), %edi
	callq	___netif_tx_lock_bh
	movl	(%r15), %r12d
	movq	%r15, %rdi
	callq	_netxen_tx_avail
	cmpl	%ebx, %eax
	jg	LBB0_5
## %bb.2:
	movl	4(%r15), %edi
	callq	_netif_tx_stop_queue
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r15, %rdi
	callq	_netxen_tx_avail
	cmpl	%ebx, %eax
	jle	LBB0_11
## %bb.3:
	movq	%r15, %rdi
	callq	_netxen_tx_avail
	movq	_TX_STOP_THRESH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
## %bb.4:
	movl	4(%r15), %edi
	callq	_netif_tx_wake_queue
LBB0_5:
	movl	%ebx, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movslq	%r12d, %rbx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rcx)
	leaq	(,%rbx,4), %rdi
	addq	16(%r15), %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_get_next_index
	movl	%eax, %r12d
	addq	$4, %r13
	decq	%r14
	jne	LBB0_6
## %bb.7:
	movl	%r12d, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_netxen_nic_update_cmd_producer
	movl	4(%r15), %edi
	callq	___netif_tx_unlock_bh
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	4(%r15), %edi
	callq	___netif_tx_unlock_bh
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ## @NETXEN_ADAPTER_UP_MAGIC
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TX_STOP_THRESH,4,2             ## @TX_STOP_THRESH
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_netxen_send_cmd_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_send_cmd_descs
_netxen_send_cmd_descs:                 ; @netxen_send_cmd_descs
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #4]
	bl	___netif_tx_lock_bh
	ldr	w22, [x21]
	mov	x0, x21
	bl	_netxen_tx_avail
	cmp	w0, w23
	b.gt	LBB0_5
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_netif_tx_stop_queue
	bl	_smp_mb
	mov	x0, x21
	bl	_netxen_tx_avail
	cmp	w0, w23
	b.le	LBB0_11
; %bb.3:
	mov	x0, x21
	bl	_netxen_tx_avail
Lloh3:
	adrp	x8, _TX_STOP_THRESH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_STOP_THRESH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_5
; %bb.4:
	ldr	w0, [x21, #4]
	bl	_netif_tx_wake_queue
LBB0_5:
	mov	w23, w23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x8, x8, w22, sxtw #4
	stp	xzr, xzr, [x8]
	ldr	x8, [x21, #16]
	add	x0, x8, w22, sxtw #2
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_get_next_index
	mov	x22, x0
	add	x20, x20, #4
	subs	x23, x23, #1
	b.ne	LBB0_6
; %bb.7:
	str	w22, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_netxen_nic_update_cmd_producer
	ldr	w0, [x21, #4]
	bl	___netif_tx_unlock_bh
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	ldr	w0, [x21, #4]
	bl	___netif_tx_unlock_bh
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ; @NETXEN_ADAPTER_UP_MAGIC
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TX_STOP_THRESH,4,2             ; @TX_STOP_THRESH
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_netxen_send_cmd_descs
.subsections_via_symbols
