	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_tx_complete
_encx24j600_tx_complete:                ## @encx24j600_tx_complete
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_mutex_lock
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rcx, %r15
	incl	4(%r14,%rax,4)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	addl	%eax, (%r14)
	movq	_EIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXIF@GOTPCREL(%rip), %rax
	movq	_TXABTIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_encx24j600_clr_bits
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_netif_dbg
	movq	8(%rbx), %rdi
	callq	_dev_kfree_skb
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIR,4,2                        ## @EIR
	.comm	_TXIF,4,2                       ## @TXIF
	.comm	_TXABTIF,4,2                    ## @TXABTIF
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX Done%s\n"

L_.str.1:                               ## @.str.1
	.asciz	": Err"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_encx24j600_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_tx_complete
_encx24j600_tx_complete:                ; @encx24j600_tx_complete
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_mutex_lock
	cmp	w20, #0
	mov	w8, #8
	mov	w9, #4
Lloh0:
	adrp	x10, l_.str.1@PAGE
Lloh1:
	add	x10, x10, l_.str.1@PAGEOFF
	csel	x8, x9, x8, eq
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x20, x9, x10, eq
	ldr	w9, [x21, x8]
	add	w9, w9, #1
	str	w9, [x21, x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
Lloh4:
	adrp	x8, _EIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIR@GOTPAGEOFF]
Lloh6:
	adrp	x9, _TXIF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXIF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _TXABTIF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TXABTIF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_encx24j600_clr_bits
Lloh13:
	adrp	x8, _tx_done@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x4, x20
	bl	_netif_dbg
	ldr	x0, [x19, #8]
	bl	_dev_kfree_skb
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_netif_wake_queue
	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	_mutex_unlock
LBB0_2:
	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	_BUG
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EIR,4,2                        ; @EIR
	.comm	_TXIF,4,2                       ; @TXIF
	.comm	_TXABTIF,4,2                    ; @TXABTIF
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX Done%s\n"

l_.str.1:                               ; @.str.1
	.asciz	": Err"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_encx24j600_tx_complete
.subsections_via_symbols
