	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83977af_fir_interrupt
_w83977af_fir_interrupt:                ## @w83977af_fir_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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movslq	(%rdi), %rbx
	movq	_SSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	_ISR_FEND_I@GOTPCREL(%rip), %rdx
	movq	_ISR_FSF_I@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%r12d, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_w83977af_dma_receive_complete
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ICR_EFSFI@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
	movq	_SET4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_switch_bank
	movq	_TMRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$1, %edi
	callq	_outb
	movq	_TMRH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_IR_MSL_EN_TMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IR_MSL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_ICR_ETMRI@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
LBB0_6:
	movq	_ISR_TMR_I@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_SET4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_switch_bank
	movq	_IR_MSL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	8(%r15), %rax
	movq	_IO_XMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_w83977af_dma_write
	movq	_ICR_EDMAI@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_w83977af_dma_receive_complete
	movq	_ICR_EFSFI@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %r13d
LBB0_11:
	movq	_ISR_DMA_I@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_w83977af_dma_xmit_complete
	movq	%r15, %rdi
	callq	_w83977af_dma_receive
	movq	_ICR_EFSFI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_13:
	addq	(%r14), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_outb
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSR,8,3                        ## @SSR
	.comm	_ISR_FEND_I,4,2                 ## @ISR_FEND_I
	.comm	_ISR_FSF_I,4,2                  ## @ISR_FSF_I
	.comm	_ICR_EFSFI,4,2                  ## @ICR_EFSFI
	.comm	_SET4,4,2                       ## @SET4
	.comm	_TMRL,8,3                       ## @TMRL
	.comm	_TMRH,8,3                       ## @TMRH
	.comm	_IR_MSL_EN_TMR,4,2              ## @IR_MSL_EN_TMR
	.comm	_IR_MSL,8,3                     ## @IR_MSL
	.comm	_ICR_ETMRI,4,2                  ## @ICR_ETMRI
	.comm	_ISR_TMR_I,4,2                  ## @ISR_TMR_I
	.comm	_IO_XMIT,8,3                    ## @IO_XMIT
	.comm	_ICR_EDMAI,4,2                  ## @ICR_EDMAI
	.comm	_ISR_DMA_I,4,2                  ## @ISR_DMA_I
	.no_dead_strip	_w83977af_fir_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83977af_fir_interrupt
_w83977af_fir_interrupt:                ; @w83977af_fir_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x21, x0
	ldrsw	x19, [x0]
Lloh0:
	adrp	x24, _SSR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SSR@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x19
	bl	_inb
	mov	x20, x0
Lloh2:
	adrp	x8, _ISR_FEND_I@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISR_FEND_I@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ISR_FSF_I@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ISR_FSF_I@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x25, _ICR_EFSFI@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ICR_EFSFI@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_w83977af_dma_receive_complete
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w23, [x25]
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _SET4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SET4@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_switch_bank
Lloh13:
	adrp	x8, _TMRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TMRL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	w0, #1
	bl	_outb
Lloh16:
	adrp	x8, _TMRH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TMRH@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	w0, #0
	bl	_outb
Lloh19:
	adrp	x8, _IR_MSL_EN_TMR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IR_MSL_EN_TMR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _IR_MSL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IR_MSL@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outb
Lloh25:
	adrp	x8, _ICR_ETMRI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ICR_ETMRI@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
LBB0_5:
Lloh28:
	adrp	x8, _ISR_TMR_I@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ISR_TMR_I@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.6:
Lloh31:
	adrp	x8, _SET4@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SET4@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_switch_bank
Lloh34:
	adrp	x8, _IR_MSL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IR_MSL@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	w0, #0
	bl	_outb
	ldr	x8, [x21, #8]
Lloh37:
	adrp	x9, _IO_XMIT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IO_XMIT@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x1, x19
	bl	_w83977af_dma_write
Lloh40:
	adrp	x8, _ICR_EDMAI@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ICR_EDMAI@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_8:
	bl	_w83977af_dma_receive_complete
	ldr	w8, [x25]
LBB0_9:
	orr	w23, w8, w23
LBB0_10:
Lloh43:
	adrp	x8, _ISR_DMA_I@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ISR_DMA_I@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_w83977af_dma_xmit_complete
	mov	x0, x21
	bl	_w83977af_dma_receive
	ldr	w23, [x25]
LBB0_12:
	ldr	x8, [x24]
	add	x1, x8, x19
	mov	x0, x20
	bl	_outb
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SSR,8,3                        ; @SSR
	.comm	_ISR_FEND_I,4,2                 ; @ISR_FEND_I
	.comm	_ISR_FSF_I,4,2                  ; @ISR_FSF_I
	.comm	_ICR_EFSFI,4,2                  ; @ICR_EFSFI
	.comm	_SET4,4,2                       ; @SET4
	.comm	_TMRL,8,3                       ; @TMRL
	.comm	_TMRH,8,3                       ; @TMRH
	.comm	_IR_MSL_EN_TMR,4,2              ; @IR_MSL_EN_TMR
	.comm	_IR_MSL,8,3                     ; @IR_MSL
	.comm	_ICR_ETMRI,4,2                  ; @ICR_ETMRI
	.comm	_ISR_TMR_I,4,2                  ; @ISR_TMR_I
	.comm	_IO_XMIT,8,3                    ; @IO_XMIT
	.comm	_ICR_EDMAI,4,2                  ; @ICR_EDMAI
	.comm	_ISR_DMA_I,4,2                  ; @ISR_DMA_I
	.no_dead_strip	_w83977af_fir_interrupt
.subsections_via_symbols
