	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_interrupt
_rtl8180_interrupt:                     ## @rtl8180_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), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite16
	movq	_RTL818X_INT_TXB_OK@GOTPCREL(%rip), %rax
	movq	_RTL818X_INT_TXB_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rtl8180_handle_tx
LBB0_3:
	movq	_RTL818X_INT_TXL_OK@GOTPCREL(%rip), %rax
	movq	_RTL818X_INT_TXL_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rtl8180_handle_tx
LBB0_5:
	movq	_RTL818X_INT_RX_OK@GOTPCREL(%rip), %rax
	movq	_RTL818X_INT_RX_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_rtl8180_handle_rx
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_RTL818X_INT_TXB_OK,4,2         ## @RTL818X_INT_TXB_OK
	.comm	_RTL818X_INT_TXB_ERR,4,2        ## @RTL818X_INT_TXB_ERR
	.comm	_RTL818X_INT_TXL_OK,4,2         ## @RTL818X_INT_TXL_OK
	.comm	_RTL818X_INT_TXL_ERR,4,2        ## @RTL818X_INT_TXL_ERR
	.comm	_RTL818X_INT_RX_OK,4,2          ## @RTL818X_INT_RX_OK
	.comm	_RTL818X_INT_RX_ERR,4,2         ## @RTL818X_INT_RX_ERR
	.no_dead_strip	_rtl8180_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_interrupt
_rtl8180_interrupt:                     ; @rtl8180_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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_spin_lock
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_rtl818x_ioread16
	mov	x21, x0
	mov	w8, #65535
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_rtl818x_iowrite16
Lloh0:
	adrp	x8, _RTL818X_INT_TXB_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL818X_INT_TXB_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RTL818X_INT_TXB_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL818X_INT_TXB_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_rtl8180_handle_tx
LBB0_3:
Lloh6:
	adrp	x8, _RTL818X_INT_TXL_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL818X_INT_TXL_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _RTL818X_INT_TXL_ERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RTL818X_INT_TXL_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_rtl8180_handle_tx
LBB0_5:
Lloh12:
	adrp	x8, _RTL818X_INT_RX_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTL818X_INT_RX_OK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _RTL818X_INT_RX_ERR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RTL818X_INT_RX_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_rtl8180_handle_rx
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_RTL818X_INT_TXB_OK,4,2         ; @RTL818X_INT_TXB_OK
	.comm	_RTL818X_INT_TXB_ERR,4,2        ; @RTL818X_INT_TXB_ERR
	.comm	_RTL818X_INT_TXL_OK,4,2         ; @RTL818X_INT_TXL_OK
	.comm	_RTL818X_INT_TXL_ERR,4,2        ; @RTL818X_INT_TXL_ERR
	.comm	_RTL818X_INT_RX_OK,4,2          ; @RTL818X_INT_RX_OK
	.comm	_RTL818X_INT_RX_ERR,4,2         ; @RTL818X_INT_RX_ERR
	.no_dead_strip	_rtl8180_interrupt
.subsections_via_symbols
