	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_xmit
_xlgmac_xmit:                           ## @xlgmac_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, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_XLGMAC_PR
	movq	(%r15), %r12
	movslq	8(%r13), %rbx
	shlq	$4, %rbx
	movl	8(%r12,%rbx), %esi
	movq	%r14, %rdi
	callq	_netdev_get_tx_queue
	cmpq	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx), %r14
	movq	(%r12,%rbx), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_xlgmac_prep_tx_pkt
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_maybe_stop_tx_queue
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_prep_tso
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_netif_err
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_11
LBB0_1:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netif_err
LBB0_6:
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
LBB0_10:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_prep_vlan
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*16(%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_tx_sent_queue
	movq	%r14, %rdi
	callq	*8(%r15)
	movq	%r15, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_xlgmac_print_pkt
LBB0_9:
	movq	_XLGMAC_TX_MAX_DESC_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_maybe_stop_tx_queue
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb->len = %d\n"

	.comm	_tx_err,4,2                     ## @tx_err
L_.str.1:                               ## @.str.1
	.asciz	"empty skb received from stack\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
L_.str.2:                               ## @.str.2
	.asciz	"error processing TSO packet\n"

	.comm	_XLGMAC_TX_MAX_DESC_NR,4,2      ## @XLGMAC_TX_MAX_DESC_NR
	.no_dead_strip	_xlgmac_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_xmit
_xlgmac_xmit:                           ; @xlgmac_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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_XLGMAC_PR
	ldr	x8, [x21]
	ldrsw	x9, [x19, #8]
	add	x22, x8, x9, lsl #4
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_netdev_get_tx_queue
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x24, x0
	ldr	x23, [x22]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x23
	bl	_xlgmac_prep_tx_pkt
	ldr	w2, [x23, #4]
	mov	x0, x22
	mov	x1, x23
	bl	_xlgmac_maybe_stop_tx_queue
	mov	x25, x0
	cbnz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_xlgmac_prep_tso
	cbz	w0, LBB0_8
; %bb.3:
	mov	x25, x0
Lloh2:
	adrp	x8, _tx_err@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str.2@PAGE
Lloh6:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netif_err
	mov	x0, x19
	bl	_dev_kfree_skb_any
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _tx_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netif_err
LBB0_5:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_6:
Lloh12:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
LBB0_7:
	mov	x0, x25
	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
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	bl	_xlgmac_prep_vlan
	ldr	x8, [x21, #16]
	mov	x0, x22
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.9:
	ldr	w1, [x23]
	mov	x0, x24
	bl	_netdev_tx_sent_queue
	ldr	x8, [x21, #8]
	mov	x0, x22
	blr	x8
	mov	x0, x21
	bl	_netif_msg_pktdata
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_xlgmac_print_pkt
LBB0_11:
Lloh15:
	adrp	x8, _XLGMAC_TX_MAX_DESC_NR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XLGMAC_TX_MAX_DESC_NR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_xlgmac_maybe_stop_tx_queue
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb->len = %d\n"

	.comm	_tx_err,4,2                     ; @tx_err
l_.str.1:                               ; @.str.1
	.asciz	"empty skb received from stack\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
l_.str.2:                               ; @.str.2
	.asciz	"error processing TSO packet\n"

	.comm	_XLGMAC_TX_MAX_DESC_NR,4,2      ; @XLGMAC_TX_MAX_DESC_NR
	.no_dead_strip	_xlgmac_xmit
.subsections_via_symbols
