	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSoundProfile                ## -- Begin function AddSoundProfile
	.p2align	4, 0x90
_AddSoundProfile:                       ## @AddSoundProfile
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movl	%r13d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -88(%rbp)
	movl	-52(%rbp), %edi
	leaq	-88(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_RegQueryValueEx
	movq	%rax, %rbx
	movl	-52(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_7
## %bb.2:
	movq	_IDC_SOUND_SCHEME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_GetDlgItem
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ComboBox_AddString
	movq	_CB_ERR@GOTPCREL(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_StringCchCopy
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movq	%r12, %rdx
	callq	_StringCchCopy
	movq	_IDC_SOUND_SCHEME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_GetDlgItem
	movl	%eax, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ComboBox_SetItemData
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_GetDlgItem
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ComboBox_SetCurSel
	jmp	LBB0_7
LBB0_4:
	movq	_IDC_SOUND_SCHEME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetDlgItem
	movl	%eax, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ComboBox_DeleteString
LBB0_7:
	movq	(%r13), %rax
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_IDC_SOUND_SCHEME,4,2           ## @IDC_SOUND_SCHEME
	.comm	_CB_ERR,8,3                     ## @CB_ERR
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSoundProfile                ; -- Begin function AddSoundProfile
	.p2align	2
_AddSoundProfile:                       ; @AddSoundProfile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x23, x8, #2
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x7fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh7:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	sub	x4, x29, #92
	mov	x0, x1
	mov	x1, x2
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh10:
	adrp	x24, _ERROR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	stur	x23, [x29, #-104]
	ldur	w0, [x29, #-92]
	sub	x5, x29, #104
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_RegQueryValueEx
	mov	x23, x0
	ldur	w0, [x29, #-92]
	bl	_RegCloseKey
	ldr	x8, [x24]
	cmp	x23, x8
	b.ne	LBB0_8
; %bb.2:
Lloh12:
	adrp	x27, _IDC_SOUND_SCHEME@GOTPAGE
Lloh13:
	ldr	x27, [x27, _IDC_SOUND_SCHEME@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x1, x22
	bl	_ComboBox_AddString
Lloh14:
	adrp	x8, _CB_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CB_ERR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.3:
	mov	x23, x0
	bl	_GetProcessHeap
Lloh17:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x24, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x26]
	mov	x2, x22
	bl	_StringCchCopy
	ldr	w0, [x24]
	ldr	w1, [x26]
	mov	x2, x21
	bl	_StringCchCopy
	ldr	w1, [x27]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x1, x23
	mov	x2, x24
	bl	_ComboBox_SetItemData
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x1, x23
	bl	_ComboBox_SetCurSel
LBB0_6:
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x1, x23
	bl	_ComboBox_DeleteString
LBB0_8:
Lloh22:
	adrp	x8, _FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_IDC_SOUND_SCHEME,4,2           ; @IDC_SOUND_SCHEME
	.comm	_CB_ERR,8,3                     ; @CB_ERR
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
