	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SndMixerQueryConnections
_SndMixerQueryConnections:              ## @SndMixerQueryConnections
	.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	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$32, -96(%rbp)
	movq	8(%rsi), %r14
	testq	%r14, %r14
	jle	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	incq	%r14
	leaq	-96(%rbp), %r12
	leaq	-48(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	cmpq	$1, %r14
	jbe	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)
	leaq	-2(%r14), %rax
	movq	%rax, -80(%rbp)
	movl	(%r15), %edi
	movq	_MIXER_GETLINEINFOF_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_mixerGetLineInfo
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -48(%rbp)
	movq	-88(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	$0, -64(%rbp)
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_SndMixerQueryControls
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$56, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movups	-96(%rbp), %xmm0
	movups	-80(%rbp), %xmm1
	movups	%xmm1, 40(%rax)
	movups	%xmm0, 24(%rax)
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%rbx)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_11:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MIXER_GETLINEINFOF_SOURCE,4,2  ## @MIXER_GETLINEINFOF_SOURCE
	.comm	_MMSYSERR_NOERROR,8,3           ## @MMSYSERR_NOERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"++ Source: %ws\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to query connection controls\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get connection information: %d\n"

	.no_dead_strip	_SndMixerQueryConnections
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SndMixerQueryConnections
_SndMixerQueryConnections:              ; @SndMixerQueryConnections
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	w8, #32
	str	w8, [sp, #24]
	ldr	x8, [x1, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	add	x23, x8, #1
Lloh3:
	adrp	x24, _MIXER_GETLINEINFOF_SOURCE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MIXER_GETLINEINFOF_SOURCE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _MMSYSERR_NOERROR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MMSYSERR_NOERROR@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
Lloh9:
	adrp	x26, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh10:
	ldr	x26, [x26, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_GetProcessHeap
	ldr	x2, [sp, #16]
	mov	w1, #0
	bl	_HeapFree
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x23, x23, #1
	cmp	x23, #1
	b.ls	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	str	w8, [sp, #48]
	sub	x8, x23, #2
	str	x8, [sp, #40]
	ldr	w0, [x21]
	ldr	w2, [x24]
	add	x1, sp, #24
	bl	_mixerGetLineInfo
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [sp, #16]
	ldr	x8, [sp, #32]
	str	x8, [sp]
	mov	x0, x22
	bl	_DPRINT
	str	xzr, [sp, #56]
	add	x1, sp, #56
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	bl	_SndMixerQueryControls
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_GetProcessHeap
	ldr	w1, [x26]
	mov	w2, #56
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #24]
	stur	q1, [x0, #24]
	stur	q0, [x0, #40]
	ldr	x8, [sp, #16]
	ldr	x9, [sp, #56]
	stp	x9, x8, [x0, #8]
	ldr	x8, [x20]
	str	x8, [x0]
	str	x0, [x20]
	b	LBB0_3
LBB0_8:
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_DPRINT
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MIXER_GETLINEINFOF_SOURCE,4,2  ; @MIXER_GETLINEINFOF_SOURCE
	.comm	_MMSYSERR_NOERROR,8,3           ; @MMSYSERR_NOERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"++ Source: %ws\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to query connection controls\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get connection information: %d\n"

	.no_dead_strip	_SndMixerQueryConnections
.subsections_via_symbols
