	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_tx_buf_send           ## -- Begin function emac_mac_tx_buf_send
	.p2align	4, 0x90
_emac_mac_tx_buf_send:                  ## @emac_mac_tx_buf_send
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_emac_tso_csum
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_9
LBB0_2:
	movq	%r12, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %edi
	callq	_EMAC_VLAN_TO_TAG
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_TPD_CVLAN_TAG_SET
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_TPD_INSTC_SET
LBB0_4:
	movq	%r12, %rdi
	callq	_skb_network_offset
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	callq	_TPD_TYP_SET
LBB0_6:
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_emac_tx_fill_tpd
	movl	8(%r14), %edi
	movl	(%r12), %esi
	callq	_netdev_sent_queue
	movq	%r15, %rdi
	callq	_emac_tpd_num_free_descs
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$3, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_8
## %bb.7:
	movl	8(%r14), %edi
	callq	_netif_stop_queue
LBB0_8:
	movl	16(%r15), %edx
	movb	(%r15), %cl
	shll	%cl, %edx
	movl	4(%r15), %esi
	andl	%esi, %edx
	movq	8(%r15), %rdi
	addq	(%r14), %rdi
	callq	_emac_reg_update32
LBB0_9:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_tx_buf_send           ; -- Begin function emac_mac_tx_buf_send
	.p2align	2
_emac_mac_tx_buf_send:                  ; @emac_mac_tx_buf_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_emac_tso_csum
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	b	LBB0_9
LBB0_2:
	mov	x0, x21
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_skb_vlan_tag_get
	bl	_EMAC_VLAN_TO_TAG
	add	x0, sp, #8
	bl	_TPD_CVLAN_TAG_SET
	add	x0, sp, #8
	mov	w1, #1
	bl	_TPD_INSTC_SET
LBB0_4:
	mov	x0, x21
	bl	_skb_network_offset
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	w1, #1
	bl	_TPD_TYP_SET
LBB0_6:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_emac_tx_fill_tpd
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_netdev_sent_queue
	mov	x0, x19
	bl	_emac_tpd_num_free_descs
Lloh3:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, #3
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	bl	_netif_stop_queue
LBB0_8:
	ldr	w8, [x19, #16]
	ldp	w9, w1, [x19]
	lsl	w8, w8, w9
	and	w2, w8, w1
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	bl	_emac_reg_update32
LBB0_9:
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
.subsections_via_symbols
