	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_tx_process            ## -- Begin function emac_mac_tx_process
	.p2align	4, 0x90
_emac_mac_tx_process:                   ## @emac_mac_tx_process
	.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, %rax
	movq	24(%rsi), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	8(%rax), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	andl	(%rbx), %r15d
	movb	4(%rbx), %cl
	sarl	%cl, %r15d
	movl	8(%rbx), %esi
	xorl	%r12d, %r12d
	movl	$0, %r13d
	cmpl	%r15d, %esi
	jne	LBB0_1
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_netdev_completed_queue
	movq	(%r14), %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_emac_tpd_num_free_descs
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%rbx), %rsi
	incq	%rsi
	cmpq	%rsi, 16(%rbx)
	movl	$0, %eax
	cmovel	%eax, %esi
	movl	%esi, 8(%rbx)
	cmpl	%r15d, %esi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GET_TPD_BUFFER
	movq	%rax, %r14
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	$0, 8(%r14)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addl	(%rdi), %r12d
	callq	_dev_consume_skb_irq
	movq	$0, (%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_tx_process            ; -- Begin function emac_mac_tx_process
	.p2align	2
_emac_mac_tx_process:                   ; @emac_mac_tx_process
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x1, #24]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldp	w8, w9, [x20]
	and	w8, w8, w0
	asr	w24, w8, w9
	ldr	w1, [x20, #8]
	cmp	w1, w24
	b.ne	LBB0_6
; %bb.1:
	mov	w21, #0
	mov	w22, #0
LBB0_2:
	ldr	x0, [x19]
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_completed_queue
	ldr	x0, [x19]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_emac_tpd_num_free_descs
Lloh0:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	b.le	LBB0_5
; %bb.4:
	ldr	x0, [x19]
	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
	b	_netif_wake_queue
LBB0_5:
	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_6:
	mov	w22, #0
	mov	w21, #0
Lloh3:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	ldr	x9, [x20, #16]
	cmp	x9, x8
	csel	w1, wzr, w8, eq
	str	w1, [x20, #8]
	cmp	w1, w24
	b.eq	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GET_TPD_BUFFER
	mov	x23, x0
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w2, [x23, #16]
	ldr	w3, [x25]
	bl	_dma_unmap_page
	str	xzr, [x23, #8]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x23]
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	ldr	w8, [x0]
	add	w21, w21, w8
	bl	_dev_consume_skb_irq
	str	xzr, [x23]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
.subsections_via_symbols
