	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vwsnd_audio_open
_vwsnd_audio_open:                      ## @vwsnd_audio_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_iminor
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_DBGE
	movq	_vwsnd_dev_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	xorl	%r13d, %eax
	cmpl	$16, %eax
	jb	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	168(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	160(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_13
## %bb.7:
	leaq	164(%rbx), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_interruptible_sleep_on
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_8
LBB0_13:
	movq	_FMODE_READ@GOTPCREL(%rip), %r12
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%r12), %edx
	andl	%ecx, %edx
	orl	%eax, %edx
	movl	%edx, 4(%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	andl	$15, %r13d
	movq	_SND_DEV_DSP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_15
## %bb.14:
	movq	_AFMT_U8@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_20
LBB0_15:
	movq	_SND_DEV_AUDIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_17
## %bb.16:
	movq	_AFMT_MU_LAW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_20
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	movq	_SND_DEV_DSP16@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_19
## %bb.18:
	movq	_AFMT_S16_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_20
LBB0_19:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_20:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_22
## %bb.21:
	movq	_SW_INITIAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 152(%rbx)
	movq	$0, 144(%rbx)
	movl	$1, 88(%rbx)
	movl	%r13d, 92(%rbx)
	movl	$8000, 96(%rbx)                 ## imm = 0x1F40
	movq	_DEFAULT_FRAGSHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 136(%rbx)
	movq	_DEFAULT_FRAGCOUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 128(%rbx)
	movq	_DEFAULT_SUBDIVSHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 120(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%rbx)
LBB0_22:
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:
	movq	_SW_INITIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%rbx)
	movq	$0, 72(%rbx)
	movl	$1, 16(%rbx)
	movl	%r13d, 20(%rbx)
	movl	$8000, 24(%rbx)                 ## imm = 0x1F40
	movq	_DEFAULT_FRAGSHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	_DEFAULT_FRAGCOUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_DEFAULT_SUBDIVSHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
LBB0_24:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, 8(%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DBGRV
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(inode=0x%p, file=0x%p)\n"

	.comm	_INC_USE_COUNT,4,2              ## @INC_USE_COUNT
	.comm	_vwsnd_dev_list,8,3             ## @vwsnd_dev_list
	.comm	_DEC_USE_COUNT,4,2              ## @DEC_USE_COUNT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_SND_DEV_DSP,4,2                ## @SND_DEV_DSP
	.comm	_AFMT_U8,4,2                    ## @AFMT_U8
	.comm	_SND_DEV_AUDIO,4,2              ## @SND_DEV_AUDIO
	.comm	_AFMT_MU_LAW,4,2                ## @AFMT_MU_LAW
	.comm	_SND_DEV_DSP16,4,2              ## @SND_DEV_DSP16
	.comm	_AFMT_S16_LE,4,2                ## @AFMT_S16_LE
	.comm	_SW_INITIAL,8,3                 ## @SW_INITIAL
	.comm	_DEFAULT_FRAGSHIFT,8,3          ## @DEFAULT_FRAGSHIFT
	.comm	_DEFAULT_FRAGCOUNT,8,3          ## @DEFAULT_FRAGCOUNT
	.comm	_DEFAULT_SUBDIVSHIFT,8,3        ## @DEFAULT_SUBDIVSHIFT
	.no_dead_strip	_vwsnd_audio_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vwsnd_audio_open
_vwsnd_audio_open:                      ; @vwsnd_audio_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_iminor
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_DBGE
Lloh2:
	adrp	x8, _vwsnd_dev_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vwsnd_dev_list@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	cbz	x23, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	eor	w8, w8, w20
	cmp	w8, #16
	b.lo	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [x23, #168]
	cbnz	x23, LBB0_1
LBB0_3:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x21, x23, #160
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x23, #4]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	add	x22, x23, #164
Lloh7:
	adrp	x24, _O_NONBLOCK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _O_NONBLOCK@GOTPAGEOFF]
Lloh9:
	adrp	x25, _current@GOTPAGE
Lloh10:
	ldr	x25, [x25, _current@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_interruptible_sleep_on
	ldr	w0, [x25]
	bl	_signal_pending
	cbnz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x23, #4]
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_11:
Lloh11:
	adrp	x24, _FMODE_READ@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FMODE_READ@GOTPAGEOFF]
Lloh13:
	adrp	x22, _FMODE_WRITE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FMODE_WRITE@GOTPAGEOFF]
	ldr	w10, [x24]
	ldr	w11, [x22]
	orr	w10, w11, w10
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x23, #4]
	mov	x0, x21
	bl	_mutex_unlock
	and	w8, w20, #0xf
Lloh15:
	adrp	x9, _SND_DEV_DSP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SND_DEV_DSP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _AFMT_U8@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AFMT_U8@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_13:
Lloh21:
	adrp	x9, _SND_DEV_AUDIO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SND_DEV_AUDIO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.14:
Lloh24:
	adrp	x8, _AFMT_MU_LAW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AFMT_MU_LAW@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_15:
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_16:
Lloh29:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_17:
Lloh31:
	adrp	x9, _SND_DEV_DSP16@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SND_DEV_DSP16@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
Lloh34:
	adrp	x8, _AFMT_S16_LE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AFMT_S16_LE@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_19:
	mov	w0, #0
	bl	_ASSERT
	mov	w21, #0
LBB0_20:
	add	x20, x23, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w12, [x19]
Lloh37:
	adrp	x11, _SW_INITIAL@GOTPAGE
Lloh38:
	ldr	x11, [x11, _SW_INITIAL@GOTPAGEOFF]
Lloh39:
	adrp	x10, _DEFAULT_FRAGSHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _DEFAULT_FRAGSHIFT@GOTPAGEOFF]
	ldr	w13, [x24]
