	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vwsnd_audio_do_ioctl
_vwsnd_audio_do_ioctl:                  ## @vwsnd_audio_do_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r8
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	16(%r14), %rbx
	movl	(%r14), %ecx
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	72(%rbx), %r13
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	%rbx, %rax
	cmoveq	%r12, %rax
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	testl	%ecx, %edx
	movq	%r13, %rcx
	cmoveq	%r12, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmoveq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_DBGEV
	leal	-128(%r15), %eax
	cmpl	$23, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_3:
	leaq	L_.str.33(%rip), %rdi
	movl	%r15d, %esi
	jmp	LBB0_49
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	4(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_5:
	leaq	L_.str.25(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_47
## %bb.6:
	movq	%rbx, %rdi
	callq	_pcm_flush_frag
	jmp	LBB0_46
LBB0_7:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.8:
	leaq	L_.str.16(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	8(%r13), %eax
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_50
## %bb.9:
	movl	12(%r13), %ecx
	movq	_MIN_FRAGSHIFT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_90
## %bb.10:
	movq	_MAX_FRAGSHIFT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_90
## %bb.11:
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	20(%r13), %r14d
	movl	%ebx, %edi
	callq	_MIN_FRAGCOUNT
	cmpl	%eax, %r14d
	jl	LBB0_90
## %bb.12:
	movl	%ebx, %edi
	callq	_MAX_FRAGCOUNT
	cmpl	%eax, %r14d
	jg	LBB0_90
## %bb.13:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 16(%rax)
LBB0_15:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.16:
	movl	$0, 16(%rax)
	jmp	LBB0_29
LBB0_17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.18:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	8(%r13), %eax
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
                                        ## implicit-def: $edi
                                        ## implicit-def: $di
                                        ## implicit-def: $dih
                                        ## implicit-def: $dil
                                        ## implicit-def: $hdi
	jne	LBB0_50
	jmp	LBB0_88
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.20:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	(%r13), %edi
	jmp	LBB0_88
LBB0_21:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.22:
	leaq	L_.str.32(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	testl	%edx, %esi
	jne	LBB0_24
## %bb.23:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_25
LBB0_24:
	movl	8(%r13), %eax
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_90
LBB0_25:
	testl	%edx, %esi
	je	LBB0_27
## %bb.26:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	52(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_27:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.28:
	leaq	52(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_29
LBB0_30:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.31:
	leaq	L_.str.12(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_DBGX
	movl	8(%r13), %eax
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_50
## %bb.32:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	16(%r13), %r12d
	movl	%r12d, %ebx
	negl	%ebx
	movq	_MIN_FRAGSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	movq	_MAX_FRAGSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	movl	%r14d, %edi
	callq	_MIN_FRAGCOUNT
	testl	%eax, %eax
	jle	LBB0_34
## %bb.33:
	movl	%r14d, %edi
	callq	_MIN_FRAGCOUNT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_34:
	addl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_MAX_FRAGCOUNT
	movq	-120(%rbp), %r12                ## 8-byte Reload
	cmpl	%eax, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_36
## %bb.35:
	movl	%r14d, %edi
	callq	_MAX_FRAGCOUNT
	movl	%eax, %r12d
LBB0_36:
	leaq	L_.str.13(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBGPV
	leaq	L_.str.14(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DBGPV
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movl	%ebx, 12(%r13)
	movl	%r12d, 20(%r13)
LBB0_38:
	testq	%r15, %r15
	je	LBB0_40
## %bb.39:
	movl	%ebx, 12(%r15)
	movl	%r12d, 20(%r15)
LBB0_40:
	shll	$16, %r12d
	orl	%ebx, %r12d
	movl	%r12d, %esi
	sarl	$16, %esi
	movzwl	%bx, %edx
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	%r12d, %edi
	movq	%r14, %rsi
	jmp	LBB0_93
LBB0_41:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.42:
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	24(%r13), %edi
	jmp	LBB0_88
LBB0_43:
	leaq	L_.str.24(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_47
## %bb.44:
	cmpl	$0, 68(%r14)
	je	LBB0_47
## %bb.45:
	movq	_SW_INITIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pcm_output
LBB0_46:
	movq	%rbx, %rdi
	callq	_pcm_write_sync
LBB0_47:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_pcm_shutdown
	jmp	LBB0_29
LBB0_48:
	leaq	L_.str.30(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	leaq	L_.str.34(%rip), %rdi
	movl	$138, %esi
LBB0_49:
	callq	_DBGP
LBB0_50:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_52:
	leaq	L_.str.26(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_90
## %bb.53:
	movq	%rbx, %rdi
	callq	_pcm_flush_frag
	jmp	LBB0_29
LBB0_54:
	leaq	L_.str.23(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_29
LBB0_55:
	leaq	L_.str.31(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_59
## %bb.56:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	52(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	andl	48(%rbx), %eax
	jne	LBB0_58
## %bb.57:
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_58:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_59:
	testq	%r15, %r15
	je	LBB0_91
## %bb.60:
	leaq	52(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	andl	48(%r15), %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_62
## %bb.61:
	movq	_PCM_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_62:
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_92
LBB0_63:
	leaq	L_.str.19(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGXV
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_50
## %bb.64:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_pcm_setup
	testl	%eax, %eax
	js	LBB0_98
## %bb.65:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_swb_inc_u
	movb	12(%r14), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	movl	%esi, -112(%rbp)
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	20(%r14), %edx
	movl	%edx, -108(%rbp)
	movl	%ebx, -104(%rbp)
	movl	%eax, -100(%rbp)
	leaq	L_.str.20(%rip), %rdi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DBGXV
	jmp	LBB0_76
LBB0_66:
	leaq	L_.str.28(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_67
	jmp	LBB0_50
LBB0_69:
	leaq	L_.str.29(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_50
## %bb.70:
	leaq	52(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	32(%rbx), %r15d
	movl	40(%rbx), %eax
	cltd
	idivl	%r15d
	movl	%eax, %r12d
	movl	60(%rbx), %eax
	movq	_HW_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_72
## %bb.71:
	movl	44(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	leaq	56(%rbx), %r13
	movq	%r13, %rdi
	callq	_li_read_swptr
	movl	%eax, %ebx
	leaq	-112(%rbp), %rsi
	movq	%r13, %rdi
	callq	_li_read_USTMSC
	movl	-112(%rbp), %eax
	subl	28(%r14), %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	imull	%r15d, %eax
	cltd
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	idivl	%ecx
	addl	%ecx, %ebx
	subl	%edx, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltd
	idivl	%r15d
	addl	%eax, %r12d
LBB0_72:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_put_user
	movl	%eax, %r12d
	jmp	LBB0_29
LBB0_73:
	leaq	L_.str.21(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_50
## %bb.74:
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_pcm_setup
	testl	%eax, %eax
	js	LBB0_98
## %bb.75:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_swb_inc_u
	movb	12(%r14), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	movl	%esi, -112(%rbp)
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	20(%r14), %edx
	movl	%edx, -108(%rbp)
	movl	%ebx, -104(%rbp)
	movl	%eax, -100(%rbp)
	leaq	L_.str.22(%rip), %rdi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DBGX
LBB0_76:
	leaq	-112(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$24, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	jne	LBB0_77
	jmp	LBB0_29
LBB0_79:
	leaq	L_.str.27(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_50
## %bb.80:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_67:
	leaq	52(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	60(%rbx), %eax
	movq	_HW_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_95
## %bb.68:
	movl	8(%rbx), %eax
	movq	_SW_RUN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_ASSERT
	leaq	56(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	callq	_li_read_USTMSC
	movl	-88(%rbp), %eax
	subl	28(%rbx), %eax
	imull	32(%rbx), %eax
	jmp	LBB0_96
LBB0_81:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movl	$159, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_82:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	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	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_83:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_pcm_setup
	testl	%eax, %eax
	js	LBB0_94
## %bb.84:
	movb	12(%r13), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	leaq	L_.str.11(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBGX
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_85:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_user
	testl	%eax, %eax
	jne	LBB0_77
## %bb.86:
	leaq	L_.str.9(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBGX
	movl	8(%r13), %eax
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_50
## %bb.87:
                                        ## implicit-def: $edi
LBB0_88:
	movq	%rbx, %rsi
	jmp	LBB0_93
LBB0_89:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGX
	movq	_SOUND_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_90:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_78
LBB0_95:
	movl	36(%rbx), %eax
LBB0_96:
	movl	%eax, -100(%rbp)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	64(%rbx), %eax
	movl	%eax, -92(%rbp)
	movl	$0, -96(%rbp)
	movl	$0, 64(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_97
LBB0_77:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_78:
	xorl	%r12d, %r12d
LBB0_51:
	subl	(%rax), %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_98:
	movl	%eax, %r12d
	jmp	LBB0_29
LBB0_97:
	xorl	%r12d, %r12d
	jmp	LBB0_29
LBB0_91:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_92:
	movl	%r12d, %edi
	movq	%r15, %rsi
LBB0_93:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_user                       ## TAILCALL
LBB0_94:
	movl	%eax, %r12d
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DBGX
	jmp	LBB0_29
	.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_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_63, LBB0_63-LJTI0_0
.set L0_0_set_66, LBB0_66-LJTI0_0
.set L0_0_set_69, LBB0_69-LJTI0_0
.set L0_0_set_73, LBB0_73-LJTI0_0
.set L0_0_set_79, LBB0_79-LJTI0_0
.set L0_0_set_81, LBB0_81-LJTI0_0
.set L0_0_set_82, LBB0_82-LJTI0_0
.set L0_0_set_83, LBB0_83-LJTI0_0
.set L0_0_set_85, LBB0_85-LJTI0_0
.set L0_0_set_89, LBB0_89-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_21
	.long	L0_0_set_30
	.long	L0_0_set_41
	.long	L0_0_set_43
	.long	L0_0_set_48
	.long	L0_0_set_52
	.long	L0_0_set_54
	.long	L0_0_set_55
	.long	L0_0_set_63
	.long	L0_0_set_66
	.long	L0_0_set_69
	.long	L0_0_set_73
	.long	L0_0_set_79
	.long	L0_0_set_81
	.long	L0_0_set_82
	.long	L0_0_set_83
	.long	L0_0_set_85
	.long	L0_0_set_89
	.end_data_region
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(inode=0x%p, file=0x%p, cmd=0x%x, arg=0x%lx)\n"

L_.str.1:                               ## @.str.1
	.asciz	"OSS_GETVERSION\n"

	.comm	_SOUND_VERSION,4,2              ## @SOUND_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"SNDCTL_DSP_GETCAPS\n"

	.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
L_.str.3:                               ## @.str.3
	.asciz	"SNDCTL_DSP_GETFMTS\n"

L_.str.4:                               ## @.str.4
	.asciz	"SOUND_PCM_READ_RATE\n"

L_.str.5:                               ## @.str.5
	.asciz	"SOUND_PCM_READ_CHANNELS\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.6:                               ## @.str.6
	.asciz	"SNDCTL_DSP_SPEED %d\n"

	.comm	_SW_INITIAL,4,2                 ## @SW_INITIAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIN_SPEED,4,2                  ## @MIN_SPEED
	.comm	_MAX_SPEED,4,2                  ## @MAX_SPEED
L_.str.8:                               ## @.str.8
	.asciz	"SNDCTL_DSP_STEREO %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"SNDCTL_DSP_CHANNELS %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"SNDCTL_DSP_GETBLKSIZE failed, errno %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"SNDCTL_DSP_GETBLKSIZE returning %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"SNDCTL_DSP_SETFRAGMENT %d:%d\n"

	.comm	_MIN_FRAGSHIFT,4,2              ## @MIN_FRAGSHIFT
	.comm	_MAX_FRAGSHIFT,4,2              ## @MAX_FRAGSHIFT
L_.str.13:                              ## @.str.13
	.asciz	"sw_fragshift = %d\n"

L_.str.14:                              ## @.str.14
	.asciz	"rport = 0x%p, wport = 0x%p\n"

L_.str.15:                              ## @.str.15
	.asciz	"SNDCTL_DSP_SETFRAGMENT returns %d:%d\n"

L_.str.16:                              ## @.str.16
	.asciz	"SNDCTL_DSP_SUBDIVIDE %d\n"

L_.str.17:                              ## @.str.17
	.asciz	"SNDCTL_DSP_SETFMT %d\n"

	.comm	_AFMT_QUERY,4,2                 ## @AFMT_QUERY
L_.str.19:                              ## @.str.19
	.asciz	"SNDCTL_DSP_GETOSPACE\n"

L_.str.20:                              ## @.str.20
	.asciz	"SNDCTL_DSP_GETOSPACE returns { %d %d %d %d }\n"

L_.str.21:                              ## @.str.21
	.asciz	"SNDCTL_DSP_GETISPACE\n"

L_.str.22:                              ## @.str.22
	.asciz	"SNDCTL_DSP_GETISPACE returns { %d %d %d %d }\n"

L_.str.23:                              ## @.str.23
	.asciz	"SNDCTL_DSP_NONBLOCK\n"

	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.24:                              ## @.str.24
	.asciz	"SNDCTL_DSP_RESET\n"

L_.str.25:                              ## @.str.25
	.asciz	"SNDCTL_DSP_SYNC\n"

L_.str.26:                              ## @.str.26
	.asciz	"SNDCTL_DSP_POST\n"

L_.str.27:                              ## @.str.27
	.asciz	"SNDCTL_DSP_GETIPTR\n"

	.comm	_HW_RUNNING,4,2                 ## @HW_RUNNING
	.comm	_SW_RUN,4,2                     ## @SW_RUN
L_.str.28:                              ## @.str.28
	.asciz	"SNDCTL_DSP_GETOPTR\n"

L_.str.29:                              ## @.str.29
	.asciz	"SNDCTL_DSP_GETODELAY\n"

L_.str.30:                              ## @.str.30
	.asciz	"SNDCTL_DSP_PROFILE\n"

L_.str.31:                              ## @.str.31
	.asciz	"SNDCTL_DSP_GETTRIGGER\n"

	.comm	_DISABLED,4,2                   ## @DISABLED
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.comm	_PCM_ENABLE_OUTPUT,4,2          ## @PCM_ENABLE_OUTPUT
L_.str.32:                              ## @.str.32
	.asciz	"SNDCTL_DSP_SETTRIGGER %d\n"

L_.str.33:                              ## @.str.33
	.asciz	"unknown ioctl 0x%x\n"

L_.str.34:                              ## @.str.34
	.asciz	"unimplemented ioctl 0x%x\n"

	.no_dead_strip	_vwsnd_audio_do_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vwsnd_audio_do_ioctl
_vwsnd_audio_do_ioctl:                  ; @vwsnd_audio_do_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x24, x2
	mov	x23, x1
	mov	x1, x0
	ldr	x22, [x23, #16]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	csel	x20, xzr, x22, eq
	ands	w25, w9, w8
	add	x8, x22, #72
	csel	x21, xzr, x8, eq
	csel	x26, x20, x8, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	mov	x4, x19
	bl	_DBGEV
	sub	w8, w24, #128
	cmp	w8, #23
	b.hi	LBB0_3
; %bb.1:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_3:
Lloh12:
	adrp	x0, l_.str.33@PAGE
Lloh13:
	add	x0, x0, l_.str.33@PAGEOFF
	mov	x1, x24
	b	LBB0_40
LBB0_4:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBGX
	ldr	w0, [x26, #4]
	b	LBB0_76
LBB0_5:
Lloh16:
	adrp	x0, l_.str.25@PAGE
Lloh17:
	add	x0, x0, l_.str.25@PAGEOFF
	bl	_DBGX
	cbz	x20, LBB0_38
; %bb.6:
	mov	x0, x22
	bl	_pcm_flush_frag
	b	LBB0_37
LBB0_7:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.8:
Lloh18:
	adrp	x0, l_.str.16@PAGE
Lloh19:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DBGX
	ldr	w8, [x26, #8]
Lloh20:
	adrp	x9, _SW_INITIAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SW_INITIAL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_41
; %bb.9:
	ldr	w8, [x26, #12]
Lloh23:
	adrp	x9, _MIN_FRAGSHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MIN_FRAGSHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _MAX_FRAGSHIFT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MAX_FRAGSHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.gt	LBB0_41
; %bb.10:
	mov	w9, #1
	lsl	w19, w9, w8
	ldr	w22, [x26, #20]
	mov	x0, x19
	bl	_MIN_FRAGCOUNT
	cmp	w22, w0
	b.lt	LBB0_41
; %bb.11:
	mov	x0, x19
	bl	_MAX_FRAGCOUNT
	cmp	w22, w0
	b.gt	LBB0_41
; %bb.12:
	cbz	w25, LBB0_14
; %bb.13:
	str	wzr, [x21, #16]
LBB0_14:
	mov	w22, #0
	cbz	x20, LBB0_86
; %bb.15:
	str	wzr, [x20, #16]
	b	LBB0_86
LBB0_16:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.17:
Lloh29:
	adrp	x0, l_.str.8@PAGE
Lloh30:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DBGX
	ldr	w8, [x26, #8]
Lloh31:
	adrp	x9, _SW_INITIAL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SW_INITIAL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
                                        ; implicit-def: $w0
	b.ne	LBB0_41
	b	LBB0_76
LBB0_18:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.19:
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_20:
	bl	_DBGX
	ldr	w0, [x26]
	b	LBB0_76
LBB0_21:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.22:
Lloh36:
	adrp	x0, l_.str.32@PAGE
Lloh37:
	add	x0, x0, l_.str.32@PAGEOFF
	bl	_DBGX
	cmp	w25, #0
	ccmp	x20, #0, #0, eq
	b.eq	LBB0_24
; %bb.23:
	ldr	w8, [x26, #8]
Lloh38:
	adrp	x9, _SW_INITIAL@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SW_INITIAL@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_41
LBB0_24:
	cbz	w25, LBB0_26
; %bb.25:
	add	x19, x21, #52
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh41:
	adrp	x8, _DISABLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DISABLED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x21, #48]
	orr	w8, w9, w8
	str	w8, [x21, #48]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_26:
	cbz	x20, LBB0_87
; %bb.27:
	add	x19, x20, #52
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #48]
Lloh44:
	adrp	x9, _DISABLED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _DISABLED@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #48]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w22, #0
	b	LBB0_86
LBB0_28:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.29:
	stp	xzr, xzr, [sp]
Lloh47:
	adrp	x0, l_.str.12@PAGE
Lloh48:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DBGX
	ldr	w8, [x26, #8]
Lloh49:
	adrp	x9, _SW_INITIAL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _SW_INITIAL@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_41
; %bb.30:
Lloh52:
	adrp	x8, _MIN_FRAGSHIFT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MIN_FRAGSHIFT@GOTPAGEOFF]
	ldr	w24, [x26, #16]
Lloh54:
	ldr	w8, [x8]
	neg	w9, w24
	cmp	w8, w9
Lloh55:
	adrp	x9, _MAX_FRAGSHIFT@GOTPAGE
Lloh56:
	ldr	x9, [x9, _MAX_FRAGSHIFT@GOTPAGEOFF]
	csneg	w8, w8, w24, gt
Lloh57:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w26, w8, w9, lt
	mov	w8, #1
	lsl	w23, w8, w26
	mov	x0, x23
	bl	_MIN_FRAGCOUNT
	cmp	w0, #1
	b.lt	LBB0_88
; %bb.31:
	mov	x0, x23
	bl	_MIN_FRAGCOUNT
	mov	x22, x0
	b	LBB0_89
LBB0_32:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.33:
Lloh58:
	adrp	x0, l_.str.17@PAGE
Lloh59:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_DBGX
	ldr	w0, [x26, #24]
	b	LBB0_76
LBB0_34:
Lloh60:
	adrp	x0, l_.str.24@PAGE
Lloh61:
	add	x0, x0, l_.str.24@PAGEOFF
	bl	_DBGX
	cbz	x20, LBB0_38
; %bb.35:
	ldr	w8, [x20, #68]
	cbz	w8, LBB0_38
; %bb.36:
Lloh62:
	adrp	x8, _SW_INITIAL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SW_INITIAL@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_pcm_output
LBB0_37:
	mov	x0, x22
	bl	_pcm_write_sync
LBB0_38:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_pcm_shutdown
	mov	w22, #0
	b	LBB0_86
LBB0_39:
Lloh65:
	adrp	x0, l_.str.30@PAGE
Lloh66:
	add	x0, x0, l_.str.30@PAGEOFF
	bl	_DBGX
Lloh67:
	adrp	x0, l_.str.34@PAGE
Lloh68:
	add	x0, x0, l_.str.34@PAGEOFF
	mov	w1, #138
LBB0_40:
	bl	_DBGP
LBB0_41:
Lloh69:
	adrp	x8, _EINVAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_85
LBB0_42:
Lloh71:
	adrp	x0, l_.str.26@PAGE
Lloh72:
	add	x0, x0, l_.str.26@PAGEOFF
	bl	_DBGX
	cbz	x20, LBB0_41
; %bb.43:
	mov	x0, x22
	bl	_pcm_flush_frag
	mov	w22, #0
	b	LBB0_86
LBB0_44:
Lloh73:
	adrp	x0, l_.str.23@PAGE
Lloh74:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_DBGX
	add	x19, x23, #4
	mov	x0, x19
	bl	_spin_lock
Lloh75:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh76:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x23, #8]
	orr	w8, w9, w8
	str	w8, [x23, #8]
	mov	x0, x19
	bl	_spin_unlock
	mov	w22, #0
	b	LBB0_86
LBB0_45:
Lloh78:
	adrp	x0, l_.str.31@PAGE
Lloh79:
	add	x0, x0, l_.str.31@PAGEOFF
	bl	_DBGX
Lloh80:
	adrp	x23, _DISABLED@GOTPAGE
Lloh81:
	ldr	x23, [x23, _DISABLED@GOTPAGEOFF]
	cbz	w25, LBB0_72
; %bb.46:
	add	x22, x21, #52
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21, #48]
	ldr	w9, [x23]
Lloh82:
	adrp	x10, _PCM_ENABLE_INPUT@GOTPAGE
Lloh83:
	ldr	x10, [x10, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh84:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w21, w10, wzr, eq
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_73
LBB0_47:
Lloh85:
	adrp	x0, l_.str.19@PAGE
Lloh86:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_DBGXV
	cbz	x20, LBB0_41
; %bb.48:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_pcm_setup
	tbnz	w0, #31, LBB0_71
; %bb.49:
	mov	x0, x20
	mov	w1, #0
	bl	_swb_inc_u
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20, #12]
	asr	w9, w0, w8
	ldr	w10, [x20, #20]
	stp	w9, w10, [sp, #40]
	mov	w11, #1
	lsl	w8, w11, w8
	stp	w8, w0, [sp, #48]
	stp	x8, x0, [sp, #16]
	stp	x9, x10, [sp]
Lloh87:
	adrp	x0, l_.str.20@PAGE
Lloh88:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_DBGXV
	b	LBB0_83
LBB0_50:
Lloh89:
	adrp	x0, l_.str.28@PAGE
Lloh90:
	add	x0, x0, l_.str.28@PAGEOFF
	bl	_DBGX
	cbz	x20, LBB0_41
; %bb.51:
	add	x21, x20, #52
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #60]
Lloh91:
	adrp	x9, _HW_RUNNING@GOTPAGE
Lloh92:
	ldr	x9, [x9, _HW_RUNNING@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_78
; %bb.52:
	ldr	w8, [x20, #8]
Lloh94:
	adrp	x9, _SW_RUN@GOTPAGE
Lloh95:
	ldr	x9, [x9, _SW_RUN@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_ASSERT
	add	x0, x20, #56
	add	x1, sp, #32
	bl	_li_read_USTMSC
	ldr	w8, [sp, #32]
	ldp	w9, w10, [x20, #28]
	sub	w8, w8, w9
	mul	w8, w10, w8
	b	LBB0_79
LBB0_53:
Lloh97:
	adrp	x0, l_.str.29@PAGE
Lloh98:
	add	x0, x0, l_.str.29@PAGEOFF
	bl	_DBGX
	cbz	x20, LBB0_41
; %bb.54:
	add	x21, x20, #52
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w25, [x20, #32]
	ldr	w8, [x20, #40]
	sdiv	w22, w8, w25
	ldr	w8, [x20, #60]
Lloh99:
	adrp	x9, _HW_RUNNING@GOTPAGE
Lloh100:
	ldr	x9, [x9, _HW_RUNNING@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_56
; %bb.55:
	ldr	w26, [x20, #44]
	add	x23, x20, #56
	mov	x0, x23
	bl	_li_read_swptr
	mov	x24, x0
	add	x1, sp, #40
	mov	x0, x23
	bl	_li_read_USTMSC
	ldr	w8, [sp, #40]
	ldr	w9, [x20, #28]
	sub	w8, w8, w9
	mul	w8, w8, w25
	sdiv	w9, w8, w26
	neg	w8, w8
	madd	w8, w9, w26, w8
	add	w9, w24, w26
	add	w8, w9, w8
	sdiv	w9, w8, w26
	msub	w8, w9, w26, w8
	sdiv	w8, w8, w25
	add	w22, w8, w22
LBB0_56:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	mov	x1, x19
	bl	_put_user
	mov	x22, x0
	b	LBB0_86
LBB0_57:
Lloh102:
	adrp	x0, l_.str.21@PAGE
Lloh103:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_DBGX
	cbz	w25, LBB0_41
; %bb.58:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_pcm_setup
	tbnz	w0, #31, LBB0_71
; %bb.59:
	mov	x0, x21
	mov	w1, #0
	bl	_swb_inc_u
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21, #12]
	asr	w9, w0, w8
	ldr	w10, [x21, #20]
	stp	w9, w10, [sp, #40]
	mov	w11, #1
	lsl	w8, w11, w8
	stp	w8, w0, [sp, #48]
	stp	x8, x0, [sp, #16]
	stp	x9, x10, [sp]
Lloh104:
	adrp	x0, l_.str.22@PAGE
Lloh105:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_DBGX
	b	LBB0_83
LBB0_60:
Lloh106:
	adrp	x0, l_.str.27@PAGE
Lloh107:
	add	x0, x0, l_.str.27@PAGEOFF
	bl	_DBGX
	cbz	w25, LBB0_41
; %bb.61:
	add	x20, x21, #52
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21, #60]
Lloh108:
	adrp	x9, _HW_RUNNING@GOTPAGE
Lloh109:
	ldr	x9, [x9, _HW_RUNNING@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_80
; %bb.62:
	ldr	w8, [x21, #8]
Lloh111:
	adrp	x9, _SW_RUN@GOTPAGE
Lloh112:
	ldr	x9, [x9, _SW_RUN@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_ASSERT
	add	x0, x21, #56
	add	x1, sp, #32
	bl	_li_read_USTMSC
	ldr	w8, [sp, #32]
	ldp	w9, w10, [x21, #28]
	sub	w8, w8, w9
	mul	w8, w10, w8
	b	LBB0_81
LBB0_63:
Lloh114:
	adrp	x0, l_.str.3@PAGE
Lloh115:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBGX
	mov	w0, #159
	b	LBB0_76
LBB0_64:
Lloh116:
	adrp	x0, l_.str.2@PAGE
Lloh117:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGX
Lloh118:
	adrp	x8, _DSP_CAP_DUPLEX@GOTPAGE
Lloh119:
	ldr	x8, [x8, _DSP_CAP_DUPLEX@GOTPAGEOFF]
Lloh120:
	ldr	w8, [x8]
Lloh121:
	adrp	x9, _DSP_CAP_REALTIME@GOTPAGE
Lloh122:
	ldr	x9, [x9, _DSP_CAP_REALTIME@GOTPAGEOFF]
Lloh123:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh124:
	adrp	x9, _DSP_CAP_TRIGGER@GOTPAGE
Lloh125:
	ldr	x9, [x9, _DSP_CAP_TRIGGER@GOTPAGEOFF]
Lloh126:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_76
LBB0_65:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_pcm_setup
	tbnz	w0, #31, LBB0_77
; %bb.66:
	ldr	w8, [x26, #12]
	mov	w9, #1
	lsl	w20, w9, w8
	str	x20, [sp]
Lloh127:
	adrp	x0, l_.str.11@PAGE
Lloh128:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DBGX
	mov	x0, x20
	b	LBB0_76
LBB0_67:
	mov	x1, x19
	bl	_get_user
	cbnz	w0, LBB0_84
; %bb.68:
Lloh129:
	adrp	x0, l_.str.9@PAGE
Lloh130:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DBGX
	ldr	w8, [x26, #8]
Lloh131:
	adrp	x9, _SW_INITIAL@GOTPAGE
Lloh132:
	ldr	x9, [x9, _SW_INITIAL@GOTPAGEOFF]
Lloh133:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_41
; %bb.69:
                                        ; implicit-def: $w0
	b	LBB0_76
LBB0_70:
Lloh134:
	adrp	x0, l_.str.1@PAGE
Lloh135:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGX
Lloh136:
	adrp	x8, _SOUND_VERSION@GOTPAGE
Lloh137:
	ldr	x8, [x8, _SOUND_VERSION@GOTPAGEOFF]
Lloh138:
	ldr	w0, [x8]
	b	LBB0_76
LBB0_71:
	mov	x22, x0
	b	LBB0_86
LBB0_72:
	mov	w21, #0
LBB0_73:
	cbz	x20, LBB0_75
; %bb.74:
	add	x22, x20, #52
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #48]
	ldr	w9, [x23]
Lloh139:
	adrp	x10, _PCM_ENABLE_OUTPUT@GOTPAGE
Lloh140:
	ldr	x10, [x10, _PCM_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh141:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, w10, wzr, eq
	orr	w21, w8, w21
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_75:
	mov	x0, x21
LBB0_76:
	mov	x1, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_put_user
LBB0_77:
	mov	x22, x0
	str	x22, [sp]
Lloh142:
	adrp	x0, l_.str.10@PAGE
Lloh143:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DBGX
	b	LBB0_86
LBB0_78:
	ldr	w8, [x20, #36]
LBB0_79:
	stp	w8, wzr, [sp, #52]
	ldr	w8, [x20, #64]
	str	w8, [sp, #60]
	str	wzr, [x20, #64]
	mov	x0, x21
	b	LBB0_82
LBB0_80:
	ldr	w8, [x21, #36]
LBB0_81:
	stp	w8, wzr, [sp, #52]
	ldr	w8, [x21, #64]
	str	w8, [sp, #60]
	str	wzr, [x21, #64]
	mov	x0, x20
LBB0_82:
	bl	_spin_unlock_irqrestore
LBB0_83:
	add	x1, sp, #40
	mov	x0, x19
	mov	w2, #24
	bl	_copy_to_user
	cbz	w0, LBB0_87
LBB0_84:
Lloh144:
	adrp	x8, _EFAULT@GOTPAGE
Lloh145:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_85:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_86:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_87:
	mov	w22, #0
	b	LBB0_86
LBB0_88:
	mov	w22, #0
LBB0_89:
	add	w24, w26, w24
	mov	x0, x23
	bl	_MAX_FRAGCOUNT
	cmp	w22, w0
	b.le	LBB0_91
; %bb.90:
	mov	x0, x23
	bl	_MAX_FRAGCOUNT
	mov	x22, x0
LBB0_91:
	str	x24, [sp]
Lloh146:
	adrp	x0, l_.str.13@PAGE
Lloh147:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_DBGPV
	stp	x21, x20, [sp]
Lloh148:
	adrp	x0, l_.str.14@PAGE
Lloh149:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_DBGPV
	cbz	w25, LBB0_93
; %bb.92:
	str	w24, [x21, #12]
	str	w22, [x21, #20]
LBB0_93:
	cbz	x20, LBB0_95
; %bb.94:
	str	w24, [x20, #12]
	str	w22, [x20, #20]
LBB0_95:
	orr	w20, w24, w22, lsl #16
	asr	w8, w20, #16
	and	w9, w24, #0xffff
	stp	x8, x9, [sp]
Lloh150:
	adrp	x0, l_.str.15@PAGE
Lloh151:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_DBGX
	mov	x0, x20
	b	LBB0_76
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpAdd	Lloh142, Lloh143
	.loh AdrpLdrGot	Lloh144, Lloh145
	.loh AdrpAdd	Lloh148, Lloh149
	.loh AdrpAdd	Lloh146, Lloh147
	.loh AdrpAdd	Lloh150, Lloh151
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_2-LBB0_2)>>2
	.short	(LBB0_4-LBB0_2)>>2
	.short	(LBB0_5-LBB0_2)>>2
	.short	(LBB0_7-LBB0_2)>>2
	.short	(LBB0_16-LBB0_2)>>2
	.short	(LBB0_18-LBB0_2)>>2
	.short	(LBB0_21-LBB0_2)>>2
	.short	(LBB0_28-LBB0_2)>>2
	.short	(LBB0_32-LBB0_2)>>2
	.short	(LBB0_34-LBB0_2)>>2
	.short	(LBB0_39-LBB0_2)>>2
	.short	(LBB0_42-LBB0_2)>>2
	.short	(LBB0_44-LBB0_2)>>2
	.short	(LBB0_45-LBB0_2)>>2
	.short	(LBB0_47-LBB0_2)>>2
	.short	(LBB0_50-LBB0_2)>>2
	.short	(LBB0_53-LBB0_2)>>2
	.short	(LBB0_57-LBB0_2)>>2
	.short	(LBB0_60-LBB0_2)>>2
	.short	(LBB0_63-LBB0_2)>>2
	.short	(LBB0_64-LBB0_2)>>2
	.short	(LBB0_65-LBB0_2)>>2
	.short	(LBB0_67-LBB0_2)>>2
	.short	(LBB0_70-LBB0_2)>>2
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(inode=0x%p, file=0x%p, cmd=0x%x, arg=0x%lx)\n"

l_.str.1:                               ; @.str.1
	.asciz	"OSS_GETVERSION\n"

	.comm	_SOUND_VERSION,4,2              ; @SOUND_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"SNDCTL_DSP_GETCAPS\n"

	.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
l_.str.3:                               ; @.str.3
	.asciz	"SNDCTL_DSP_GETFMTS\n"

l_.str.4:                               ; @.str.4
	.asciz	"SOUND_PCM_READ_RATE\n"

l_.str.5:                               ; @.str.5
	.asciz	"SOUND_PCM_READ_CHANNELS\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.6:                               ; @.str.6
	.asciz	"SNDCTL_DSP_SPEED %d\n"

	.comm	_SW_INITIAL,4,2                 ; @SW_INITIAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIN_SPEED,4,2                  ; @MIN_SPEED
	.comm	_MAX_SPEED,4,2                  ; @MAX_SPEED
l_.str.8:                               ; @.str.8
	.asciz	"SNDCTL_DSP_STEREO %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"SNDCTL_DSP_CHANNELS %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"SNDCTL_DSP_GETBLKSIZE failed, errno %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"SNDCTL_DSP_GETBLKSIZE returning %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"SNDCTL_DSP_SETFRAGMENT %d:%d\n"

	.comm	_MIN_FRAGSHIFT,4,2              ; @MIN_FRAGSHIFT
	.comm	_MAX_FRAGSHIFT,4,2              ; @MAX_FRAGSHIFT
l_.str.13:                              ; @.str.13
	.asciz	"sw_fragshift = %d\n"

l_.str.14:                              ; @.str.14
	.asciz	"rport = 0x%p, wport = 0x%p\n"

l_.str.15:                              ; @.str.15
	.asciz	"SNDCTL_DSP_SETFRAGMENT returns %d:%d\n"

l_.str.16:                              ; @.str.16
	.asciz	"SNDCTL_DSP_SUBDIVIDE %d\n"

l_.str.17:                              ; @.str.17
	.asciz	"SNDCTL_DSP_SETFMT %d\n"

	.comm	_AFMT_QUERY,4,2                 ; @AFMT_QUERY
l_.str.19:                              ; @.str.19
	.asciz	"SNDCTL_DSP_GETOSPACE\n"

l_.str.20:                              ; @.str.20
	.asciz	"SNDCTL_DSP_GETOSPACE returns { %d %d %d %d }\n"

l_.str.21:                              ; @.str.21
	.asciz	"SNDCTL_DSP_GETISPACE\n"

l_.str.22:                              ; @.str.22
	.asciz	"SNDCTL_DSP_GETISPACE returns { %d %d %d %d }\n"

l_.str.23:                              ; @.str.23
	.asciz	"SNDCTL_DSP_NONBLOCK\n"

	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.24:                              ; @.str.24
	.asciz	"SNDCTL_DSP_RESET\n"

l_.str.25:                              ; @.str.25
	.asciz	"SNDCTL_DSP_SYNC\n"

l_.str.26:                              ; @.str.26
	.asciz	"SNDCTL_DSP_POST\n"

l_.str.27:                              ; @.str.27
	.asciz	"SNDCTL_DSP_GETIPTR\n"

	.comm	_HW_RUNNING,4,2                 ; @HW_RUNNING
	.comm	_SW_RUN,4,2                     ; @SW_RUN
l_.str.28:                              ; @.str.28
	.asciz	"SNDCTL_DSP_GETOPTR\n"

l_.str.29:                              ; @.str.29
	.asciz	"SNDCTL_DSP_GETODELAY\n"

l_.str.30:                              ; @.str.30
	.asciz	"SNDCTL_DSP_PROFILE\n"

l_.str.31:                              ; @.str.31
	.asciz	"SNDCTL_DSP_GETTRIGGER\n"

	.comm	_DISABLED,4,2                   ; @DISABLED
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.comm	_PCM_ENABLE_OUTPUT,4,2          ; @PCM_ENABLE_OUTPUT
l_.str.32:                              ; @.str.32
	.asciz	"SNDCTL_DSP_SETTRIGGER %d\n"

l_.str.33:                              ; @.str.33
	.asciz	"unknown ioctl 0x%x\n"

l_.str.34:                              ; @.str.34
	.asciz	"unimplemented ioctl 0x%x\n"

	.no_dead_strip	_vwsnd_audio_do_ioctl
.subsections_via_symbols
