	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qec_interrupt
_qec_interrupt:                         ## @qec_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_GLOB_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_sbus_readl
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	sarl	$4, %r13d
	incq	%rbx
	cmpq	$4, %rbx
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testb	$15, %r13b
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	movq	_CREG_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_sbus_readl
	movl	%eax, %r12d
	movq	_CREG_STAT_ERRORS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_qe_is_bolixed
	testq	%rax, %rax
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_CREG_STAT_RXIRQ@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_qe_rx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %edi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CREG_STAT_TXIRQ@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_qe_tx_reclaim
	movq	%r15, %rdi
	callq	_TX_BUFFS_AVAIL
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %edi
	callq	_netif_wake_queue
	movq	_CREG_TIMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	$1, %edi
	callq	_sbus_writel
	jmp	LBB0_10
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOB_STAT,8,3                  ## @GLOB_STAT
	.comm	_CREG_STAT,8,3                  ## @CREG_STAT
	.comm	_CREG_STAT_ERRORS,4,2           ## @CREG_STAT_ERRORS
	.comm	_CREG_STAT_RXIRQ,4,2            ## @CREG_STAT_RXIRQ
	.comm	_CREG_STAT_TXIRQ,4,2            ## @CREG_STAT_TXIRQ
	.comm	_CREG_TIMASK,8,3                ## @CREG_TIMASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_qec_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qec_interrupt
_qec_interrupt:                         ; @qec_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _GLOB_STAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GLOB_STAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x20, x0
	mov	x23, #0
Lloh3:
	adrp	x24, _CREG_STAT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CREG_STAT@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CREG_STAT_ERRORS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CREG_STAT_ERRORS@GOTPAGEOFF]
Lloh7:
	adrp	x26, _CREG_STAT_RXIRQ@GOTPAGE
Lloh8:
	ldr	x26, [x26, _CREG_STAT_RXIRQ@GOTPAGEOFF]
Lloh9:
	adrp	x27, _CREG_STAT_TXIRQ@GOTPAGE
Lloh10:
	ldr	x27, [x27, _CREG_STAT_TXIRQ@GOTPAGEOFF]
Lloh11:
	adrp	x28, _CREG_TIMASK@GOTPAGE
Lloh12:
	ldr	x28, [x28, _CREG_TIMASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_unlock
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w20, w20, #4
	add	x23, x23, #8
	cmp	x23, #32
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tst	w20, #0xf
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x21, [x8, x23]
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x22, x0
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_qe_is_bolixed
	cbnz	x0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_qe_rx
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #16]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x21
	bl	_qe_tx_reclaim
	mov	x0, x21
	bl	_TX_BUFFS_AVAIL
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #16]
	bl	_netif_wake_queue
	ldr	x8, [x21, #8]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	w0, #1
	bl	_sbus_writel
	b	LBB0_1
LBB0_12:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOB_STAT,8,3                  ; @GLOB_STAT
	.comm	_CREG_STAT,8,3                  ; @CREG_STAT
	.comm	_CREG_STAT_ERRORS,4,2           ; @CREG_STAT_ERRORS
	.comm	_CREG_STAT_RXIRQ,4,2            ; @CREG_STAT_RXIRQ
	.comm	_CREG_STAT_TXIRQ,4,2            ; @CREG_STAT_TXIRQ
	.comm	_CREG_TIMASK,8,3                ; @CREG_TIMASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_qec_interrupt
.subsections_via_symbols