Lloh41:
	adrp	x9, _DEFAULT_FRAGCOUNT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _DEFAULT_FRAGCOUNT@GOTPAGEOFF]
Lloh43:
	adrp	x8, _DEFAULT_SUBDIVSHIFT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DEFAULT_SUBDIVSHIFT@GOTPAGEOFF]
	tst	w13, w12
	b.eq	LBB0_22
; %bb.21:
	ldr	x13, [x11]
	stp	xzr, x13, [x23, #144]
	mov	w13, #1
	stp	w13, w21, [x23, #88]
	mov	w13, #8000
	str	w13, [x23, #96]
	ldr	x15, [x10]
	ldr	x13, [x9]
	ldr	x14, [x8]
	stp	x13, x15, [x23, #128]
	stp	xzr, x14, [x23, #112]
	str	xzr, [x23, #104]
LBB0_22:
	ldr	w13, [x22]
	tst	w13, w12
	b.eq	LBB0_24
; %bb.23:
	ldr	x11, [x11]
	stp	xzr, x11, [x23, #72]
	mov	w11, #1
	stp	w11, w21, [x23, #16]
	mov	w11, #8000
	str	w11, [x23, #24]
	ldr	x10, [x10]
	ldr	x9, [x9]
	ldr	x8, [x8]
	stp	x9, x10, [x23, #56]
	stp	xzr, x8, [x23, #40]
	str	xzr, [x23, #32]
LBB0_24:
	mov	x0, x20
	bl	_mutex_unlock
	str	x23, [x19, #8]
	bl	_DBGRV
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(inode=0x%p, file=0x%p)\n"

	.comm	_INC_USE_COUNT,4,2              ; @INC_USE_COUNT
	.comm	_vwsnd_dev_list,8,3             ; @vwsnd_dev_list
	.comm	_DEC_USE_COUNT,4,2              ; @DEC_USE_COUNT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_SND_DEV_DSP,4,2                ; @SND_DEV_DSP
	.comm	_AFMT_U8,4,2                    ; @AFMT_U8
	.comm	_SND_DEV_AUDIO,4,2              ; @SND_DEV_AUDIO
	.comm	_AFMT_MU_LAW,4,2                ; @AFMT_MU_LAW
	.comm	_SND_DEV_DSP16,4,2              ; @SND_DEV_DSP16
	.comm	_AFMT_S16_LE,4,2                ; @AFMT_S16_LE
	.comm	_SW_INITIAL,8,3                 ; @SW_INITIAL
	.comm	_DEFAULT_FRAGSHIFT,8,3          ; @DEFAULT_FRAGSHIFT
	.comm	_DEFAULT_FRAGCOUNT,8,3          ; @DEFAULT_FRAGCOUNT
	.comm	_DEFAULT_SUBDIVSHIFT,8,3        ; @DEFAULT_SUBDIVSHIFT
	.no_dead_strip	_vwsnd_audio_open
.subsections_via_symbols
