	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_xmit_frame
_atl1_xmit_frame:                       ## @atl1_xmit_frame
	.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, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_skb_headlen
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_20:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
LBB0_21:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r14d
	testq	%r14, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	shlq	$2, %r14
	movl	$1, %ebx
	xorl	%r13d, %r13d
	movq	_ATL1_MAX_TX_BUF_LEN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%r13, %rdi
	callq	_skb_frag_size
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r12), %ecx
	addl	%ecx, %eax
	decl	%eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%eax, %ebx
	addq	$4, %r13
	cmpq	%r13, %r14
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movl	$1, %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_skb_shinfo
	cmpl	$0, 4(%rax)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_11
## %bb.7:
	movq	8(%r15), %r14
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r14
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_skb_transport_offset
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %r14d
	addl	%r12d, %r14d
	xorl	%edi, %edi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r14d, %r12d
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	cmpl	%r14d, %r12d
	je	LBB0_11
## %bb.10:
	movq	_ATL1_MAX_TX_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%r14d
	addl	%r14d, %r12d
	addl	%ecx, %r12d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%eax, %ebx
LBB0_11:
	movq	%r13, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_atl1_tpd_avail
	cmpl	%ebx, %eax
	jge	LBB0_14
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
	movq	%r13, %rdi
	callq	_netif_msg_tx_queued
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_printk
	jmp	LBB0_21
LBB0_14:
	movq	%r14, %rdi
	callq	_atomic_read
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ATL1_TPD_DESC
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %ecx
	shll	$4, %ecx
	movl	%eax, %edx
	sarl	$13, %edx
	orl	%ecx, %edx
	shrl	$9, %eax
	andl	$8, %eax
	movq	_TPD_INS_VL_TAG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	orl	%edx, %eax
	orl	%esi, (%r12)
	movq	_TPD_VLANTAG_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TPD_VLANTAG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, 4(%r12)
LBB0_16:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_atl1_tso
	testl	%eax, %eax
	js	LBB0_1
## %bb.17:
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_atl1_tx_csum
	testl	%eax, %eax
	js	LBB0_1
LBB0_19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_atl1_tx_map
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_atl1_tx_queue
	movq	%r13, %rdi
	callq	_atl1_update_mailbox
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_ATL1_MAX_TX_BUF_LEN,4,2        ## @ATL1_MAX_TX_BUF_LEN
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx busy\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TPD_INS_VL_TAG_SHIFT,4,2       ## @TPD_INS_VL_TAG_SHIFT
	.comm	_TPD_VLANTAG_MASK,4,2           ## @TPD_VLANTAG_MASK
	.comm	_TPD_VLANTAG_SHIFT,4,2          ## @TPD_VLANTAG_SHIFT
	.no_dead_strip	_atl1_xmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_xmit_frame
_atl1_xmit_frame:                       ; @atl1_xmit_frame
	.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	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_skb_headlen
	mov	x23, x0
	ldr	x8, [x20]
	cmp	x8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_1:
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_2:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_3:
	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
LBB0_4:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x24, #0
	lsl	x25, x8, #2
	mov	w21, #1
Lloh2:
	adrp	x26, _ATL1_MAX_TX_BUF_LEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ATL1_MAX_TX_BUF_LEN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x24
	bl	_skb_frag_size
	ldr	w8, [x26]
	add	w9, w0, w8
	sub	w9, w9, #1
	udiv	w8, w9, w8
	add	w21, w8, w21
	add	x24, x24, #4
	cmp	x25, x24
	b.ne	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w21, #1
LBB0_8:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_13
; %bb.9:
	ldr	x24, [x20, #8]
Lloh4:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x24, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	add	w24, w0, w24
	cmp	w23, w24
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.11:
	cmp	w23, w24
	b.eq	LBB0_13
; %bb.12:
Lloh7:
	adrp	x8, _ATL1_MAX_TX_BUF_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATL1_MAX_TX_BUF_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mvn	w9, w24
	add	w9, w23, w9
	add	w9, w9, w8
	udiv	w8, w9, w8
	add	w21, w8, w21
LBB0_13:
	add	x23, x19, #8
	mov	x0, x23
	bl	_atl1_tpd_avail
	cmp	w0, w21
	b.ge	LBB0_17
; %bb.14:
	mov	x0, x22
	bl	_netif_stop_queue
	mov	x0, x19
	bl	_netif_msg_tx_queued
	cbz	x0, LBB0_16
; %bb.15:
Lloh10:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x1, [x19]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_printk
LBB0_16:
Lloh15:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_3
LBB0_17:
	mov	x0, x23
	bl	_atomic_read
	mov	x1, x0
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ATL1_TPD_DESC
	mov	x22, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_skb_vlan_tag_get
	lsl	w8, w0, #4
	orr	w8, w8, w0, asr #13
	lsr	w9, w0, #9
	and	w9, w9, #0x8
Lloh17:
	adrp	x10, _TPD_INS_VL_TAG_SHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TPD_INS_VL_TAG_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
	mov	w10, #1
	lsl	w9, w10, w9
	ldp	w10, w11, [x22]
	orr	w9, w10, w9
	str	w9, [x22]
Lloh20:
	adrp	x9, _TPD_VLANTAG_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TPD_VLANTAG_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh23:
	adrp	x9, _TPD_VLANTAG_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TPD_VLANTAG_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w8, w11, w8
	str	w8, [x22, #4]
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_atl1_tso
	tbnz	w0, #31, LBB0_1
; %bb.20:
	cbnz	w0, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_atl1_tx_csum
	tbnz	w0, #31, LBB0_1
LBB0_22:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_atl1_tx_map
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_atl1_tx_queue
	mov	x0, x19
	bl	_atl1_update_mailbox
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_ATL1_MAX_TX_BUF_LEN,4,2        ; @ATL1_MAX_TX_BUF_LEN
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx busy\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TPD_INS_VL_TAG_SHIFT,4,2       ; @TPD_INS_VL_TAG_SHIFT
	.comm	_TPD_VLANTAG_MASK,4,2           ; @TPD_VLANTAG_MASK
	.comm	_TPD_VLANTAG_SHIFT,4,2          ; @TPD_VLANTAG_SHIFT
	.no_dead_strip	_atl1_xmit_frame
.subsections_via_symbols
