	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am79c961_sendpacket
_am79c961_sendpacket:                   ## @am79c961_sendpacket
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %r14d
	movl	4(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %esi
	leal	1(%r14), %ecx
	movq	_TX_BUFFERS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %ecx
	cmovael	%ebx, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r13, %rdi
	callq	_am_writebuffer
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14,8), %esi
	addl	$4, %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	subl	(%r15), %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_am_writeword
	movq	_TMD_OWN@GOTPCREL(%rip), %r15
	movq	_TMD_STP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r15), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14,8), %esi
	addl	$2, %esi
	movq	_TMD_ENP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_am_writeword
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r13), %edi
	movq	_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR0_TDMD@GOTPCREL(%rip), %rax
	movq	_CSR0_IENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_write_rreg
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	leal	(%rcx,%rax,8), %esi
	addl	$2, %esi
	movq	%r13, %rdi
	callq	_am_readword
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_netif_stop_queue
LBB0_2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BUFFERS,4,2                 ## @TX_BUFFERS
	.comm	_TMD_OWN,4,2                    ## @TMD_OWN
	.comm	_TMD_STP,4,2                    ## @TMD_STP
	.comm	_TMD_ENP,4,2                    ## @TMD_ENP
	.comm	_CSR0,4,2                       ## @CSR0
	.comm	_CSR0_TDMD,4,2                  ## @CSR0_TDMD
	.comm	_CSR0_IENA,4,2                  ## @CSR0_IENA
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_am79c961_sendpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am79c961_sendpacket
_am79c961_sendpacket:                   ; @am79c961_sendpacket
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldp	w8, w9, [x0]
	add	w22, w9, w8, lsl #3
	ldr	x9, [x0, #8]
	ldr	w1, [x9, x8, lsl #2]
Lloh0:
	adrp	x9, _TX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_BUFFERS@GOTPAGEOFF]
	add	w10, w8, #1
Lloh2:
	ldr	w9, [x9]
	cmp	w10, w9
	csinc	w23, wzr, w8, hs
	ldp	w3, w2, [x19]
	mov	x0, x20
	bl	_am_writebuffer
	add	w1, w22, #4
	ldr	w8, [x19]
	neg	w2, w8
	mov	x0, x20
	bl	_am_writeword
	add	w1, w22, #2
Lloh3:
	adrp	x24, _TMD_OWN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TMD_OWN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh5:
	adrp	x9, _TMD_STP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TMD_STP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _TMD_ENP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TMD_ENP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_am_writeword
	str	w23, [x21]
	add	x22, x21, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #4]
Lloh11:
	adrp	x8, _CSR0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR0@GOTPAGEOFF]
Lloh13:
	adrp	x9, _CSR0_TDMD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CSR0_TDMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _CSR0_IENA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CSR0_IENA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_write_rreg
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldp	w9, w8, [x21]
	add	w8, w8, w9, lsl #3
	add	w1, w8, #2
	mov	x0, x20
	bl	_am_readword
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netif_stop_queue
LBB0_2:
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh23:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BUFFERS,4,2                 ; @TX_BUFFERS
	.comm	_TMD_OWN,4,2                    ; @TMD_OWN
	.comm	_TMD_STP,4,2                    ; @TMD_STP
	.comm	_TMD_ENP,4,2                    ; @TMD_ENP
	.comm	_CSR0,4,2                       ; @CSR0
	.comm	_CSR0_TDMD,4,2                  ; @CSR0_TDMD
	.comm	_CSR0_IENA,4,2                  ; @CSR0_IENA
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_am79c961_sendpacket
.subsections_via_symbols
