	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_dev_xmit
_emac_dev_xmit:                         ## @emac_dev_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	4(%rsi), %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_msg_tx_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_4:
	leaq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$1, -88(%rbp)
	movl	(%r12), %esi
	movl	%esi, -72(%rbp)
	movq	%r12, -80(%rbp)
	movl	%esi, -40(%rbp)
	movq	%r12, -48(%rbp)
	movq	8(%r12), %rdi
	movq	%rdi, -56(%rbp)
	callq	_EMAC_CACHE_WRITEBACK
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_EMAC_DEF_TX_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_emac_send
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_EMAC_ERR_TX_OUT_OF_BD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movl	4(%r15), %edi
	callq	_netif_stop_queue
LBB0_11:
	incl	(%r15)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_5:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: No link to transmit"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EMAC_DEF_TX_CH,4,2             ## @EMAC_DEF_TX_CH
	.comm	_EMAC_ERR_TX_OUT_OF_BD,4,2      ## @EMAC_ERR_TX_OUT_OF_BD
L_.str.1:                               ## @.str.1
	.asciz	"DaVinci EMAC: xmit() fatal err. Out of TX BD's"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_emac_dev_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_dev_xmit
_emac_dev_xmit:                         ; @emac_dev_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x0
	add	x19, x1, #4
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_11
; %bb.2:
	bl	_net_ratelimit
	cbz	x0, LBB0_11
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_4:
	add	x8, sp, #40
	str	x8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w1, [x22]
	str	w1, [sp, #24]
	str	x22, [sp, #16]
	str	w1, [sp, #56]
	ldr	x0, [x22, #8]
	stp	x0, x22, [sp, #40]
	bl	_EMAC_CACHE_WRITEBACK
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh5:
	adrp	x8, _EMAC_DEF_TX_CH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EMAC_DEF_TX_CH@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_emac_send
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.5:
Lloh8:
	adrp	x8, _EMAC_ERR_TX_OUT_OF_BD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMAC_ERR_TX_OUT_OF_BD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_9
; %bb.7:
	bl	_net_ratelimit
	cbz	x0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	ldr	w0, [x20, #4]
	bl	_netif_stop_queue
LBB0_10:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_11:
Lloh13:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh15:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: No link to transmit"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EMAC_DEF_TX_CH,4,2             ; @EMAC_DEF_TX_CH
	.comm	_EMAC_ERR_TX_OUT_OF_BD,4,2      ; @EMAC_ERR_TX_OUT_OF_BD
l_.str.1:                               ; @.str.1
	.asciz	"DaVinci EMAC: xmit() fatal err. Out of TX BD's"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_emac_dev_xmit
.subsections_via_symbols
