	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5100_interrupt
_w5100_interrupt:                       ## @w5100_interrupt
	.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
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_W5100_S0_IR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w5100_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_W5100_S0_IR
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_w5100_write
	movq	_S0_IR_SENDOK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_dbg
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_4:
	movq	_S0_IR_RECV@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_w5100_disable_intr
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_9
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	___napi_schedule
LBB0_9:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_S0_IR_SENDOK,4,2               ## @S0_IR_SENDOK
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx done\n"

	.comm	_S0_IR_RECV,4,2                 ## @S0_IR_RECV
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_w5100_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5100_interrupt
_w5100_interrupt:                       ; @w5100_interrupt
	.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	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_W5100_S0_IR
	mov	x1, x0
	mov	x0, x19
	bl	_w5100_read
	cbz	w0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_W5100_S0_IR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_w5100_write
Lloh0:
	adrp	x8, _S0_IR_SENDOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S0_IR_SENDOK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _tx_done@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_3:
Lloh8:
	adrp	x8, _S0_IR_RECV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S0_IR_RECV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_w5100_disable_intr
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
	bl	_queue_work
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_napi_schedule_prep
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	___napi_schedule
LBB0_9:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_S0_IR_SENDOK,4,2               ; @S0_IR_SENDOK
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx done\n"

	.comm	_S0_IR_RECV,4,2                 ; @S0_IR_RECV
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_w5100_interrupt
.subsections_via_symbols
