	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_process_cmd_ring        ## -- Begin function netxen_process_cmd_ring
	.p2align	4, 0x90
_netxen_process_cmd_ring:               ## @netxen_process_cmd_ring
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %r14
	movq	24(%rdi), %rbx
	movq	32(%rdi), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_trylock_bh
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r15
	addq	$8, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	16(%rax)
	movq	(%r15), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, (%r15)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	%r14, %r13
	movq	%rbx, %r14
	movq	%rax, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_get_next_index
	movq	%rax, %r12
	incl	%r15d
	movq	_MAX_STATUS_HANDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rax
	leaq	(%r12,%r12,2), %rcx
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	16(%rax,%rcx,8), %r15
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	movq	%rcx, %r12
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rax, %rbx
	callq	_pci_unmap_single
	movq	$0, (%r15)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpl	$2, (%rbx,%r12,8)
	movq	%r14, %rbx
	movq	%r13, %r14
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r13
	addq	$16, %r15
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	callq	_pci_unmap_page
	movq	$0, (%r15)
	incl	%r12d
	addq	$16, %r15
	cmpl	(%r13), %r12d
	jl	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	testl	%r15d, %r15d
	jne	LBB0_12
	jmp	LBB0_19
LBB0_10:
	movq	%r12, (%rbx)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	callq	_netxen_tx_avail
	movq	_TX_STOP_THRESH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_netif_wake_queue
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
LBB0_18:
	movq	%r14, %rbx
LBB0_19:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	xorl	%ebx, %ebx
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	sete	%bl
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_20:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_MAX_STATUS_HANDLE,4,2          ## @MAX_STATUS_HANDLE
	.comm	_TX_STOP_THRESH,8,3             ## @TX_STOP_THRESH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_process_cmd_ring        ; -- Begin function netxen_process_cmd_ring
	.p2align	2
_netxen_process_cmd_ring:               ; @netxen_process_cmd_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldp	x21, x23, [x0, #32]
	ldr	x20, [x0, #24]
	bl	_spin_trylock_bh
	cbz	w0, LBB0_9
; %bb.1:
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldp	x24, x8, [x20]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w25, #0
	mov	w22, #24
Lloh0:
	adrp	x28, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x0, [x21]
	bl	_dev_kfree_skb_any
	str	xzr, [x21]
	mov	w22, #24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20, #16]
	mov	x0, x24
	bl	_get_next_index
	mov	x24, x0
	add	w25, w25, #1
Lloh2:
	adrp	x8, _MAX_STATUS_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_STATUS_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	madd	x21, x24, x22, x8
	ldr	x9, [x21, #8]!
	cbz	x9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x27, x24, x22, x8
	ldr	x22, [x27, #16]
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	ldr	w3, [x28]
	mov	x0, x23
	bl	_pci_unmap_single
	str	xzr, [x22]
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	mov	w26, #1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	ldr	w3, [x28]
	mov	x0, x23
	bl	_pci_unmap_page
	str	xzr, [x22], #16
	add	w26, w26, #1
	ldr	w8, [x27]
	cmp	w26, w8
	b.lt	LBB0_8
	b	LBB0_2
LBB0_9:
	mov	w20, #1
	b	LBB0_19
LBB0_10:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x20]
	cbnz	w25, LBB0_12
	b	LBB0_18
LBB0_11:
	str	x24, [x20]
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
LBB0_12:
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_18
; %bb.13:
	bl	_smp_mb
	mov	x0, x21
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_netxen_tx_avail
Lloh5:
	adrp	x8, _TX_STOP_THRESH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_STOP_THRESH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_netif_wake_queue
LBB0_17:
	str	xzr, [x19, #8]
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x0
	cset	w20, eq
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_MAX_STATUS_HANDLE,4,2          ; @MAX_STATUS_HANDLE
	.comm	_TX_STOP_THRESH,8,3             ; @TX_STOP_THRESH
.subsections_via_symbols
