	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_4:
	movq	_EMAC_DEF_MIN_ETHPKTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_padto
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	callq	_skb_tx_timestamp
	movl	(%rbx), %edi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_cpdma_chan_submit
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rbx, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	leaq	4(%r14), %rdi
	callq	_dev_err
LBB0_13:
	incl	(%r14)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
LBB0_14:
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_15:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%rbx), %edi
	callq	_cpdma_check_free_tx_desc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: No link to transmit"

	.comm	_EMAC_DEF_MIN_ETHPKTSIZE,4,2    ## @EMAC_DEF_MIN_ETHPKTSIZE
L_.str.1:                               ## @.str.1
	.asciz	"DaVinci EMAC: packet pad failed"

L_.str.2:                               ## @.str.2
	.asciz	"DaVinci EMAC: desc submit failed"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.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:
	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	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0, #4]
	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_13
; %bb.2:
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh2:
	adrp	x8, _EMAC_DEF_MIN_ETHPKTSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMAC_DEF_MIN_ETHPKTSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_padto
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_13
; %bb.6:
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.7:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	_skb_tx_timestamp
	ldr	w0, [x20]
	ldp	w3, w2, [x21]
	mov	x1, x21
	mov	w4, #0
	bl	_cpdma_chan_submit
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_13
; %bb.10:
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.11:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	add	x0, x19, #4
	bl	_dev_err
LBB0_13:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh9:
	adrp	x20, _NETDEV_TX_BUSY@GOTPAGE
Lloh10:
	ldr	x20, [x20, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_14:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_15:
	ldr	w0, [x20]
	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_16:
	ldr	w0, [x20]
	bl	_cpdma_check_free_tx_desc
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
Lloh11:
	adrp	x20, _NETDEV_TX_OK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _NETDEV_TX_OK@GOTPAGEOFF]
	cbnz	x0, LBB0_14
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: No link to transmit"

	.comm	_EMAC_DEF_MIN_ETHPKTSIZE,4,2    ; @EMAC_DEF_MIN_ETHPKTSIZE
l_.str.1:                               ; @.str.1
	.asciz	"DaVinci EMAC: packet pad failed"

l_.str.2:                               ; @.str.2
	.asciz	"DaVinci EMAC: desc submit failed"

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