	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wasapi_set_format
LCPI0_0:
	.space	4
	.long	8                               ## 0x8
	.long	32                              ## 0x20
	.long	12                              ## 0xc
LCPI0_1:
	.space	4
	.long	4                               ## 0x4
	.long	16                              ## 0x10
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wasapi_set_format:                     ## @wasapi_set_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$2, (%rdi)
	movl	%edx, 4(%rdi)
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_WAVE_FORMAT_EXTENSIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %edx
	movl	$32, 36(%rdi)
	movq	_KSAUDIO_SPEAKER_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rdi)
	movq	_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rdi)
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,8,32,12>
	jmp	LBB0_3
LBB0_2:
	movq	_WAVE_FORMAT_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %edx
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <u,4,16,0>
LBB0_3:
	pinsrd	$0, %edx, %xmm0
	movl	%eax, 24(%rdi)
	movdqu	%xmm0, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAVE_FORMAT_EXTENSIBLE,4,2     ## @WAVE_FORMAT_EXTENSIBLE
	.comm	_KSAUDIO_SPEAKER_STEREO,4,2     ## @KSAUDIO_SPEAKER_STEREO
	.comm	_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT,4,2 ## @KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
	.comm	_WAVE_FORMAT_PCM,4,2            ## @WAVE_FORMAT_PCM
	.no_dead_strip	_wasapi_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wasapi_set_format
_wasapi_set_format:                     ; @wasapi_set_format
	.cfi_startproc
; %bb.0:
	mov	w8, #2
	stp	w8, w2, [x0]
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WAVE_FORMAT_EXTENSIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAVE_FORMAT_EXTENSIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w9, w2, #3
	mov	w10, #32
	str	w10, [x0, #36]
Lloh3:
	adrp	x11, _KSAUDIO_SPEAKER_STEREO@GOTPAGE
Lloh4:
	ldr	x11, [x11, _KSAUDIO_SPEAKER_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	fmov	s0, w9
	mov	w9, #8
	mov.s	v0[1], w9
Lloh6:
	adrp	x9, _KSDATAFORMAT_SUBTYPE_IEEE_FLOAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KSDATAFORMAT_SUBTYPE_IEEE_FLOAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w11, [x0, #28]
	mov.s	v0[2], w10
	mov	w9, #12
	mov.s	v0[3], w9
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _WAVE_FORMAT_PCM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WAVE_FORMAT_PCM@GOTPAGEOFF]
	lsl	w9, w2, #2
	fmov	s0, w9
	mov	w9, #4
	mov.s	v0[1], w9
Lloh11:
	ldr	w8, [x8]
	mov	w9, #16
	mov.s	v0[2], w9
	mov.s	v0[3], wzr
LBB0_3:
	str	w8, [x0, #24]
	stur	q0, [x0, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WAVE_FORMAT_EXTENSIBLE,4,2     ; @WAVE_FORMAT_EXTENSIBLE
	.comm	_KSAUDIO_SPEAKER_STEREO,4,2     ; @KSAUDIO_SPEAKER_STEREO
	.comm	_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT,4,2 ; @KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
	.comm	_WAVE_FORMAT_PCM,4,2            ; @WAVE_FORMAT_PCM
	.no_dead_strip	_wasapi_set_format
.subsections_via_symbols
