	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl2_xmit_frame
_atl2_xmit_frame:                       ## @atl2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	___ATL2_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_10:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_TxsFreeUnit
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_TxdFreeBytes
	movslq	(%r14), %rcx
	addq	$16, %rcx
	cltq
	cmpq	%rax, %rcx
	ja	LBB0_5
## %bb.4:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.6:
	movslq	(%r15), %rax
	movq	40(%r15), %rcx
	movl	$0, (%rcx,%rax,4)
	movl	(%r14), %edx
	movl	%edx, (%rcx,%rax,4)
	leaq	4(%rax), %rsi
	movl	4(%r15), %ebx
	xorl	%edi, %edi
	cmpl	%ebx, %esi
	cmovgel	%ebx, %edi
	movslq	%edi, %rsi
	negq	%rsi
	leaq	(%rax,%rsi), %r12
	addq	$4, %r12
	subl	%r12d, %ebx
	leaq	(%rcx,%r12,4), %rdi
	movq	8(%r14), %rsi
	cmpl	%edx, %ebx
	jge	LBB0_7
## %bb.8:
	movl	%ebx, %edx
	callq	_memcpy
	movq	40(%r15), %rdi
	movslq	%ebx, %rsi
	addq	8(%r14), %rsi
	movl	(%r14), %edx
	subl	%ebx, %edx
	callq	_memcpy
	movl	(%r14), %edx
	subl	%ebx, %edx
	addl	$3, %edx
	andl	$-4, %edx
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	callq	_memcpy
	movl	(%r14), %edx
	addl	$3, %edx
	andl	$-4, %edx
	addl	%r12d, %edx
LBB0_9:
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	cmovll	%ecx, %eax
	subl	%eax, %edx
	movl	%edx, (%r15)
	movq	32(%r15), %rax
	movq	8(%r15), %rsi
	movq	$0, (%rax,%rsi,8)
	incq	%rsi
	cmpq	16(%r15), %rsi
	cmovneq	%rsi, %rcx
	movq	%rcx, 8(%r15)
	addq	$24, %r15
	movq	_REG_MB_TXD_WR_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$2, %edx
	movq	%r15, %rdi
	callq	_ATL2_WRITE_REGW
	movq	%r14, %rdi
	callq	_dev_consume_skb_any
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	___ATL2_DOWN,4,2                ## @__ATL2_DOWN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_REG_MB_TXD_WR_IDX,4,2          ## @REG_MB_TXD_WR_IDX
	.no_dead_strip	_atl2_xmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl2_xmit_frame
_atl2_xmit_frame:                       ; @atl2_xmit_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, ___ATL2_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___ATL2_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #48
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_3:
Lloh3:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_TxsFreeUnit
	mov	x22, x0
	mov	x0, x20
	bl	_TxdFreeBytes
	ldrsw	x8, [x19]
	add	x8, x8, #16
	cmp	x8, w0, sxtw
	b.hi	LBB0_9
; %bb.6:
	cmp	w22, #0
	b.le	LBB0_9
; %bb.7:
	ldrsw	x8, [x20]
	ldr	x9, [x20, #40]
	lsl	x10, x8, #2
	str	wzr, [x9, x10]
	ldr	w2, [x19]
	str	w2, [x9, x10]
	add	w8, w8, #4
	ldr	w10, [x20, #4]
	cmp	w8, w10
	csel	w11, wzr, w10, lt
	sub	w22, w8, w11
	sub	w21, w10, w22
	add	x0, x9, w22, sxtw #2
	ldr	x1, [x19, #8]
	cmp	w21, w2
	b.ge	LBB0_10
; %bb.8:
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x20, #40]
	ldr	x8, [x19, #8]
	add	x1, x8, w21, sxtw
	ldr	w8, [x19]
	sub	w2, w8, w21
	bl	_memcpy
	ldr	w8, [x19]
	sub	w8, w8, w21
	add	w8, w8, #3
	and	w8, w8, #0xfffffffc
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_netif_stop_queue
Lloh5:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, #3
	and	w8, w8, #0xfffffffc
	add	w8, w8, w22
LBB0_11:
	ldr	w9, [x20, #4]
	cmp	w8, w9
	csel	w9, wzr, w9, lt
	sub	w8, w8, w9
	str	w8, [x20]
	ldr	x9, [x20, #32]
	ldp	x10, x11, [x20, #8]
	str	xzr, [x9, x10, lsl #3]
	add	x9, x10, #1
	cmp	x9, x11
	csinc	x9, xzr, x10, eq
	str	x9, [x20, #8]
	add	x0, x20, #24
Lloh7:
	adrp	x9, _REG_MB_TXD_WR_IDX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REG_MB_TXD_WR_IDX@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	asr	w2, w8, #2
	bl	_ATL2_WRITE_REGW
	mov	x0, x19
	bl	_dev_consume_skb_any
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___ATL2_DOWN,4,2                ; @__ATL2_DOWN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_REG_MB_TXD_WR_IDX,4,2          ; @REG_MB_TXD_WR_IDX
	.no_dead_strip	_atl2_xmit_frame
.subsections_via_symbols
