	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function wasapi_init_client_ex
LCPI0_0:
	.quad	0x40c3880000000000              ## double 1.0E+4
LCPI0_1:
	.quad	0x416312d000000000              ## double 1.0E+7
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wasapi_init_client_ex:                 ## @wasapi_init_client_ex
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movl	(%rsi), %r13d
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	_IID_IAudioClient@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLSCTX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r8
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	callq	__IMMDevice_Activate
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.1:
	movq	-48(%rbp), %rdi
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rdx
	xorl	%esi, %esi
	callq	__IAudioClient_GetDevicePeriod
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_IFACE_RELEASE
	xorl	%eax, %eax
LBB0_23:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	-104(%rbp), %xmm1               ## xmm1 = mem[0],zero
	maxsd	%xmm0, %xmm1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	1(%rcx), %eax
	testl	%ecx, %ecx
	movl	%eax, %edx
	jne	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%r13d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r14d
	xorl	%r13d, %r13d
	testl	%eax, %eax
	sete	%r13b
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	cmpl	$1, %edx
	cmovnel	%eax, %r13d
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%r15d
	testl	%r14d, %r14d
	je	LBB0_19
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	L_.str(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_RARCH_LOG
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_wasapi_set_format
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	_AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AUDCLNT_STREAMFLAGS_NOPERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AUDCLNT_STREAMFLAGS_EVENTCALLBACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movq	%rax, %r12
	movq	_AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	callq	__IAudioClient_GetBufferSize
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi
	callq	_IFACE_RELEASE
	movq	_IID_IAudioClient@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLSCTX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	callq	__IMMDevice_Activate
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	mulsd	-96(%rbp), %xmm1
	addsd	LCPI0_2(%rip), %xmm1
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	_AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AUDCLNT_STREAMFLAGS_NOPERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AUDCLNT_STREAMFLAGS_EVENTCALLBACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movapd	%xmm1, %xmm0
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movq	%rax, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_AUDCLNT_E_ALREADY_INITIALIZED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi
	callq	_IFACE_RELEASE
	movq	_IID_IAudioClient@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLSCTX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	callq	__IMMDevice_Activate
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	_AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AUDCLNT_STREAMFLAGS_NOPERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AUDCLNT_STREAMFLAGS_EVENTCALLBACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movq	%rax, %r12
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_AUDCLNT_E_UNSUPPORTED_FORMAT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str.3(%rip), %rdi
	callq	_RARCH_WARN
	movl	%r15d, %edi
	callq	_wasapi_pref_rate
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r14d
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	incl	%r15d
	movl	%r15d, %edi
	callq	_wasapi_pref_rate
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_13:
	movq	_AUDCLNT_E_DEVICE_IN_USE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_15
## %bb.14:
	movq	_AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_15
LBB0_21:
	movq	%r12, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_15
## %bb.22:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-48(%rbp), %rax
	jmp	LBB0_23
LBB0_20:
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IAudioClient,4,2           ## @IID_IAudioClient
	.comm	_CLSCTX_ALL,4,2                 ## @CLSCTX_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[WASAPI]: Initializing client (exclusive, %s, %uHz, %ums) ...\n"

L_.str.1:                               ## @.str.1
	.asciz	"float"

L_.str.2:                               ## @.str.2
	.asciz	"pcm"

	.comm	_AUDCLNT_SHAREMODE_EXCLUSIVE,4,2 ## @AUDCLNT_SHAREMODE_EXCLUSIVE
	.comm	_AUDCLNT_STREAMFLAGS_EVENTCALLBACK,4,2 ## @AUDCLNT_STREAMFLAGS_EVENTCALLBACK
	.comm	_AUDCLNT_STREAMFLAGS_NOPERSIST,4,2 ## @AUDCLNT_STREAMFLAGS_NOPERSIST
	.comm	_AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED,8,3 ## @AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
	.comm	_AUDCLNT_E_ALREADY_INITIALIZED,8,3 ## @AUDCLNT_E_ALREADY_INITIALIZED
	.comm	_AUDCLNT_E_UNSUPPORTED_FORMAT,8,3 ## @AUDCLNT_E_UNSUPPORTED_FORMAT
	.comm	_AUDCLNT_E_DEVICE_IN_USE,8,3    ## @AUDCLNT_E_DEVICE_IN_USE
	.comm	_AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED,8,3 ## @AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
L_.str.3:                               ## @.str.3
	.asciz	"[WASAPI]: Unsupported format.\n"

	.no_dead_strip	_wasapi_init_client_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wasapi_init_client_ex
_wasapi_init_client_ex:                 ; @wasapi_init_client_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	stp	xzr, xzr, [sp, #24]
	ldr	w21, [x1]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _IID_IAudioClient@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IID_IAudioClient@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CLSCTX_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLSCTX_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #32
	mov	x3, #0
	bl	__IMMDevice_Activate
	bl	_FAILED
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_4
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	ldr	x0, [sp, #32]
	add	x2, sp, #24
	mov	x1, #0
	bl	__IAudioClient_GetDevicePeriod
	mov	x25, x0
	bl	_FAILED
	cbz	x0, LBB0_5
LBB0_2:
	ldr	x0, [sp, #32]
	bl	_IFACE_RELEASE
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	mov	w8, #0
	ucvtf	d0, w22
	mov	x9, #149533581377536
	movk	x9, #16579, lsl #48
	fmov	d1, x9
	fmul	d0, d0, d1
	ldr	d1, [sp, #24]
	fcmp	d0, d1
	fcsel	d8, d1, d0, mi
Lloh6:
	adrp	x20, _AUDCLNT_STREAMFLAGS_EVENTCALLBACK@GOTPAGE
Lloh7:
	ldr	x20, [x20, _AUDCLNT_STREAMFLAGS_EVENTCALLBACK@GOTPAGEOFF]
Lloh8:
	adrp	x24, _AUDCLNT_STREAMFLAGS_NOPERSIST@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AUDCLNT_STREAMFLAGS_NOPERSIST@GOTPAGEOFF]
	fmov	d9, #0.50000000
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w9, #1
	cbnz	w9, LBB0_23
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x9, x8
	ldr	w26, [x19]
	cmp	w21, #0
	cset	w8, eq
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w9, #1
	csel	w21, w8, w21, eq
	cbz	w26, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	cmp	w21, #0
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x28, x9, x8, eq
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x26, x0
	add	w27, w27, #1
	cbz	w0, LBB0_6
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x28
	mov	x2, x26
	mov	x3, x22
	bl	_RARCH_LOG
	add	x0, sp, #44
	mov	x1, x21
	mov	x2, x26
	bl	_wasapi_set_format
	ldr	x0, [sp, #32]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	ldr	w9, [x20]
	ldr	w10, [x24]
	orr	w2, w10, w9
	add	x3, sp, #44
	fmov	d0, d8
	fmov	d1, d8
	mov	x4, #0
	blr	x8
	mov	x25, x0
Lloh19:
	adrp	x8, _AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [sp, #32]
	add	x1, sp, #16
	bl	__IAudioClient_GetBufferSize
	bl	_FAILED
	cbnz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [sp, #32]
	bl	_IFACE_RELEASE
Lloh22:
	adrp	x8, _IID_IAudioClient@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IID_IAudioClient@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _CLSCTX_ALL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CLSCTX_ALL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x4, sp, #32
	mov	x0, x23
	mov	x3, #0
	bl	__IMMDevice_Activate
	bl	_FAILED
	cbnz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ucvtf	d0, w26
	mov	x8, #20684562497536
	movk	x8, #16739, lsl #48
	fmov	d1, x8
	fdiv	d0, d1, d0
	ldr	d1, [sp, #16]
	fmadd	d8, d0, d1, d9
	ldr	x0, [sp, #32]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	ldr	w9, [x20]
	ldr	w10, [x24]
	orr	w2, w10, w9
	add	x3, sp, #44
	fmov	d0, d8
	fmov	d1, d8
	mov	x4, #0
	blr	x8
	mov	x25, x0
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
Lloh31:
	adrp	x8, _AUDCLNT_E_ALREADY_INITIALIZED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AUDCLNT_E_ALREADY_INITIALIZED@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [sp, #32]
	bl	_IFACE_RELEASE
Lloh34:
	adrp	x8, _IID_IAudioClient@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IID_IAudioClient@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _CLSCTX_ALL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CLSCTX_ALL@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x4, sp, #32
	mov	x0, x23
	mov	x3, #0
	bl	__IMMDevice_Activate
	bl	_FAILED
	cbnz	x0, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [sp, #32]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AUDCLNT_SHAREMODE_EXCLUSIVE@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
	ldr	w9, [x20]
	ldr	w10, [x24]
	orr	w2, w10, w9
	add	x3, sp, #44
	fmov	d0, d8
	fmov	d1, d8
	mov	x4, #0
	blr	x8
	mov	x25, x0
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=2
Lloh43:
	adrp	x8, _AUDCLNT_E_UNSUPPORTED_FORMAT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AUDCLNT_E_UNSUPPORTED_FORMAT@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh46:
	adrp	x0, l_.str.3@PAGE
Lloh47:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_WARN
	mov	x0, x27
	bl	_wasapi_pref_rate
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w27, w27, #1
	mov	x0, x27
	bl	_wasapi_pref_rate
	b	LBB0_9
LBB0_20:
Lloh48:
	adrp	x8, _AUDCLNT_E_DEVICE_IN_USE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AUDCLNT_E_DEVICE_IN_USE@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x9, _AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED@GOTPAGE
Lloh52:
	ldr	x9, [x9, _AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x25, x8
	ccmp	x25, x9, #4, ne
	b.eq	LBB0_2
LBB0_21:
	mov	x0, x25
	bl	_FAILED
	cbnz	x0, LBB0_2
; %bb.22:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	w21, [x8]
	str	w26, [x19]
	ldr	x0, [sp, #32]
	b	LBB0_4
LBB0_23:
	mov	w26, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IAudioClient,4,2           ; @IID_IAudioClient
	.comm	_CLSCTX_ALL,4,2                 ; @CLSCTX_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[WASAPI]: Initializing client (exclusive, %s, %uHz, %ums) ...\n"

l_.str.1:                               ; @.str.1
	.asciz	"float"

l_.str.2:                               ; @.str.2
	.asciz	"pcm"

	.comm	_AUDCLNT_SHAREMODE_EXCLUSIVE,4,2 ; @AUDCLNT_SHAREMODE_EXCLUSIVE
	.comm	_AUDCLNT_STREAMFLAGS_EVENTCALLBACK,4,2 ; @AUDCLNT_STREAMFLAGS_EVENTCALLBACK
	.comm	_AUDCLNT_STREAMFLAGS_NOPERSIST,4,2 ; @AUDCLNT_STREAMFLAGS_NOPERSIST
	.comm	_AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED,8,3 ; @AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
	.comm	_AUDCLNT_E_ALREADY_INITIALIZED,8,3 ; @AUDCLNT_E_ALREADY_INITIALIZED
	.comm	_AUDCLNT_E_UNSUPPORTED_FORMAT,8,3 ; @AUDCLNT_E_UNSUPPORTED_FORMAT
	.comm	_AUDCLNT_E_DEVICE_IN_USE,8,3    ; @AUDCLNT_E_DEVICE_IN_USE
	.comm	_AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED,8,3 ; @AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
l_.str.3:                               ; @.str.3
	.asciz	"[WASAPI]: Unsupported format.\n"

	.no_dead_strip	_wasapi_init_client_ex
.subsections_via_symbols
