	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function azx_interrupt
_azx_interrupt:                         ## @azx_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
	cmpq	$0, 32(%rbx)
	jne	LBB0_23
## %bb.1:
	movq	_INTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_azx_readl
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_23
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movq	%rbx, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.3:
	leaq	12(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 4(%r13,%r14)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_queue_work
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%rcx), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rcx), %r13
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r13,%r14)
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%r13), %rbx
	movq	_SD_STS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_azx_sd_readb
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movq	_SD_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_azx_sd_writeb
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 8(%r13,%r14)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 12(%r13,%r14)
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SD_INT_COMPLETE@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rax)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rdi
	movq	%rbx, %rsi
	callq	_azx_position_ok
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, 4(%r13,%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	8(%r13,%r14), %edi
	callq	_snd_pcm_period_elapsed
	movq	%rbx, %rdi
	callq	_spin_lock
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
	jmp	LBB0_15
LBB0_16:
	movq	_RIRBSTS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rcx, %rdi
	callq	_azx_readb
	movq	_RIRB_INT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	testl	%eax, %edx
	je	LBB0_22
## %bb.17:
	movq	_RIRB_INT_RESPONSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:
	movq	_AZX_DCAPS_RIRB_PRE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_20
## %bb.19:
	movl	$80, %edi
	callq	_udelay
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	%rbx, %rdi
	callq	_azx_update_rirb
	movl	(%r15), %edx
LBB0_21:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_azx_writeb
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%r12), %eax
	addq	$40, %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	_INTSTS,4,2                     ## @INTSTS
	.comm	_SD_STS,4,2                     ## @SD_STS
	.comm	_SD_INT_MASK,4,2                ## @SD_INT_MASK
	.comm	_SD_INT_COMPLETE,4,2            ## @SD_INT_COMPLETE
	.comm	_RIRBSTS,4,2                    ## @RIRBSTS
	.comm	_RIRB_INT_MASK,4,2              ## @RIRB_INT_MASK
	.comm	_RIRB_INT_RESPONSE,4,2          ## @RIRB_INT_RESPONSE
	.comm	_AZX_DCAPS_RIRB_PRE_DELAY,4,2   ## @AZX_DCAPS_RIRB_PRE_DELAY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_RPM_ACTIVE,8,3                 ## @RPM_ACTIVE
	.comm	_STATESTS,4,2                   ## @STATESTS
	.no_dead_strip	_azx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function azx_interrupt
_azx_interrupt:                         ; @azx_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	add	x19, x1, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_23
LBB0_2:
Lloh2:
	adrp	x8, _INTSTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTSTS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_azx_readl
	cbz	w0, LBB0_1
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x21, x0
	mov	x25, #0
	mov	x26, #0
Lloh5:
	adrp	x27, _SD_STS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SD_STS@GOTPAGEOFF]
	add	x8, x20, #12
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh7:
	adrp	x28, _SD_INT_MASK@GOTPAGE
Lloh8:
	ldr	x28, [x28, _SD_INT_MASK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20, #24]
	add	x23, x22, x25
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x27]
	mov	x0, x23
	bl	_azx_sd_readb
	mov	x24, x0
	ldr	w1, [x27]
	ldr	w2, [x28]
	mov	x0, x23
	bl	_azx_sd_writeb
	ldr	w8, [x23, #8]
	cbz	w8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x22, x25
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x8, _SD_INT_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SD_INT_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_azx_position_ok
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x22, x25
	str	wzr, [x8, #4]
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x23, #8]
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_spin_lock
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x22, x25
	mov	w9, #1
	str	w9, [x8, #4]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_queue_work
	b	LBB0_5
LBB0_16:
Lloh12:
	adrp	x21, _RIRBSTS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _RIRBSTS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_azx_readb
Lloh14:
	adrp	x22, _RIRB_INT_MASK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _RIRB_INT_MASK@GOTPAGEOFF]
	ldr	w2, [x22]
	tst	w2, w0
	b.eq	LBB0_22
; %bb.17:
Lloh16:
	adrp	x8, _RIRB_INT_RESPONSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RIRB_INT_RESPONSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.18:
	ldr	w8, [x20, #4]
Lloh19:
	adrp	x9, _AZX_DCAPS_RIRB_PRE_DELAY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AZX_DCAPS_RIRB_PRE_DELAY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	mov	w0, #80
	bl	_udelay
LBB0_20:
	mov	x0, x20
	bl	_azx_update_rirb
	ldr	w2, [x22]
LBB0_21:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_azx_writeb
LBB0_22:
Lloh22:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh23:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_23:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INTSTS,4,2                     ; @INTSTS
	.comm	_SD_STS,4,2                     ; @SD_STS
	.comm	_SD_INT_MASK,4,2                ; @SD_INT_MASK
	.comm	_SD_INT_COMPLETE,4,2            ; @SD_INT_COMPLETE
	.comm	_RIRBSTS,4,2                    ; @RIRBSTS
	.comm	_RIRB_INT_MASK,4,2              ; @RIRB_INT_MASK
	.comm	_RIRB_INT_RESPONSE,4,2          ; @RIRB_INT_RESPONSE
	.comm	_AZX_DCAPS_RIRB_PRE_DELAY,4,2   ; @AZX_DCAPS_RIRB_PRE_DELAY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_RPM_ACTIVE,8,3                 ; @RPM_ACTIVE
	.comm	_STATESTS,4,2                   ; @STATESTS
	.no_dead_strip	_azx_interrupt
.subsections_via_symbols
