	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjn_start_xmit
_fjn_start_xmit:                        ## @fjn_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
	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	(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movzwl	(%r15), %ebx
	movq	_ETH_ZLEN@GOTPCREL(%rip), %r14
	movzwl	(%r14), %eax
	cmpw	%ax, %bx
	jge	LBB0_3
## %bb.1:
	movswl	%ax, %esi
	movq	%r15, %rdi
	callq	_skb_padto
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movzwl	(%r14), %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	jle	LBB0_5
## %bb.4:
	movswl	%bx, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_notice
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movswl	%bx, %ebx
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movswq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_dbg
	movzwl	(%r15), %eax
	addw	%ax, 4(%r13)
	movq	_TX_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rsi
	xorl	%edi, %edi
	callq	_outw
	movl	$1, %edi
	callq	_udelay
	movq	_DATAPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movl	%ebx, %edi
	callq	_outw
	movq	_DATAPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	leal	1(%rbx), %edx
	sarl	%edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_outsw
	movl	(%r12), %eax
	leal	1(%rax), %edi
	movl	%edi, (%r12)
	addl	$3, %ebx
	andl	$-2, %ebx
	addl	4(%r12), %ebx
	movl	%ebx, 4(%r12)
	cmpl	$0, 8(%r12)
	je	LBB0_6
## %bb.7:
	movq	_sram_config@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rcx
	movswl	(%rcx), %ecx
	je	LBB0_8
## %bb.9:
	movl	$8190, %edx                     ## imm = 0x1FFE
	subl	%ecx, %edx
	cmpl	%edx, %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_TX_INTR@GOTPCREL(%rip), %r14
	jge	LBB0_12
## %bb.10:
	cmpl	$125, %eax
	jle	LBB0_11
	jmp	LBB0_12
LBB0_6:
	movq	_DO_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TX_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outb
	movl	(%r12), %eax
	movl	%eax, 12(%r12)
	movl	$0, (%r12)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 4(%r12)
	movq	%r14, %rbx
	movq	_TX_INTR@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_8:
	movl	$4094, %eax                     ## imm = 0xFFE
	subl	%ecx, %eax
	cmpl	%eax, %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_TX_INTR@GOTPCREL(%rip), %r14
	jge	LBB0_12
LBB0_11:
	movq	%r13, %rdi
	callq	_netif_start_queue
LBB0_12:
	movq	_D_TX_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_D_RX_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RX_INTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_outb
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_13:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,2,1                   ## @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_ETH_FRAME_LEN,2,1              ## @ETH_FRAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to send a large packet (%d bytes)\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
L_.str.1:                               ## @.str.1
	.asciz	"Transmitting a packet of length %lu\n"

	.comm	_TX_INTR,8,3                    ## @TX_INTR
	.comm	_DATAPORT,8,3                   ## @DATAPORT
	.comm	_DO_TX,4,2                      ## @DO_TX
	.comm	_TX_START,8,3                   ## @TX_START
	.comm	_sram_config,8,3                ## @sram_config
	.comm	_D_TX_INTR,4,2                  ## @D_TX_INTR
	.comm	_D_RX_INTR,4,2                  ## @D_RX_INTR
	.comm	_RX_INTR,8,3                    ## @RX_INTR
	.no_dead_strip	_fjn_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjn_start_xmit
_fjn_start_xmit:                        ; @fjn_start_xmit
	.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
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	w24, [x20]
	ldrsh	w22, [x19]
Lloh0:
	adrp	x23, _ETH_ZLEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_ZLEN@GOTPAGEOFF]
	ldrsh	w1, [x23]
	cmp	w22, w1
	b.ge	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_skb_padto
	cbnz	x0, LBB0_13
; %bb.2:
	ldrh	w22, [x23]
LBB0_3:
	mov	x0, x20
	bl	_netif_stop_queue
Lloh2:
	adrp	x26, _ETH_FRAME_LEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ETH_FRAME_LEN@GOTPAGEOFF]
	ldrsh	w8, [x26]
	cmp	w8, w22, sxth
	b.ge	LBB0_5
; %bb.4:
	sxth	w2, w22
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
Lloh6:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	sxth	w22, w22
	ldr	x23, [x19, #8]
	ldrsh	x2, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldrh	w8, [x19]
	ldrh	w9, [x20, #4]
	add	w8, w9, w8
	strh	w8, [x20, #4]
Lloh10:
	adrp	x25, _TX_INTR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _TX_INTR@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	w0, #0
	bl	_outw
	mov	w27, #1
	mov	w0, #1
	bl	_udelay
Lloh12:
	adrp	x28, _DATAPORT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _DATAPORT@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x1, x8, x24
	mov	x0, x22
	bl	_outw
	ldr	x8, [x28]
	add	x0, x8, x24
	add	w8, w22, #1
	asr	w2, w8, #1
	mov	x1, x23
	bl	_outsw
	ldp	w8, w9, [x21]
	add	w10, w8, #1
	add	w11, w22, #3
	and	w11, w11, #0xfffffffe
	add	w9, w9, w11
	stp	w10, w9, [x21]
	ldr	w11, [x21, #8]
	cbz	w11, LBB0_9
; %bb.6:
Lloh14:
	adrp	x10, _sram_config@GOTPAGE
Lloh15:
	ldr	x10, [x10, _sram_config@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x10]
	ldrsh	w10, [x26]
	cbz	x11, LBB0_10
; %bb.7:
	mov	w11, #8190
	sub	w10, w11, w10
	cmp	w9, w10
	b.ge	LBB0_12
; %bb.8:
	cmp	w8, #125
	b.le	LBB0_11
	b	LBB0_12
LBB0_9:
Lloh17:
	adrp	x8, _DO_TX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DO_TX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w0, w8, w10
Lloh20:
	adrp	x8, _TX_START@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_START@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outb
	ldr	w8, [x21]
	str	xzr, [x21]
	stp	w27, w8, [x21, #8]
	b	LBB0_11
LBB0_10:
	mov	w8, #4094
	sub	w8, w8, w10
	cmp	w9, w8
	b.ge	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_netif_start_queue
LBB0_12:
Lloh23:
	adrp	x8, _D_TX_INTR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D_TX_INTR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x8, [x25]
	add	x1, x8, x24
	bl	_outb
Lloh26:
	adrp	x8, _D_RX_INTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_RX_INTR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _RX_INTR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RX_INTR@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outb
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_13:
Lloh32:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,2,1                   ; @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_ETH_FRAME_LEN,2,1              ; @ETH_FRAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to send a large packet (%d bytes)\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
l_.str.1:                               ; @.str.1
	.asciz	"Transmitting a packet of length %lu\n"

	.comm	_TX_INTR,8,3                    ; @TX_INTR
	.comm	_DATAPORT,8,3                   ; @DATAPORT
	.comm	_DO_TX,4,2                      ; @DO_TX
	.comm	_TX_START,8,3                   ; @TX_START
	.comm	_sram_config,8,3                ; @sram_config
	.comm	_D_TX_INTR,4,2                  ; @D_TX_INTR
	.comm	_D_RX_INTR,4,2                  ; @D_RX_INTR
	.comm	_RX_INTR,8,3                    ; @RX_INTR
	.no_dead_strip	_fjn_start_xmit
.subsections_via_symbols
