	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_irq
_r592_irq:                              ## @r592_irq
	.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, %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	_R592_REG_MSC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_r592_read_reg
	movl	%eax, %r14d
	shrl	$16, %r14d
	andl	%eax, %r14d
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_r592_write_reg
	movq	_R592_REG_MSC_IRQ_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R592_REG_MSC_IRQ_REMOVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	testl	%r14d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	movl	$50, %eax
	movl	$500, %r12d                     ## imm = 0x1F4
	cmovel	%eax, %r12d
	xorl	%eax, %eax
	callq	_message
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	8(%r15), %r13
	movl	%r12d, %edi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
LBB0_2:
	movq	_R592_REG_MSC_FIFO_DMA_DONE@GOTPCREL(%rip), %rcx
	movq	_R592_REG_MSC_FIFO_DMA_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	testl	%r14d, %ecx
	je	LBB0_7
## %bb.3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_message
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	callq	_dbg_verbose
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_r592_stop_dma
	leaq	4(%r15), %rdi
	callq	_complete
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_R592_REG_MSC,4,2               ## @R592_REG_MSC
	.comm	_R592_REG_MSC_IRQ_INSERT,4,2    ## @R592_REG_MSC_IRQ_INSERT
	.comm	_R592_REG_MSC_IRQ_REMOVE,4,2    ## @R592_REG_MSC_IRQ_REMOVE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ: card %s"

L_.str.1:                               ## @.str.1
	.asciz	"added"

L_.str.2:                               ## @.str.2
	.asciz	"removed"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_R592_REG_MSC_FIFO_DMA_DONE,4,2 ## @R592_REG_MSC_FIFO_DMA_DONE
	.comm	_R592_REG_MSC_FIFO_DMA_ERR,4,2  ## @R592_REG_MSC_FIFO_DMA_ERR
L_.str.3:                               ## @.str.3
	.asciz	"IRQ: DMA error"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"IRQ: dma done"

	.no_dead_strip	_r592_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_irq
_r592_irq:                              ; @r592_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x21, _R592_REG_MSC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _R592_REG_MSC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r592_read_reg
	and	w23, w0, w0, lsr #16
	and	w2, w0, #0xffff0000
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r592_write_reg
Lloh5:
	adrp	x8, _R592_REG_MSC_IRQ_INSERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R592_REG_MSC_IRQ_INSERT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _R592_REG_MSC_IRQ_REMOVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _R592_REG_MSC_IRQ_REMOVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh11:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w9, w23
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x24]
Lloh13:
	adrp	x9, l_.str.1@PAGE
Lloh14:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w23
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	w8, #500
	mov	w9, #50
	csel	w21, w9, w8, eq
	bl	_message
	add	x22, x19, #8
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	x25, [x8]
	mov	x0, x21
	bl	_msecs_to_jiffies
	add	x1, x0, x25
	mov	x0, x22
	bl	_mod_timer
LBB0_2:
Lloh22:
	adrp	x8, _R592_REG_MSC_FIFO_DMA_DONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R592_REG_MSC_FIFO_DMA_DONE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x8]
Lloh25:
	adrp	x8, _R592_REG_MSC_FIFO_DMA_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R592_REG_MSC_FIFO_DMA_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w9, w8, w9
	tst	w9, w23
	b.eq	LBB0_7
; %bb.3:
	ldr	w20, [x24]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.4:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_message
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w1, w8
	b	LBB0_6
LBB0_5:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dbg_verbose
	mov	w1, #0
LBB0_6:
	mov	x0, x19
	bl	_r592_stop_dma
	add	x0, x19, #4
	bl	_complete
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_R592_REG_MSC,4,2               ; @R592_REG_MSC
	.comm	_R592_REG_MSC_IRQ_INSERT,4,2    ; @R592_REG_MSC_IRQ_INSERT
	.comm	_R592_REG_MSC_IRQ_REMOVE,4,2    ; @R592_REG_MSC_IRQ_REMOVE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ: card %s"

l_.str.1:                               ; @.str.1
	.asciz	"added"

l_.str.2:                               ; @.str.2
	.asciz	"removed"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_R592_REG_MSC_FIFO_DMA_DONE,4,2 ; @R592_REG_MSC_FIFO_DMA_DONE
	.comm	_R592_REG_MSC_FIFO_DMA_ERR,4,2  ; @R592_REG_MSC_FIFO_DMA_ERR
l_.str.3:                               ; @.str.3
	.asciz	"IRQ: DMA error"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"IRQ: dma done"

	.no_dead_strip	_r592_irq
.subsections_via_symbols
