	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5300_interrupt
_w5300_interrupt:                       ## @w5300_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_W5300_S0_IR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_w5300_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_w5300_write
	movq	_S0_IR_SENDOK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %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	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_W5300_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_w5300_write
	movq	%r15, %rdi
	callq	___napi_schedule
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W5300_S0_IR,4,2                ## @W5300_S0_IR
	.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	_W5300_IMR,4,2                  ## @W5300_IMR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_w5300_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5300_interrupt
_w5300_interrupt:                       ; @w5300_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
Lloh0:
	adrp	x22, _W5300_S0_IR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _W5300_S0_IR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_w5300_read
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_w5300_write
Lloh2:
	adrp	x8, _S0_IR_SENDOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S0_IR_SENDOK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _tx_done@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_3:
Lloh10:
	adrp	x8, _S0_IR_RECV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S0_IR_RECV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_napi_schedule_prep
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _W5300_IMR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _W5300_IMR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w5300_write
	mov	x0, x19
	bl	___napi_schedule
LBB0_6:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_W5300_S0_IR,4,2                ; @W5300_S0_IR
	.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	_W5300_IMR,4,2                  ; @W5300_IMR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_w5300_interrupt
.subsections_via_symbols
