	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1550_ioctl
_au1550_ioctl:                          ## @au1550_ioctl
	.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	%rcx, %r14
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r12
	movq	16(%rsi), %r15
	leal	-128(%rdx), %esi
	cmpl	$27, %esi
	ja	LBB0_3
## %bb.1:
	movl	(%r12), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	xorl	%ebx, %ebx
	jmpq	*%rsi
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_83
LBB0_3:
	movl	8(%r15), %edi
	movl	%edx, %esi
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mixdev_ioctl                   ## TAILCALL
LBB0_4:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_5:
	leaq	100(%r15), %rcx
	addq	$24, %r15
	testl	%eax, %eax
	cmovneq	%rcx, %r15
	movl	(%r15), %edi
	jmp	LBB0_105
LBB0_6:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_86
## %bb.7:
	movl	104(%r15), %edi
	jmp	LBB0_105
LBB0_8:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_87
## %bb.9:
	movl	108(%r15), %edi
	jmp	LBB0_105
LBB0_10:
	movl	$0, %ebx
	testl	%eax, %ecx
	je	LBB0_84
## %bb.11:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	4(%r12), %esi
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drain_dac                      ## TAILCALL
LBB0_12:
	movq	_FMODE_READ@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:
	cmpl	$0, 132(%r15)
	jne	LBB0_2
LBB0_14:
	testl	%eax, %ecx
	je	LBB0_16
## %bb.15:
	cmpl	$0, 56(%r15)
	jne	LBB0_2
LBB0_16:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.17:
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_20
## %bb.18:
	movq	%r15, %rdi
	callq	_stop_adc
	movq	%r15, %rdi
	callq	_prog_dmabuf_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
## %bb.19:
	movl	(%r12), %eax
LBB0_20:
	testl	%eax, (%r13)
	je	LBB0_52
## %bb.21:
	movq	%r15, %rdi
	callq	_stop_dac
	jmp	LBB0_51
LBB0_22:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.23:
	movl	(%r12), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.24:
	movq	%r15, %rdi
	callq	_stop_adc
	movl	$1, 104(%r15)
	movq	%r15, %rdi
	callq	_prog_dmabuf_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
## %bb.25:
	movl	(%r12), %eax
LBB0_26:
	testl	%eax, (%r13)
	je	LBB0_52
## %bb.27:
	movq	%r15, %rdi
	callq	_stop_dac
	movl	$1, 28(%r15)
	movq	_AC97_EXT_DACS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_51
## %bb.28:
	movl	8(%r15), %edi
	movq	_AC97_EXTENDED_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_rdcodec
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	movq	_AC97_EXTSTAT_PRI@GOTPCREL(%rip), %rcx
	movq	_AC97_EXTSTAT_PRJ@GOTPCREL(%rip), %rdx
	movq	_AC97_EXTSTAT_PRK@GOTPCREL(%rip), %rbx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rbx), %eax
	movl	%eax, %edx
	callq	_wrcodec
	jmp	LBB0_51
LBB0_29:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.30:
	movl	(%r12), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_32
## %bb.31:
	movq	%r15, %rdi
	callq	_stop_adc
	movq	%r15, %rdi
	callq	_set_adc_rate
	movl	(%r12), %eax
LBB0_32:
	testl	%eax, (%r13)
	je	LBB0_34
## %bb.33:
	movq	%r15, %rdi
	callq	_stop_dac
	movq	%r15, %rdi
	callq	_set_dac_rate
LBB0_34:
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_37
## %bb.35:
	movq	%r15, %rdi
	callq	_prog_dmabuf_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
## %bb.36:
	movl	(%r15), %eax
LBB0_37:
	testl	%eax, (%r13)
	je	LBB0_39
## %bb.38:
	movq	%r15, %rdi
	callq	_prog_dmabuf_dac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
LBB0_39:
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	jmp	LBB0_5
LBB0_40:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.41:
	movl	(%r12), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	callq	_stop_adc
	movl	(%r12), %eax
LBB0_43:
	testl	%eax, (%r13)
	je	LBB0_52
## %bb.44:
	movq	%r15, %rdi
	callq	_stop_dac
	jmp	LBB0_52
