	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpga_tx
_fpga_tx:                               ## @fpga_tx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_FLAGS_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_ioread32
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	notl	%ebx
	andl	(%r12), %ebx
	je	LBB0_20
## %bb.1:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %r15
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_solos_pop
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	sarl	%eax
	incb	%r14b
	cmpl	$1, %ebx
	movl	%eax, %ebx
	jbe	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	48(%r12), %rax
	movzbl	%r14b, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movq	%rbx, %rdi
	callq	_SKB_CB
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	callq	_pci_unmap_single
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_spin_lock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	40(%r12), %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_spin_unlock
	cmpq	$0, 24(%r12)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_SKB_CB
	movl	%ebx, (%rax)
	movq	%r13, %rdi
	callq	_SKB_CB
	movl	(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TX_DMA_ADDR
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	callq	_iowrite32
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-2, %eax
	movl	%r14d, %ecx
	roll	%cl, %eax
	andl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_TX_BUF
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	%eax, %edi
	callq	_memcpy_toio
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btsl	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_atmdebug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_info
	movq	%r13, %rdi
	callq	_print_buffer
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_SKB_CB
	movq	8(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_irq
	jmp	LBB0_16
LBB0_18:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	movq	_FLAGS_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_iowrite32
LBB0_20:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_ADDR,8,3                 ## @FLAGS_ADDR
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_atmdebug,8,3                   ## @atmdebug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transmitted: port %d\n"

	.no_dead_strip	_fpga_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpga_tx
_fpga_tx:                               ; @fpga_tx
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _FLAGS_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAGS_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x21, x0
	ldr	w8, [x20]
	bics	w28, w8, w0
	b.eq	LBB0_18
; %bb.1:
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w19, #0
	mov	w22, #0
	add	x23, x20, #32
Lloh3:
	adrp	x21, _atmdebug@GOTPAGE
Lloh4:
	ldr	x21, [x21, _atmdebug@GOTPAGEOFF]
Lloh5:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	bl	_atomic_inc
	mov	x0, x26
	mov	x1, x25
	bl	_solos_pop
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w8, w28, #1
	add	w19, w19, #1
	cmp	w28, #1
	mov	x28, x8
	b.ls	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w28, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #48]
	and	x27, x19, #0xff
	ldr	x25, [x8, x27, lsl #3]
	cbz	x25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x20, #16]
	mov	x0, x25
	bl	_SKB_CB
	ldr	w1, [x0]
	ldr	w2, [x25]
	ldr	w3, [x24]
	mov	x0, x26
	bl	_pci_unmap_single
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x20, #40]
	add	x0, x8, x27, lsl #2
	bl	_skb_dequeue
	cbz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x23
	bl	_spin_unlock
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #16]
	ldp	w2, w1, [x26]
	ldr	w3, [x24]
	bl	_pci_map_single
	mov	x27, x0
	mov	x0, x26
	bl	_SKB_CB
	str	w27, [x0]
	mov	x0, x26
	bl	_SKB_CB
	ldr	w26, [x0]
	ldr	x27, [x20, #8]
	and	w0, w19, #0xff
	bl	_TX_DMA_ADDR
	add	x1, x0, x27
	mov	x0, x26
	bl	_iowrite32
	cbz	x25, LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #16]
	and	w2, w19, #0xff
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x25
	bl	_print_buffer
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_SKB_CB
	ldr	x26, [x0, #8]
	cbnz	x26, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_dev_kfree_skb_irq
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	lsl	w8, w8, w19
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x23
	bl	_spin_unlock
	cbnz	x25, LBB0_10
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w1, w19, #0xff
	mov	x0, x20
	bl	_TX_BUF
	ldp	w2, w1, [x26]
	bl	_memcpy_toio
	mov	w8, #1
	lsl	w8, w8, w19
	orr	w22, w8, w22
	mov	x25, x26
	ldr	x8, [x21]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_16:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w21, [sp, #4]                   ; 4-byte Folded Reload
Lloh9:
	adrp	x9, _FLAGS_ADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLAGS_ADDR@GOTPAGEOFF]
	cbz	w22, LBB0_18
; %bb.17:
	ldr	x8, [x20, #8]
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_iowrite32
LBB0_18:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_ADDR,8,3                 ; @FLAGS_ADDR
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_atmdebug,8,3                   ; @atmdebug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transmitted: port %d\n"

	.no_dead_strip	_fpga_tx
.subsections_via_symbols
