	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e82545_tx_run
_e82545_tx_run:                         ## @e82545_tx_run
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movl	4(%rdi), %ecx
	movl	8(%rdi), %r15d
	leal	15(%r15), %r13d
	leal	63(%r15), %r12d
	testl	%r15d, %r15d
	cmovnsl	%r15d, %r13d
	cmovnsl	%r15d, %r12d
	movl	12(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	callq	_DPRINTF
	leaq	16(%r14), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_pthread_mutex_unlock
	movl	%ebx, -48(%rbp)
	movl	$0, -52(%rbp)
	sarl	$6, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpq	$0, 24(%r14)
	je	LBB0_1
## %bb.2:
	cmpl	$64, %r15d
	jl	LBB0_1
## %bb.3:
	sarl	$4, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %r9
	callq	_e82545_transmit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %ebx
	subl	%eax, %r15d
	cmpq	$0, 24(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	jg	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movq	%r12, %rdi
	callq	_pthread_mutex_lock
	movl	%ebx, (%r14)
	movl	-48(%rbp), %edx
	movl	%edx, 12(%r14)
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	movq	_E1000_ICR_TXDW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_9:
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_12
## %bb.10:
	cmpl	4(%r14), %ebx
	jne	LBB0_12
## %bb.11:
	movq	_E1000_ICR_TXQE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_12:
	testl	%esi, %esi
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_e82545_icr_assert
	movl	(%r14), %ebx
	movl	12(%r14), %edx
LBB0_14:
	movl	4(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINTF
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_run: head %x, rhead %x, tail %x\r\n"

	.comm	_E1000_ICR_TXDW,4,2             ## @E1000_ICR_TXDW
	.comm	_E1000_ICR_TXQE,4,2             ## @E1000_ICR_TXQE
L_.str.1:                               ## @.str.1
	.asciz	"tx_run done: head %x, rhead %x, tail %x\r\n"

	.no_dead_strip	_e82545_tx_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e82545_tx_run
_e82545_tx_run:                         ; @e82545_tx_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldp	w20, w22, [x0]
	ldp	w23, w2, [x0, #8]
	add	w24, w23, #15
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x22
	bl	_DPRINTF
	add	x21, x19, #16
	mov	x0, x21
	bl	_pthread_mutex_unlock
	cmp	w23, #0
	csel	w8, w24, w23, lt
	stp	wzr, w20, [sp, #8]
	add	w9, w23, #63
	csel	w9, w9, w23, lt
	asr	w24, w9, #6
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_5
; %bb.1:
	cmp	w23, #64
	b.lt	LBB0_5
; %bb.2:
	asr	w23, w8, #4
	mov	x25, x24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_e82545_transmit
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [sp, #12]
	sub	w25, w25, w0
	ldr	x8, [x19, #24]
	cmp	x8, #0
	ccmp	w25, #0, #4, ne
	b.gt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x25, x24
LBB0_6:
	mov	x0, x21
	bl	_pthread_mutex_lock
	str	w20, [x19]
	ldp	w8, w2, [sp, #8]
	str	w2, [x19, #12]
Lloh2:
	adrp	x9, _E1000_ICR_TXDW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _E1000_ICR_TXDW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w1, wzr, w9, eq
	cmp	w25, w24
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _E1000_ICR_TXQE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_ICR_TXQE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w1
LBB0_9:
	cbz	w1, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_e82545_icr_assert
	ldr	w20, [x19]
	ldr	w2, [x19, #12]
LBB0_11:
	ldr	w3, [x19, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DPRINTF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_run: head %x, rhead %x, tail %x\r\n"

	.comm	_E1000_ICR_TXDW,4,2             ; @E1000_ICR_TXDW
	.comm	_E1000_ICR_TXQE,4,2             ; @E1000_ICR_TXQE
l_.str.1:                               ; @.str.1
	.asciz	"tx_run done: head %x, rhead %x, tail %x\r\n"

	.no_dead_strip	_e82545_tx_run
.subsections_via_symbols
