	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_irq_alsa_done
_saa7134_irq_alsa_done:                 ## @saa7134_irq_alsa_done
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_14
LBB0_2:
	testl	$251658240, %r14d               ## imm = 0xF000000
	je	LBB0_4
## %bb.3:
	movl	%r14d, %esi
	shrl	$24, %esi
	andl	$15, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_4:
	movl	4(%rbx), %eax
	testl	$268435456, %r14d               ## imm = 0x10000000
	jne	LBB0_7
## %bb.5:
	testb	$1, %al
	jne	LBB0_10
## %bb.6:
	movl	$6, %edi
	callq	_SAA7134_RS_BA1
	jmp	LBB0_9
LBB0_7:
	testb	$1, %al
	je	LBB0_10
## %bb.8:
	movl	$6, %edi
	callq	_SAA7134_RS_BA2
LBB0_9:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	8(%rbx), %eax
	movl	12(%rbx), %esi
	movl	16(%rbx), %ecx
	leal	-2(%rcx), %edx
	imull	%esi, %edx
	cmpl	%edx, %eax
	jge	LBB0_15
## %bb.12:
	movl	4(%rbx), %eax
	addl	$2, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r12d
	imull	%edx, %esi
	movl	%r15d, %edi
	callq	_saa_writel
	testl	$268435456, %r14d               ## imm = 0x10000000
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	movl	%r9d, %ecx
	imull	%r12d, %ecx
	movl	16(%rbx), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str.6(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	4(%rbx), %eax
	movl	8(%rbx), %r14d
	incl	%eax
	cltd
	idivl	16(%rbx)
	movl	%edx, 4(%rbx)
	addl	12(%rbx), %r14d
	movl	%r14d, 8(%rbx)
	movl	%r15d, 20(%rbx)
	movl	24(%rbx), %edi
	callq	_snd_pcm_lib_period_bytes
	cmpl	%eax, %r14d
	jl	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	24(%rbx), %edi
	callq	_snd_pcm_period_elapsed
	movq	%rbx, %rdi
	callq	_spin_lock
	jmp	LBB0_14
LBB0_10:
	testl	$268435456, %r14d               ## imm = 0x10000000
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_14:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_15:
	movl	28(%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	24(%rbx), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_stop_xrun              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,4,2                      ## @UNSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq: recording stopped\n"

L_.str.1:                               ## @.str.1
	.asciz	"irq: lost %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"irq: field oops [%s]\n"

L_.str.3:                               ## @.str.3
	.asciz	"even"

L_.str.4:                               ## @.str.4
	.asciz	"odd"

L_.str.5:                               ## @.str.5
	.asciz	"irq: overrun [full=%d/%d] - Blocks in %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"irq: ok, %s, next_blk=%d, addr=%x, blocks=%u, size=%u, read=%u\n"

L_.str.7:                               ## @.str.7
	.asciz	"odd "

	.no_dead_strip	_saa7134_irq_alsa_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_irq_alsa_done
_saa7134_irq_alsa_done:                 ; @saa7134_irq_alsa_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock
Lloh0:
	adrp	x8, _UNSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_2:
	tst	x20, #0xf000000
	b.eq	LBB0_4
; %bb.3:
	ubfx	x8, x20, #24, #4
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_4:
	ldr	w8, [x19, #4]
	tbnz	w20, #28, LBB0_7
; %bb.5:
	tbnz	w8, #0, LBB0_12
; %bb.6:
	mov	w0, #6
	bl	_SAA7134_RS_BA1
	mov	x21, x0
	cbnz	w0, LBB0_9
	b	LBB0_12
LBB0_7:
	tbz	w8, #0, LBB0_12
; %bb.8:
	mov	w0, #6
	bl	_SAA7134_RS_BA2
	mov	x21, x0
	cbz	w0, LBB0_12
LBB0_9:
	ldp	w8, w10, [x19, #8]
	ldr	w9, [x19, #16]
	sub	w11, w9, #2
	mul	w11, w11, w10
	cmp	w8, w11
	b.ge	LBB0_15
; %bb.10:
	ldr	w8, [x19, #4]
	add	w8, w8, #2
	sdiv	w11, w8, w9
	msub	w22, w11, w9, w8
	mul	w1, w22, w10
	mov	x0, x21
	bl	_saa_writel
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh9:
	adrp	x9, l_.str.7@PAGE
Lloh10:
	add	x9, x9, l_.str.7@PAGEOFF
	tst	x20, #0x10000000
	csel	x8, x9, x8, eq
	ldp	w10, w9, [x19, #8]
	mul	w11, w9, w22
	ldr	w12, [x19, #16]
	stp	x9, x10, [sp, #32]
	stp	x8, x22, [sp]
	stp	x11, x12, [sp, #16]
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	ldp	w8, w9, [x19, #4]
	add	w8, w8, #1
	ldp	w11, w10, [x19, #12]
	sdiv	w12, w8, w10
	msub	w8, w12, w10, w8
	add	w20, w9, w11
	stp	w8, w20, [x19, #4]
	str	w21, [x19, #20]
	ldr	w0, [x19, #24]
	bl	_snd_pcm_lib_period_bytes
	cmp	w20, w0
	b.lt	LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x19, #24]
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_spin_lock
	b	LBB0_14
LBB0_12:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
	tst	x20, #0x10000000
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_pr_debug
LBB0_14:
	mov	x0, x19
	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
	add	sp, sp, #96
	b	_spin_unlock
LBB0_15:
	ldr	w10, [x19, #28]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x19, #24]
	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
	add	sp, sp, #96
	b	_snd_pcm_stop_xrun
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,4,2                      ; @UNSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq: recording stopped\n"

l_.str.1:                               ; @.str.1
	.asciz	"irq: lost %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"irq: field oops [%s]\n"

l_.str.3:                               ; @.str.3
	.asciz	"even"

l_.str.4:                               ; @.str.4
	.asciz	"odd"

l_.str.5:                               ; @.str.5
	.asciz	"irq: overrun [full=%d/%d] - Blocks in %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"irq: ok, %s, next_blk=%d, addr=%x, blocks=%u, size=%u, read=%u\n"

l_.str.7:                               ; @.str.7
	.asciz	"odd "

	.no_dead_strip	_saa7134_irq_alsa_done
.subsections_via_symbols
