	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_xmit_frame
_atl1c_xmit_frame:                      ## @atl1c_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
	pushq	%rax
	.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	_atl1c_trans_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	___AT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_13:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_atl1c_cal_tpd_req
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_atl1c_tpd_avail
	cmpq	%r13, %rax
	jge	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_atl1c_get_tpd
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_atl1c_tso_csum
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	%r15, %rdi
	callq	_skb_vlan_tag_present
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_skb_vlan_tag_get
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, %rdi
	callq	_AT_VLAN_TO_TAG
	movq	_TPD_INS_VTAG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	-48(%rbp), %rcx
	orl	%eax, (%rcx)
LBB0_7:
	movq	%r15, %rdi
	callq	_skb_network_offset
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_TPD_ETH_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	-48(%rbp), %rdx
	orl	%eax, (%rdx)
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_atl1c_tx_map
	testq	%rax, %rax
	js	LBB0_11
## %bb.12:
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_netdev_sent_queue
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_atl1c_tx_queue
	jmp	LBB0_13
LBB0_11:
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_info
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_atl1c_tx_rollback
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_atl1c_trans_normal,4,2         ## @atl1c_trans_normal
	.comm	___AT_DOWN,4,2                  ## @__AT_DOWN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TPD_INS_VTAG_SHIFT,4,2         ## @TPD_INS_VTAG_SHIFT
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_TPD_ETH_TYPE_SHIFT,4,2         ## @TPD_ETH_TYPE_SHIFT
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx-skb dropped due to dma error\n"

	.no_dead_strip	_atl1c_xmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_xmit_frame
_atl1c_xmit_frame:                      ; @atl1c_xmit_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _atl1c_trans_normal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atl1c_trans_normal@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, ___AT_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___AT_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x21, #4
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_1:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_2:
Lloh6:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh7:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x19
	bl	_atl1c_cal_tpd_req
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	bl	_atl1c_tpd_avail
	cmp	x0, x23
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_netif_stop_queue
Lloh8:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_3
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_atl1c_get_tpd
	str	x0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_atl1c_tso_csum
	cbnz	x0, LBB0_1
; %bb.7:
	mov	x0, x19
	bl	_skb_vlan_tag_present
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_skb_vlan_tag_get
	bl	_cpu_to_le16
	bl	_AT_VLAN_TO_TAG
Lloh10:
	adrp	x8, _TPD_INS_VTAG_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TPD_INS_VTAG_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_9:
	mov	x0, x19
	bl	_skb_network_offset
Lloh13:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x2, [sp, #8]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _TPD_ETH_TYPE_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TPD_ETH_TYPE_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x2, [sp, #8]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_atl1c_tx_map
	tbnz	x0, #63, LBB0_14
; %bb.13:
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_netdev_sent_queue
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_atl1c_tx_queue
	b	LBB0_2
LBB0_14:
Lloh19:
	adrp	x8, _tx_done@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netif_info
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_atl1c_tx_rollback
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_atl1c_trans_normal,4,2         ; @atl1c_trans_normal
	.comm	___AT_DOWN,4,2                  ; @__AT_DOWN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TPD_INS_VTAG_SHIFT,4,2         ; @TPD_INS_VTAG_SHIFT
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_TPD_ETH_TYPE_SHIFT,4,2         ; @TPD_ETH_TYPE_SHIFT
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx-skb dropped due to dma error\n"

	.no_dead_strip	_atl1c_xmit_frame
.subsections_via_symbols
