	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateAudioDeviceList          ## -- Begin function CreateAudioDeviceList
	.p2align	4, 0x90
_CreateAudioDeviceList:                 ## @CreateAudioDeviceList
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_InitializeAudioDeviceListLock
	movq	_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_LockAudioDeviceList
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_logmsg
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AUDIO_LIST_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_CreateFileMappingW
	movq	_device_list_file@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_logmsg
	movq	(%r15), %rdi
	movq	_FILE_MAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_MapViewOfFile
	movq	_audio_device_list@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	(%r12), %rax
	movl	$4, (%rax)
	movl	%ebx, 16(%rax)
	movq	$0, 8(%rax)
	xorl	%eax, %eax
	callq	_UnlockAudioDeviceList
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_logmsg
	movq	_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_logmsg
	movq	(%r15), %rdi
	callq	_CloseHandle
	movq	$0, (%r15)
LBB0_3:
	xorl	%eax, %eax
	callq	_UnlockAudioDeviceList
	xorl	%eax, %eax
	callq	_KillAudioDeviceListLock
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Creating file mapping\n"

	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_AUDIO_LIST_NAME,4,2            ## @AUDIO_LIST_NAME
	.comm	_device_list_file,8,3           ## @device_list_file
L_.str.1:                               ## @.str.1
	.asciz	"Creation of audio device list failed (err %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Mapping view of file\n"

	.comm	_FILE_MAP_WRITE,4,2             ## @FILE_MAP_WRITE
	.comm	_audio_device_list,8,3          ## @audio_device_list
L_.str.3:                               ## @.str.3
	.asciz	"MapViewOfFile FAILED (err %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Device list created\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateAudioDeviceList          ; -- Begin function CreateAudioDeviceList
	.p2align	2
_CreateAudioDeviceList:                 ; @CreateAudioDeviceList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_InitializeAudioDeviceListLock
	cbz	w0, LBB0_7
; %bb.1:
	bl	_LockAudioDeviceList
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_logmsg
Lloh2:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PAGE_READWRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_READWRITE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _AUDIO_LIST_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUDIO_LIST_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x1, #0
	mov	w3, #0
	mov	x4, x19
	bl	_CreateFileMappingW
Lloh11:
	adrp	x20, _device_list_file@GOTPAGE
Lloh12:
	ldr	x20, [x20, _device_list_file@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_logmsg
	ldr	x0, [x20]
Lloh15:
	adrp	x8, _FILE_MAP_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FILE_MAP_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_MapViewOfFile
Lloh18:
	adrp	x21, _audio_device_list@GOTPAGE
Lloh19:
	ldr	x21, [x21, _audio_device_list@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x8, [x21]
	mov	w9, #4
	str	w9, [x8]
	str	w19, [x8, #16]
	str	xzr, [x8, #8]
	bl	_UnlockAudioDeviceList
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_logmsg
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_logmsg
	b	LBB0_6
LBB0_5:
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_logmsg
	ldr	x0, [x20]
	bl	_CloseHandle
	str	xzr, [x20]
LBB0_6:
	bl	_UnlockAudioDeviceList
	bl	_KillAudioDeviceListLock
LBB0_7:
Lloh28:
	adrp	x8, _FALSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating file mapping\n"

	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_AUDIO_LIST_NAME,4,2            ; @AUDIO_LIST_NAME
	.comm	_device_list_file,8,3           ; @device_list_file
l_.str.1:                               ; @.str.1
	.asciz	"Creation of audio device list failed (err %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Mapping view of file\n"

	.comm	_FILE_MAP_WRITE,4,2             ; @FILE_MAP_WRITE
	.comm	_audio_device_list,8,3          ; @audio_device_list
l_.str.3:                               ; @.str.3
	.asciz	"MapViewOfFile FAILED (err %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Device list created\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
