	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SndMixerQueryControls          ## -- Begin function SndMixerQueryControls
	.p2align	4, 0x90
_SndMixerQueryControls:                 ## @SndMixerQueryControls
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdx)
	jle	LBB0_8
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %ecx
	shll	$2, %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	$40, -88(%rbp)
	movl	4(%r12), %ecx
	movl	%ecx, -56(%rbp)
	movslq	(%r12), %rcx
	movq	%rcx, -80(%rbp)
	movl	$12, -72(%rbp)
	movq	%rax, -64(%rbp)
	movl	(%r15), %edi
	movq	_MIXER_GETLINECONTROLSF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rsi
	callq	_mixerGetLineControls
	movq	%rax, %rbx
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
## %bb.3:
	cmpq	$0, -80(%rbp)
	je	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx), %ecx
	movl	8(%rax,%rbx), %esi
	movslq	4(%rax,%rbx), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	incq	%r14
	addq	$12, %rbx
	cmpq	-80(%rbp), %r14
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_SndMixerIsDisplayControl
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_7
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movl	4(%r12), %esi
	movslq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_12:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, (%r13)
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
LBB0_10:
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_MIXER_GETLINECONTROLSF_ALL,4,2 ## @MIXER_GETLINECONTROLSF_ALL
	.comm	_MMSYSERR_NOERROR,8,3           ## @MMSYSERR_NOERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line control: %ws (0x%x, 0x%x)\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get line (ID: 0x%x) controls: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate memory for %d line (ID: 0x%x) controls!\n"

	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SndMixerQueryControls          ; -- Begin function SndMixerQueryControls
	.p2align	2
_SndMixerQueryControls:                 ; @SndMixerQueryControls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_GetProcessHeap
Lloh0:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x22]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #2
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.2:
	mov	w8, #40
	str	w8, [sp, #8]
	ldp	w9, w8, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	w8, [sp, #40]
	str	x9, [sp, #16]
	mov	w8, #12
	str	w8, [sp, #24]
	str	x0, [sp, #32]
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _MIXER_GETLINECONTROLSF_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIXER_GETLINECONTROLSF_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_mixerGetLineControls
Lloh6:
	adrp	x8, _MMSYSERR_NOERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMSYSERR_NOERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x23
	ldp	w2, w1, [x8, #4]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x22
	bl	_DPRINT
	add	x24, x24, #1
	ldr	x8, [sp, #16]
	add	x23, x23, #12
	cmp	x24, x8
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x8, x23
	mov	x0, x21
	bl	_SndMixerIsDisplayControl
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_5
LBB0_8:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldp	w2, w1, [x22]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x23, x0
	bl	_GetProcessHeap
	ldr	x2, [x19]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19]
	ldr	w1, [x22, #4]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
LBB0_11:
	bl	_DPRINT
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_MIXER_GETLINECONTROLSF_ALL,4,2 ; @MIXER_GETLINECONTROLSF_ALL
	.comm	_MMSYSERR_NOERROR,8,3           ; @MMSYSERR_NOERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line control: %ws (0x%x, 0x%x)\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get line (ID: 0x%x) controls: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate memory for %d line (ID: 0x%x) controls!\n"

	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
