	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_xmit
_ftmac100_xmit:                         ## @ftmac100_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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpl	%r12d, %eax
	cmoval	%eax, %r12d
	callq	_ftmac100_current_txdes
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ftmac100_tx_pointer_advance
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ftmac100_txdes_set_skb
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_ftmac100_txdes_set_dma_addr
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_set_first_segment
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_set_last_segment
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_set_txint
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ftmac100_txdes_set_buffer_size
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
LBB0_2:
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_set_dma_own
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_ftmac100_txdma_start_polling
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_TX_QUEUE_ENTRIES,8,3           ## @TX_QUEUE_ENTRIES
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_ftmac100_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_xmit
_ftmac100_xmit:                         ; @ftmac100_xmit
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ETH_ZLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_ZLEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w24, w8, w9, hi
	bl	_ftmac100_current_txdes
	mov	x21, x0
	mov	x0, x19
	bl	_ftmac100_tx_pointer_advance
	mov	x0, x21
	mov	x1, x23
	bl	_ftmac100_txdes_set_skb
	mov	x0, x21
	mov	x1, x22
	bl	_ftmac100_txdes_set_dma_addr
	mov	x0, x21
	bl	_ftmac100_txdes_set_first_segment
	mov	x0, x21
	bl	_ftmac100_txdes_set_last_segment
	mov	x0, x21
	bl	_ftmac100_txdes_set_txint
	mov	x0, x21
	mov	x1, x24
	bl	_ftmac100_txdes_set_buffer_size
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh3:
	adrp	x9, _TX_QUEUE_ENTRIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_QUEUE_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netif_stop_queue
LBB0_2:
	mov	x0, x21
	bl	_ftmac100_txdes_set_dma_own
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x19
	bl	_ftmac100_txdma_start_polling
Lloh6:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_TX_QUEUE_ENTRIES,8,3           ; @TX_QUEUE_ENTRIES
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_ftmac100_xmit
.subsections_via_symbols
