	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xa_list_new
_xa_list_new:                           ## @xa_list_new
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_string_list_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	_XAUDIO2_DEFAULT_PROCESSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_XAudio2Create
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_IXAudio2_GetDeviceCount
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	movq	_S_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jae	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_IXAudio2_GetDeviceDetails
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-64(%rbp), %edi
	callq	_utf16_to_utf8_string_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_IXAudio2_Release
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XAUDIO2_DEFAULT_PROCESSOR,4,2  ## @XAUDIO2_DEFAULT_PROCESSOR
	.comm	_S_OK,8,3                       ## @S_OK
	.no_dead_strip	_xa_list_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xa_list_new
_xa_list_new:                           ; @xa_list_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	wzr, [sp, #28]
	str	xzr, [sp, #16]
	bl	_string_list_new
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _XAUDIO2_DEFAULT_PROCESSOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XAUDIO2_DEFAULT_PROCESSOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	w1, #0
	bl	_XAudio2Create
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, #0
	b	LBB0_10
LBB0_3:
	ldr	x0, [sp, #16]
	add	x1, sp, #28
	bl	_IXAudio2_GetDeviceCount
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_9
; %bb.4:
	mov	w20, #0
Lloh3:
	adrp	x22, _S_OK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	ldr	w8, [sp, #28]
	cmp	w20, w8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	add	x2, sp, #8
	mov	x1, x20
	bl	_IXAudio2_GetDeviceDetails
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #8]
	bl	_utf16_to_utf8_string_alloc
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_string_list_append
	mov	x0, x21
	bl	_free
	b	LBB0_5
LBB0_9:
	ldr	x0, [sp, #16]
	bl	_IXAudio2_Release
LBB0_10:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XAUDIO2_DEFAULT_PROCESSOR,4,2  ; @XAUDIO2_DEFAULT_PROCESSOR
	.comm	_S_OK,8,3                       ; @S_OK
	.no_dead_strip	_xa_list_new
.subsections_via_symbols
