	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am79c961_tx
_am79c961_tx:                           ## @am79c961_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movq	_TMD_OWN@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	20(%r12)
	addl	$4, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_am_readword
	subw	%ax, 16(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %r15d
	cmpl	4(%r12), %r15d
	je	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %ebx
	leal	(%rbx,%r15,8), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	callq	_am_readword
	testl	%eax, (%r13)
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %ecx
	incl	%ecx
	movl	%ecx, (%r12)
	movq	_TX_BUFFERS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$0, %edx
	cmovgel	%edx, %ecx
	leal	(%rbx,%r15,8), %ebx
	movl	%ecx, (%r12)
	movq	_TMD_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	36(%r12)
	addl	$6, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_am_readword
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_am_writeword
	movq	_TST_RTRY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$16, 12(%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TST_LCOL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	32(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TST_LCAR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TST_UFLO@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%r12)
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TMD_OWN,4,2                    ## @TMD_OWN
	.comm	_TX_BUFFERS,4,2                 ## @TX_BUFFERS
	.comm	_TMD_ERR,4,2                    ## @TMD_ERR
	.comm	_TST_RTRY,4,2                   ## @TST_RTRY
	.comm	_TST_LCOL,4,2                   ## @TST_LCOL
	.comm	_TST_LCAR,4,2                   ## @TST_LCAR
	.comm	_TST_UFLO,4,2                   ## @TST_UFLO
	.no_dead_strip	_am79c961_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am79c961_tx
_am79c961_tx:                           ; @am79c961_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x23, _TMD_OWN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TMD_OWN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TX_BUFFERS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TX_BUFFERS@GOTPAGEOFF]
Lloh4:
	adrp	x25, _TMD_ERR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TMD_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x27, _TST_LCOL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TST_LCOL@GOTPAGEOFF]
Lloh8:
	adrp	x28, _TST_LCAR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TST_LCAR@GOTPAGEOFF]
Lloh10:
	adrp	x26, _TST_UFLO@GOTPAGE
Lloh11:
	ldr	x26, [x26, _TST_UFLO@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	add	w1, w21, #4
	mov	x0, x19
	bl	_am_readword
	ldrh	w8, [x20, #16]
	sub	w8, w8, w0
	strh	w8, [x20, #16]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #8]
	add	w21, w9, w8, lsl #3
	add	w1, w21, #2
	mov	x0, x19
	bl	_am_readword
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	ldr	w10, [x24]
	cmp	w9, w10
	csinc	w8, wzr, w8, ge
	str	w8, [x20]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
	add	w22, w21, #6
	mov	x0, x19
	mov	x1, x22
	bl	_am_readword
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_am_writeword
Lloh12:
	adrp	x8, _TST_RTRY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TST_RTRY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #16
	str	w8, [x20, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	b	LBB0_2
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TMD_OWN,4,2                    ; @TMD_OWN
	.comm	_TX_BUFFERS,4,2                 ; @TX_BUFFERS
	.comm	_TMD_ERR,4,2                    ; @TMD_ERR
	.comm	_TST_RTRY,4,2                   ; @TST_RTRY
	.comm	_TST_LCOL,4,2                   ; @TST_LCOL
	.comm	_TST_LCAR,4,2                   ; @TST_LCAR
	.comm	_TST_UFLO,4,2                   ; @TST_UFLO
	.no_dead_strip	_am79c961_tx
.subsections_via_symbols
