	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc_eth_hard_start_xmit
_lpc_eth_hard_start_xmit:               ## @lpc_eth_hard_start_xmit
	.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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%r14), %r13
	leaq	24(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	_ENET_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, (%rbx)
	jge	LBB0_1
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	28(%rbx), %edi
	callq	_LPC_ENET_TXPRODUCEINDEX
	movl	%eax, %edi
	callq	_readl
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	leaq	-1(%r13), %rax
	movq	_TXDESC_CONTROL_LAST@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_TXDESC_CONTROL_INT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	40(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_ENET_MAXF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%r15, %rdi
	addq	32(%rbx), %rdi
	movl	8(%r14), %esi
	movq	%r13, %rdx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	%r13, (%rax,%r15,8)
	incl	(%rbx)
	incq	%r15
	movq	_ENET_TX_DESC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	%rax, %r15
	cmovbq	%r15, %r13
	movl	28(%rbx), %edi
	callq	_LPC_ENET_TXPRODUCEINDEX
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_writel
	movq	_ENET_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, (%rbx)
	jl	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_TX_DESC,4,2               ## @ENET_TX_DESC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! TX request when no free TX buffers!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TXDESC_CONTROL_LAST,8,3        ## @TXDESC_CONTROL_LAST
	.comm	_TXDESC_CONTROL_INT,8,3         ## @TXDESC_CONTROL_INT
	.comm	_ENET_MAXF_SIZE,8,3             ## @ENET_MAXF_SIZE
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_lpc_eth_hard_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc_eth_hard_start_xmit
_lpc_eth_hard_start_xmit:               ; @lpc_eth_hard_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	ldr	x23, [x19]
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x22]
Lloh0:
	adrp	x25, _ENET_TX_DESC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ENET_TX_DESC@GOTPAGEOFF]
	ldr	w9, [x25]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.1:
	ldr	w0, [x22, #28]
	bl	_LPC_ENET_TXPRODUCEINDEX
	bl	_readl
	mov	x24, x0
	ldr	x8, [x22, #8]
	lsl	x26, x0, #3
	str	xzr, [x8, x26]
	sub	x8, x23, #1
Lloh2:
	adrp	x9, _TXDESC_CONTROL_LAST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TXDESC_CONTROL_LAST@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh5:
	adrp	x9, _TXDESC_CONTROL_INT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TXDESC_CONTROL_INT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	orr	x8, x8, x9
	ldp	x10, x9, [x22, #32]
	str	x8, [x9, x26]
Lloh8:
	adrp	x8, _ENET_MAXF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENET_MAXF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	madd	x0, x8, x0, x10
	ldr	w1, [x19, #8]
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x22, #16]
	str	x23, [x8, x26]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	add	x8, x24, #1
	ldrsw	x9, [x25]
	cmp	x8, x9
	csinc	x23, xzr, x24, hs
	ldr	w0, [x22, #28]
	bl	_LPC_ENET_TXPRODUCEINDEX
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	ldr	w8, [x22]
	ldr	w9, [x25]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh11:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh15:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_TX_DESC,4,2               ; @ENET_TX_DESC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! TX request when no free TX buffers!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TXDESC_CONTROL_LAST,8,3        ; @TXDESC_CONTROL_LAST
	.comm	_TXDESC_CONTROL_INT,8,3         ; @TXDESC_CONTROL_INT
	.comm	_ENET_MAXF_SIZE,8,3             ; @ENET_MAXF_SIZE
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_lpc_eth_hard_start_xmit
.subsections_via_symbols
