	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_tx_clear
_enc28j60_tx_clear:                     ## @enc28j60_tx_clear
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.5:
	incl	8(%r15)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	incl	4(%r15)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movl	(%rdi), %eax
	addl	%eax, (%r15)
LBB0_3:
	callq	_dev_kfree_skb
	movq	$0, (%r14)
LBB0_4:
	movq	_ECON1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECON1_TXRTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_locked_reg_bfclr
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECON1,4,2                      ## @ECON1
	.comm	_ECON1_TXRTS,4,2                ## @ECON1_TXRTS
	.no_dead_strip	_enc28j60_tx_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_tx_clear
_enc28j60_tx_clear:                     ; @enc28j60_tx_clear
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	cbz	w21, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x0, [x20]
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x0]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	bl	_dev_kfree_skb
	str	xzr, [x20]
LBB0_5:
Lloh0:
	adrp	x8, _ECON1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECON1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ECON1_TXRTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECON1_TXRTS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_locked_reg_bfclr
	mov	x0, x19
	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
	b	_netif_wake_queue
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECON1,4,2                      ; @ECON1
	.comm	_ECON1_TXRTS,4,2                ; @ECON1_TXRTS
	.no_dead_strip	_enc28j60_tx_clear
.subsections_via_symbols
