	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_tx
_pcnet32_tx:                            ## @pcnet32_tx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %r13d
	cmpl	4(%rax), %r13d
	jne	LBB0_2
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %r9d
	jmp	LBB0_20
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	%r13d, %r9d
	cmpl	4(%r12), %r13d
	je	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %eax
	andl	%r13d, %eax
	movslq	%eax, %r14
	movq	48(%r12), %rax
	leaq	(%r14,%r14,2), %rbx
	movl	16(%rax,%rbx,8), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	shll	$16, %ecx
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r12), %rcx
	movq	$0, 8(%rcx,%rbx,8)
	testl	$16384, %eax                    ## imm = 0x4000
	jne	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	$6144, %eax                     ## imm = 0x1800
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	4(%r15)
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	(%r15)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	cwtl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx,%rbx,8), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	incl	24(%r15)
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	leaq	L_.str(%rip), %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	testl	$67108864, %r13d                ## imm = 0x4000000
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	$134217728, %r13d               ## imm = 0x8000000
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	$268435456, %r13d               ## imm = 0x10000000
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%r15)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	$1073741824, %r13d              ## imm = 0x40000000
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	8(%r15)
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_netif_err
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	40(%r12), %edi
	movq	24(%r12), %rcx
	movq	(%rcx,%r14,8), %rsi
	movl	(%rax), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	32(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_dev_kfree_skb_any
	movq	32(%r12), %rax
	movq	$0, (%rax,%r14,8)
	movq	24(%r12), %rax
	movq	$0, (%rax,%r14,8)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%r15)
	testl	$134217728, %r13d               ## imm = 0x8000000
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r15)
	testl	$268435456, %r13d               ## imm = 0x10000000
	jne	LBB0_11
	jmp	LBB0_12
LBB0_4:
	movl	4(%r12), %r9d
LBB0_20:
	movl	%r9d, %eax
	subl	%r13d, %eax
	movl	12(%r12), %ecx
	movl	8(%r12), %r14d
	addl	%ecx, %r14d
	andl	%eax, %r14d
	cmpl	%ecx, %r14d
	jbe	LBB0_22
## %bb.21:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_netif_err
	movl	12(%r12), %eax
	addl	%eax, %r13d
	subl	%eax, %r14d
LBB0_22:
	cmpq	$0, 16(%r12)
	je	LBB0_26
## %bb.23:
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movl	12(%r12), %eax
	addl	$-2, %eax
	cmpl	%eax, %r14d
	jae	LBB0_26
## %bb.25:
	movq	$0, 16(%r12)
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_26:
	movl	%r13d, (%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx error status=%04x err_status=%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Tx FIFO error!\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_drv,4,2                        ## @drv
L_.str.2:                               ## @.str.2
	.asciz	"out-of-sync dirty pointer, %d vs. %d, full=%d\n"

	.no_dead_strip	_pcnet32_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_tx
_pcnet32_tx:                            ; @pcnet32_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	x25, x8
	b	LBB0_20
LBB0_2:
	mov	w21, #0
Lloh0:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _tx_err@GOTPAGE
Lloh3:
	ldr	x27, [x27, _tx_err@GOTPAGEOFF]
	mov	w28, #24
	mov	x25, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	ldr	w9, [x20, #4]
	mov	x8, x25
	cmp	w25, w9
	b.eq	LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	and	w23, w8, w25
	ldr	x8, [x20, #48]
	smaddl	x8, w23, w28, x8
	ldr	w0, [x8, #16]
	bl	_le16_to_cpu
	tbnz	w0, #15, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x23, w23
	ldr	x8, [x20, #48]
	madd	x9, x23, x28, x8
	str	xzr, [x9, #8]
	tbnz	w0, #14, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w0, #0x1800
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxth	w22, w0
	mul	x9, x23, x28
	ldr	w0, [x8, x9]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w1, [x27]
	stp	x22, x24, [sp]
	mov	x0, x20
	mov	x2, x19
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_err
	tbnz	w24, #26, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #27, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #28, LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w24, #30, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x19
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_netif_err
	mov	w21, #1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #40]
	ldr	x9, [x20, #24]
	lsl	x22, x23, #3
	ldr	x1, [x9, x22]
	ldr	w2, [x8]
	ldr	w3, [x26]
	bl	_pci_unmap_single
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x22]
	bl	_dev_kfree_skb_any
	ldr	x8, [x20, #32]
	str	xzr, [x8, x22]
	ldr	x8, [x20, #24]
	str	xzr, [x8, x22]
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	tbz	w24, #27, LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	tbz	w24, #28, LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	tbnz	w24, #30, LBB0_13
	b	LBB0_14
LBB0_19:
	ldr	w8, [x20, #4]
LBB0_20:
	sub	w9, w8, w25
	ldp	w10, w11, [x20, #8]
	add	w10, w11, w10
	and	w22, w10, w9
	cmp	w22, w11
	b.ls	LBB0_22
; %bb.21:
Lloh8:
	adrp	x9, _drv@GOTPAGE
Lloh9:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldr	x9, [x20, #16]
	stp	x8, x9, [sp, #8]
	str	x25, [sp]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	ldr	w8, [x20, #12]
	add	w25, w8, w25
	sub	w22, w22, w8
LBB0_22:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_26
; %bb.23:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_26
; %bb.24:
	ldr	w8, [x20, #12]
	sub	w8, w8, #2
	cmp	w22, w8
	b.hs	LBB0_26
; %bb.25:
	str	xzr, [x20, #16]
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_26:
	str	w25, [x20]
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx error status=%04x err_status=%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Tx FIFO error!\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_drv,4,2                        ; @drv
l_.str.2:                               ; @.str.2
	.asciz	"out-of-sync dirty pointer, %d vs. %d, full=%d\n"

	.no_dead_strip	_pcnet32_tx
.subsections_via_symbols