LBB0_45:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.46:
	movl	(%r12), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movabsq	$17179869188, %r14              ## imm = 0x400000004
	testl	%eax, (%rcx)
	je	LBB0_49
## %bb.47:
	movq	%r15, %rdi
	callq	_stop_adc
	movq	%r14, 124(%r15)
	movq	%r15, %rdi
	callq	_prog_dmabuf_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
## %bb.48:
	movl	(%r12), %eax
LBB0_49:
	testl	%eax, (%r13)
	je	LBB0_52
## %bb.50:
	movq	%r15, %rdi
	callq	_stop_dac
	movq	%r14, 48(%r15)
LBB0_51:
	movq	%r15, %rdi
	callq	_prog_dmabuf_dac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_84
LBB0_52:
	xorl	%ebx, %ebx
	jmp	LBB0_84
LBB0_53:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_82
## %bb.54:
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	leaq	108(%r15), %rcx
	addq	$32, %r15
	testl	%eax, %eax
	cmovneq	%rcx, %r15
	cmpl	$16, (%r15)
	jne	LBB0_103
## %bb.55:
	movq	_AFMT_S16_LE@GOTPCREL(%rip), %rax
	jmp	LBB0_104
LBB0_56:
	testl	%eax, %ecx
	je	LBB0_58
## %bb.57:
	movq	%r15, %rdi
	callq	_stop_dac
	xorl	%eax, %eax
	callq	_synchronize_irq
	movq	$0, 16(%r15)
	movl	64(%r15), %eax
	movl	%eax, 68(%r15)
	movl	%eax, 76(%r15)
	movl	(%r12), %eax
LBB0_58:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movl	$0, %ebx
	testl	%eax, (%rcx)
	je	LBB0_84
## %bb.59:
	movq	%r15, %rdi
	callq	_stop_adc
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_synchronize_irq
	movq	$0, 92(%r15)
	movl	140(%r15), %eax
	movl	%eax, 144(%r15)
	movl	%eax, 152(%r15)
	jmp	LBB0_84
LBB0_60:
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_84
LBB0_61:
	leaq	164(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r12), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_88
## %bb.62:
	xorl	%ebx, %ebx
	cmpl	$0, 148(%r15)
	jne	LBB0_89
## %bb.63:
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_89
LBB0_64:
	testl	%eax, %ecx
	je	LBB0_2
## %bb.65:
	leaq	12(%r15), %r12
	movl	36(%r15), %eax
	movl	%eax, -80(%rbp)
	leaq	164(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r15), %r13d
	movq	%r12, %rdi
	callq	_dma_count_done
	subl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	cmovlel	%ebx, %r13d
	movl	84(%r15), %eax
	subl	%r13d, %eax
	cltd
	idivl	40(%r15)
	movl	%eax, -76(%rbp)
	movl	80(%r15), %ecx
	movl	%ecx, -56(%rbp)
	movb	44(%r15), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movl	%edx, -72(%rbp)
	movslq	%edx, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	jmp	LBB0_73
LBB0_66:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.67:
	leaq	164(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	20(%r15), %r12d
	movl	%r12d, -76(%rbp)
	movl	16(%r15), %r13d
	cmpl	$0, 72(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_94
## %bb.68:
	movl	68(%r15), %edi
	callq	_virt_to_phys
	movq	%rax, %rbx
	jmp	LBB0_95
LBB0_69:
	testl	%eax, %ecx
	je	LBB0_2
## %bb.70:
	leaq	164(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	12(%r15), %rdi
	movl	16(%r15), %ebx
	callq	_dma_count_done
	subl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovgl	%ebx, %eax
	cltd
	idivl	40(%r15)
	movl	%eax, %edi
	jmp	LBB0_105
LBB0_71:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.72:
	leaq	88(%r15), %r12
	movl	112(%r15), %eax
	movl	%eax, -80(%rbp)
	leaq	164(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	92(%r15), %r13d
	movq	%r12, %rdi
	callq	_dma_count_done
	movl	%eax, %r12d
	addl	%r13d, %r12d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	cmovlel	%ebx, %r12d
	movl	%r12d, %eax
	cltd
	idivl	116(%r15)
	movl	%eax, -76(%rbp)
	movl	156(%r15), %ecx
	movl	%ecx, -56(%rbp)
	movb	120(%r15), %cl
	sarl	%cl, %eax
	movl	%eax, -72(%rbp)
LBB0_73:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	jmp	LBB0_84
LBB0_74:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.75:
	leaq	164(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	96(%r15), %r12d
	movl	%r12d, -76(%rbp)
	movl	92(%r15), %r13d
	cmpl	$0, 148(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_98
## %bb.76:
	movl	152(%r15), %edi
	callq	_virt_to_phys
	movq	%rax, %rbx
	jmp	LBB0_99
LBB0_77:
	movq	_AFMT_S16_LE@GOTPCREL(%rip), %rax
	movq	_AFMT_U8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	jmp	LBB0_105
LBB0_78:
	movq	_DSP_CAP_DUPLEX@GOTPCREL(%rip), %rax
	movq	_DSP_CAP_REALTIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_DSP_CAP_TRIGGER@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DSP_CAP_MMAP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_105
LBB0_79:
	testl	%eax, %ecx
	je	LBB0_93
## %bb.80:
	movl	36(%r15), %edi
	jmp	LBB0_105
LBB0_81:
	movq	%r14, %rsi
	callq	_get_user
	testl	%eax, %eax
                                        ## implicit-def: $edi
                                        ## implicit-def: $di
                                        ## implicit-def: $dih
                                        ## implicit-def: $dil
                                        ## implicit-def: $hdi
	je	LBB0_105
LBB0_82:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_83:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_84:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_85:
	movq	_SOUND_VERSION@GOTPCREL(%rip), %rax
LBB0_104:
	movl	(%rax), %edi
	jmp	LBB0_105
LBB0_86:
	movl	28(%r15), %edi
	jmp	LBB0_105
LBB0_87:
	movl	32(%r15), %edi
	jmp	LBB0_105
LBB0_88:
	xorl	%ebx, %ebx
LBB0_89:
	testl	%eax, (%r13)
	je	LBB0_92
## %bb.90:
	cmpl	$0, 72(%r15)
	jne	LBB0_92
## %bb.91:
	movq	_PCM_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_92:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%ebx, %edi
	jmp	LBB0_105
LBB0_93:
	movl	112(%r15), %edi
LBB0_105:
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_user                       ## TAILCALL
LBB0_94:
	leaq	12(%r15), %rdi
	callq	_dma_count_done
	movl	%eax, %ebx
	subl	%eax, %r13d
	addl	%eax, %r12d
	movl	%r12d, -76(%rbp)
	movl	68(%r15), %edi
	callq	_virt_to_phys
	movslq	%ebx, %rbx
	addq	%rax, %rbx
LBB0_95:
	movl	64(%r15), %edi
	callq	_virt_to_phys
	subq	%rax, %rbx
	movq	%rbx, -64(%rbp)
	cmpl	$0, 12(%r15)
	je	LBB0_97
## %bb.96:
	movl	60(%r15), %eax
	decl	%eax
	andl	%eax, 16(%r15)
LBB0_97:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
	movb	44(%r15), %cl
	jmp	LBB0_102
LBB0_98:
	leaq	88(%r15), %rdi
	callq	_dma_count_done
	movl	%eax, %ebx
	addl	%eax, %r13d
	addl	%eax, %r12d
	movl	%r12d, -76(%rbp)
	movl	152(%r15), %edi
	callq	_virt_to_phys
	movslq	%ebx, %rbx
	addq	%rax, %rbx
LBB0_99:
	movl	140(%r15), %edi
	callq	_virt_to_phys
	subq	%rax, %rbx
	movq	%rbx, -64(%rbp)
	cmpl	$0, 88(%r15)
	je	LBB0_101
## %bb.100:
	movl	136(%r15), %eax
	decl	%eax
	andl	%eax, 92(%r15)
LBB0_101:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
	movb	120(%r15), %cl
LBB0_102:
	shrl	%cl, %eax
	movl	%eax, -68(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_copy_to_user
	movl	%eax, %ebx
	jmp	LBB0_84
LBB0_103:
	movq	_AFMT_U8@GOTPCREL(%rip), %rax
	jmp	LBB0_104
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_84, LBB0_84-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_60, LBB0_60-LJTI0_0
.set L0_0_set_61, LBB0_61-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_66, LBB0_66-LJTI0_0
.set L0_0_set_69, LBB0_69-LJTI0_0
.set L0_0_set_71, LBB0_71-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_77, LBB0_77-LJTI0_0
.set L0_0_set_78, LBB0_78-LJTI0_0
.set L0_0_set_79, LBB0_79-LJTI0_0
.set L0_0_set_81, LBB0_81-LJTI0_0
.set L0_0_set_85, LBB0_85-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_22
	.long	L0_0_set_29
	.long	L0_0_set_40
	.long	L0_0_set_2
	.long	L0_0_set_45
	.long	L0_0_set_53
	.long	L0_0_set_84
	.long	L0_0_set_56
	.long	L0_0_set_84
	.long	L0_0_set_60
	.long	L0_0_set_61
	.long	L0_0_set_64
	.long	L0_0_set_66
	.long	L0_0_set_69
	.long	L0_0_set_71
	.long	L0_0_set_74
	.long	L0_0_set_77
	.long	L0_0_set_78
	.long	L0_0_set_79
	.long	L0_0_set_81
	.long	L0_0_set_85
	.end_data_region
                                        ## -- End function
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_SOUND_VERSION,4,2              ## @SOUND_VERSION
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_DSP_CAP_DUPLEX,4,2             ## @DSP_CAP_DUPLEX
	.comm	_DSP_CAP_REALTIME,4,2           ## @DSP_CAP_REALTIME
	.comm	_DSP_CAP_TRIGGER,4,2            ## @DSP_CAP_TRIGGER
	.comm	_DSP_CAP_MMAP,4,2               ## @DSP_CAP_MMAP
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_AC97_EXT_DACS,4,2              ## @AC97_EXT_DACS
	.comm	_AC97_EXTENDED_STATUS,4,2       ## @AC97_EXTENDED_STATUS
	.comm	_AC97_EXTSTAT_PRI,4,2           ## @AC97_EXTSTAT_PRI
	.comm	_AC97_EXTSTAT_PRJ,4,2           ## @AC97_EXTSTAT_PRJ
	.comm	_AC97_EXTSTAT_PRK,4,2           ## @AC97_EXTSTAT_PRK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AC97_EXTID_SDAC,4,2            ## @AC97_EXTID_SDAC
	.comm	_AFMT_S16_LE,4,2                ## @AFMT_S16_LE
	.comm	_AFMT_U8,4,2                    ## @AFMT_U8
	.comm	_AFMT_QUERY,4,2                 ## @AFMT_QUERY
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.comm	_PCM_ENABLE_OUTPUT,4,2          ## @PCM_ENABLE_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl SNDCTL_DSP_GETOSPACE: bytes=%d, fragments=%d\n"

	.comm	_ioctl_str,8,3                  ## @ioctl_str
	.no_dead_strip	_au1550_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1550_ioctl
_au1550_ioctl:                          ; @au1550_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	ldr	x19, [x1, #16]
	sub	w10, w2, #128
	cmp	w10, #27
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	w0, #0
Lloh0:
	adrp	x23, _FMODE_WRITE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FMODE_WRITE@GOTPAGEOFF]
	ldr	w8, [x1]
	ldr	w9, [x23]
	and	w9, w9, w8
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrh	w13, [x11, x10, lsl #1]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_81
LBB0_3:
	ldr	w0, [x19, #8]
	mov	x1, x2
	mov	x2, 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
	add	sp, sp, #96
	b	_mixdev_ioctl
LBB0_4:
Lloh6:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
LBB0_5:
	tst	w9, w8
	mov	w8, #100
	mov	w9, #24
	csel	x8, x9, x8, eq
	ldr	w0, [x19, x8]
	b	LBB0_92
LBB0_6:
Lloh9:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_84
; %bb.7:
	ldr	w0, [x19, #104]
	b	LBB0_92
LBB0_8:
Lloh12:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_85
; %bb.9:
	ldr	w0, [x19, #108]
	b	LBB0_92
LBB0_10:
	cbz	w9, LBB0_58
; %bb.11:
	ldr	w8, [x21, #4]
Lloh15:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w1, w9, w8
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_drain_dac
LBB0_12:
Lloh18:
	adrp	x22, _FMODE_READ@GOTPAGE
Lloh19:
	ldr	x22, [x22, _FMODE_READ@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19, #132]
	cbnz	w8, LBB0_2
LBB0_14:
	cbz	w9, LBB0_16
; %bb.15:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_2
LBB0_16:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.17:
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_stop_adc
	mov	x0, x19
	bl	_prog_dmabuf_adc
	cbnz	w0, LBB0_82
; %bb.19:
	ldr	w8, [x21]
LBB0_20:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.21:
	mov	x0, x19
	bl	_stop_dac
	b	LBB0_51
LBB0_22:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.23:
	ldr	w8, [x21]
Lloh20:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.24:
	mov	x0, x19
	bl	_stop_adc
	mov	w8, #1
	str	w8, [x19, #104]
	mov	x0, x19
	bl	_prog_dmabuf_adc
	cbnz	w0, LBB0_82
; %bb.25:
	ldr	w8, [x21]
LBB0_26:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.27:
	mov	x0, x19
	bl	_stop_dac
	mov	w8, #1
	str	w8, [x19, #28]
	ldr	w8, [x19, #4]
Lloh23:
	adrp	x9, _AC97_EXT_DACS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AC97_EXT_DACS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.28:
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x20, _AC97_EXTENDED_STATUS@GOTPAGE
Lloh27:
	ldr	x20, [x20, _AC97_EXTENDED_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rdcodec
	ldr	w8, [x19, #8]
	ldr	w1, [x20]
Lloh28:
	adrp	x9, _AC97_EXTSTAT_PRI@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AC97_EXTSTAT_PRI@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _AC97_EXTSTAT_PRJ@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AC97_EXTSTAT_PRJ@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
Lloh34:
	adrp	x11, _AC97_EXTSTAT_PRK@GOTPAGE
Lloh35:
	ldr	x11, [x11, _AC97_EXTSTAT_PRK@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
	orr	w9, w9, w0
	orr	w9, w9, w10
	orr	w2, w9, w11
	mov	x0, x8
	bl	_wrcodec
	b	LBB0_51
LBB0_29:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.30:
	ldr	w8, [x21]
Lloh37:
	adrp	x22, _FMODE_READ@GOTPAGE
Lloh38:
	ldr	x22, [x22, _FMODE_READ@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_stop_adc
	mov	x0, x19
	bl	_set_adc_rate
	ldr	w8, [x21]
LBB0_32:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_stop_dac
	mov	x0, x19
	bl	_set_dac_rate
LBB0_34:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.35:
	mov	x0, x19
	bl	_prog_dmabuf_adc
	cbnz	w0, LBB0_82
; %bb.36:
	ldr	w8, [x19]
LBB0_37:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.38:
	mov	x0, x19
	bl	_prog_dmabuf_dac
	cbnz	w0, LBB0_82
LBB0_39:
	ldr	w8, [x21]
	ldr	w9, [x22]
	b	LBB0_5
LBB0_40:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.41:
	ldr	w8, [x21]
Lloh39:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.42:
	mov	x0, x19
	bl	_stop_adc
	ldr	w8, [x21]
LBB0_43:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.44:
	mov	x0, x19
	bl	_stop_dac
	mov	w0, #0
	b	LBB0_82
LBB0_45:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.46:
	ldr	w8, [x21]
Lloh42:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_49
; %bb.47:
	mov	x0, x19
	bl	_stop_adc
	movi.2s	v0, #4
	stur	d0, [x19, #124]
	mov	x0, x19
	bl	_prog_dmabuf_adc
	cbnz	w0, LBB0_82
; %bb.48:
	ldr	w8, [x21]
LBB0_49:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.50:
	mov	x0, x19
	bl	_stop_dac
	movi.2s	v0, #4
	str	d0, [x19, #48]
LBB0_51:
	mov	x0, x19
	bl	_prog_dmabuf_dac
	cbnz	w0, LBB0_82
	b	LBB0_58
LBB0_52:
	mov	x1, x20
	bl	_get_user
	cbnz	w0, LBB0_80
; %bb.53:
Lloh45:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #108
	mov	w9, #32
	csel	x8, x9, x8, eq
	ldr	w8, [x19, x8]
Lloh48:
	adrp	x9, _AFMT_S16_LE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AFMT_S16_LE@GOTPAGEOFF]
Lloh50:
	adrp	x10, _AFMT_U8@GOTPAGE
Lloh51:
	ldr	x10, [x10, _AFMT_U8@GOTPAGEOFF]
	cmp	w8, #16
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	b	LBB0_92
LBB0_54:
	cbz	w9, LBB0_56
; %bb.55:
	mov	x0, x19
	bl	_stop_dac
	bl	_synchronize_irq
	str	xzr, [x19, #16]
	ldr	w8, [x19, #64]
	str	w8, [x19, #68]
	str	w8, [x19, #76]
	ldr	w8, [x21]
LBB0_56:
Lloh52:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh53:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.57:
	mov	x0, x19
	bl	_stop_adc
	bl	_synchronize_irq
	mov	w0, #0
	stp	wzr, wzr, [x19, #92]
	ldr	w8, [x19, #140]
	str	w8, [x19, #144]
	str	w8, [x19, #152]
	b	LBB0_82
LBB0_58:
	mov	w0, #0
	b	LBB0_82
LBB0_59:
	add	x19, x21, #8
	mov	x0, x19
	bl	_spin_lock
Lloh55:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh56:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_82
LBB0_60:
	add	x22, x19, #164
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh58:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh59:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_86
; %bb.61:
	ldr	w9, [x19, #148]
Lloh61:
	adrp	x10, _PCM_ENABLE_INPUT@GOTPAGE
Lloh62:
	ldr	x10, [x10, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w21, w10, wzr, eq
	b	LBB0_87
LBB0_62:
	cbz	w9, LBB0_2
; %bb.63:
	add	x21, x19, #12
	ldr	w8, [x19, #36]
	str	w8, [sp]
	add	x22, x19, #164
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w23, [x19, #16]
	mov	x0, x21
	bl	_dma_count_done
	sub	w21, w23, w0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cmp	w21, #0
	csel	w8, w21, wzr, gt
	ldp	w10, w9, [x19, #80]
	sub	w8, w9, w8
	ldp	w9, w11, [x19, #40]
	sdiv	w1, w8, w9
	str	w10, [sp, #24]
	asr	w8, w1, w11
	stp	w1, w8, [sp, #4]
	sxtw	x2, w8
Lloh64:
	adrp	x0, l_.str@PAGE
Lloh65:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	b	LBB0_71
LBB0_64:
Lloh66:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh67:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.65:
	add	x21, x19, #164
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w23, w24, [x19, #16]
	str	w24, [sp, #4]
	ldr	w8, [x19, #72]
	cbz	w8, LBB0_93
; %bb.66:
	ldr	w0, [x19, #68]
	bl	_virt_to_phys
	mov	x22, x0
	b	LBB0_94
LBB0_67:
	cbz	w9, LBB0_2
; %bb.68:
	add	x21, x19, #164
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x19, #12
	ldr	w22, [x19, #16]
	bl	_dma_count_done
	sub	w22, w22, w0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w22, #0
	csel	w8, w22, wzr, gt
	ldr	w9, [x19, #40]
	sdiv	w0, w8, w9
	b	LBB0_92
LBB0_69:
Lloh69:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh70:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.70:
	add	x21, x19, #88
	ldr	w8, [x19, #112]
	str	w8, [sp]
	add	x22, x19, #164
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w23, [x19, #92]
	mov	x0, x21
	bl	_dma_count_done
	add	w21, w0, w23
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cmp	w21, #0
	csel	w8, w21, wzr, gt
	ldp	w9, w10, [x19, #116]
	sdiv	w8, w8, w9
	ldr	w9, [x19, #156]
	str	w9, [sp, #24]
	asr	w9, w8, w10
	stp	w8, w9, [sp, #4]
LBB0_71:
	mov	x1, sp
	mov	x0, x20
	mov	w2, #32
	bl	_copy_to_user
Lloh72:
	adrp	x8, _EFAULT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_82
LBB0_72:
Lloh75:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh76:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.73:
	add	x21, x19, #164
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w23, w24, [x19, #92]
	str	w24, [sp, #4]
	ldr	w8, [x19, #148]
	cbz	w8, LBB0_97
; %bb.74:
	ldr	w0, [x19, #152]
	bl	_virt_to_phys
	mov	x22, x0
	b	LBB0_98
LBB0_75:
Lloh78:
	adrp	x8, _AFMT_S16_LE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AFMT_S16_LE@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
Lloh81:
	adrp	x9, _AFMT_U8@GOTPAGE
Lloh82:
	ldr	x9, [x9, _AFMT_U8@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_92
LBB0_76:
Lloh84:
	adrp	x8, _DSP_CAP_DUPLEX@GOTPAGE
Lloh85:
	ldr	x8, [x8, _DSP_CAP_DUPLEX@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
Lloh87:
	adrp	x9, _DSP_CAP_REALTIME@GOTPAGE
Lloh88:
	ldr	x9, [x9, _DSP_CAP_REALTIME@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh90:
	adrp	x9, _DSP_CAP_TRIGGER@GOTPAGE
Lloh91:
	ldr	x9, [x9, _DSP_CAP_TRIGGER@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh93:
	adrp	x9, _DSP_CAP_MMAP@GOTPAGE
Lloh94:
	ldr	x9, [x9, _DSP_CAP_MMAP@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_92
LBB0_77:
	cbz	w9, LBB0_91
; %bb.78:
	ldr	w0, [x19, #36]
	b	LBB0_92
LBB0_79:
	mov	x1, x20
	bl	_get_user
                                        ; implicit-def: $w0
	cbz	w0, LBB0_92
LBB0_80:
Lloh96:
	adrp	x8, _EFAULT@GOTPAGE
Lloh97:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_81:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_82:
	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
	add	sp, sp, #96
	ret
LBB0_83:
Lloh98:
	adrp	x8, _SOUND_VERSION@GOTPAGE
Lloh99:
	ldr	x8, [x8, _SOUND_VERSION@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
	b	LBB0_92
LBB0_84:
	ldr	w0, [x19, #28]
	b	LBB0_92
LBB0_85:
	ldr	w0, [x19, #32]
	b	LBB0_92
LBB0_86:
	mov	w21, #0
LBB0_87:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_90
; %bb.88:
	ldr	w8, [x19, #72]
	cbnz	w8, LBB0_90
; %bb.89:
Lloh101:
	adrp	x8, _PCM_ENABLE_OUTPUT@GOTPAGE
Lloh102:
	ldr	x8, [x8, _PCM_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_90:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	b	LBB0_92
LBB0_91:
	ldr	w0, [x19, #112]
LBB0_92:
	mov	x1, 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
	add	sp, sp, #96
	b	_put_user
LBB0_93:
	add	x0, x19, #12
	bl	_dma_count_done
	mov	x22, x0
	sub	w23, w23, w0
	add	w8, w24, w0
	str	w8, [sp, #4]
	ldr	w0, [x19, #68]
	bl	_virt_to_phys
	add	x22, x0, w22, sxtw
LBB0_94:
	ldr	w0, [x19, #64]
	bl	_virt_to_phys
	sub	x8, x22, x0
	str	x8, [sp, #16]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_96
; %bb.95:
	ldr	w8, [x19, #60]
	sub	w8, w8, #1
	ldr	w9, [x19, #16]
	and	w8, w9, w8
	str	w8, [x19, #16]
LBB0_96:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w23, #0
	csel	w8, w23, wzr, gt
	ldr	w9, [x19, #44]
	b	LBB0_101
LBB0_97:
	add	x0, x19, #88
	bl	_dma_count_done
	mov	x22, x0
	add	w23, w0, w23
	add	w8, w24, w0
	str	w8, [sp, #4]
	ldr	w0, [x19, #152]
	bl	_virt_to_phys
	add	x22, x0, w22, sxtw
LBB0_98:
	ldr	w0, [x19, #140]
	bl	_virt_to_phys
	sub	x8, x22, x0
	str	x8, [sp, #16]
	ldr	w8, [x19, #88]
	cbz	w8, LBB0_100
; %bb.99:
	ldr	w8, [x19, #136]
	sub	w8, w8, #1
	ldr	w9, [x19, #92]
	and	w8, w9, w8
	str	w8, [x19, #92]
LBB0_100:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w23, #0
	csel	w8, w23, wzr, gt
	ldr	w9, [x19, #120]
LBB0_101:
	lsr	w8, w8, w9
	str	w8, [sp, #12]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #32
	bl	_copy_to_user
	b	LBB0_82
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_4-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_6-LBB0_2)>>2
	.short	(LBB0_8-LBB0_2)>>2
	.short	(LBB0_10-LBB0_2)>>2
	.short	(LBB0_12-LBB0_2)>>2
	.short	(LBB0_22-LBB0_2)>>2
	.short	(LBB0_29-LBB0_2)>>2
	.short	(LBB0_40-LBB0_2)>>2
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_45-LBB0_2)>>2
	.short	(LBB0_52-LBB0_2)>>2
	.short	(LBB0_82-LBB0_2)>>2
	.short	(LBB0_54-LBB0_2)>>2
	.short	(LBB0_82-LBB0_2)>>2
	.short	(LBB0_59-LBB0_2)>>2
	.short	(LBB0_60-LBB0_2)>>2
	.short	(LBB0_62-LBB0_2)>>2
	.short	(LBB0_64-LBB0_2)>>2
	.short	(LBB0_67-LBB0_2)>>2
	.short	(LBB0_69-LBB0_2)>>2
	.short	(LBB0_72-LBB0_2)>>2
	.short	(LBB0_75-LBB0_2)>>2
	.short	(LBB0_76-LBB0_2)>>2
	.short	(LBB0_77-LBB0_2)>>2
	.short	(LBB0_79-LBB0_2)>>2
	.short	(LBB0_83-LBB0_2)>>2
                                        ; -- End function
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_SOUND_VERSION,4,2              ; @SOUND_VERSION
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_DSP_CAP_DUPLEX,4,2             ; @DSP_CAP_DUPLEX
	.comm	_DSP_CAP_REALTIME,4,2           ; @DSP_CAP_REALTIME
	.comm	_DSP_CAP_TRIGGER,4,2            ; @DSP_CAP_TRIGGER
	.comm	_DSP_CAP_MMAP,4,2               ; @DSP_CAP_MMAP
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_AC97_EXT_DACS,4,2              ; @AC97_EXT_DACS
	.comm	_AC97_EXTENDED_STATUS,4,2       ; @AC97_EXTENDED_STATUS
	.comm	_AC97_EXTSTAT_PRI,4,2           ; @AC97_EXTSTAT_PRI
	.comm	_AC97_EXTSTAT_PRJ,4,2           ; @AC97_EXTSTAT_PRJ
	.comm	_AC97_EXTSTAT_PRK,4,2           ; @AC97_EXTSTAT_PRK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AC97_EXTID_SDAC,4,2            ; @AC97_EXTID_SDAC
	.comm	_AFMT_S16_LE,4,2                ; @AFMT_S16_LE
	.comm	_AFMT_U8,4,2                    ; @AFMT_U8
	.comm	_AFMT_QUERY,4,2                 ; @AFMT_QUERY
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.comm	_PCM_ENABLE_OUTPUT,4,2          ; @PCM_ENABLE_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl SNDCTL_DSP_GETOSPACE: bytes=%d, fragments=%d\n"

	.comm	_ioctl_str,8,3                  ; @ioctl_str
	.no_dead_strip	_au1550_ioctl
.subsections_via_symbols
