	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DSOUND_QueryInterface
_DSOUND_QueryInterface:                 ## @DSOUND_QueryInterface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_debugstr_guid
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	_IID_IUnknown@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_IsEqualIID
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	8(%r15), %rbx
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_IDirectSound_IUnknown_Create
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
LBB0_7:
	callq	_IDirectSound_IUnknown_AddRef
	movq	(%rbx), %rax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	_IID_IDirectSound@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_IsEqualIID
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_IDirectSound_IDirectSound_Create
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_13:
	callq	_IDirectSound_IDirectSound_AddRef
	movq	(%r15), %rax
LBB0_8:
	movq	%rax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	$0, (%r14)
	movl	%ebx, %edi
	callq	_debugstr_guid
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_WARN
	movq	$0, (%r14)
LBB0_15:
	movq	_E_NOINTERFACE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p,%s,%p)\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid parameter\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_IID_IUnknown,4,2               ## @IID_IUnknown
L_.str.2:                               ## @.str.2
	.asciz	"IDirectSound_IUnknown_Create() failed\n"

	.comm	_E_NOINTERFACE,4,2              ## @E_NOINTERFACE
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_IID_IDirectSound,4,2           ## @IID_IDirectSound
L_.str.3:                               ## @.str.3
	.asciz	"IDirectSound_IDirectSound_Create() failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown IID %s\n"

	.no_dead_strip	_DSOUND_QueryInterface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DSOUND_QueryInterface
_DSOUND_QueryInterface:                 ; @DSOUND_QueryInterface
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_debugstr_guid
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_TRACE
	cbz	x19, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, _IID_IUnknown@GOTPAGE
Lloh3:
	ldr	x1, [x1, _IID_IUnknown@GOTPAGEOFF]
	mov	x0, x21
	bl	_IsEqualIID
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x20
	ldr	x0, [x21, #8]!
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_IDirectSound_IUnknown_Create
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_12
LBB0_4:
	bl	_IDirectSound_IUnknown_AddRef
	ldr	x8, [x21]
	b	LBB0_10
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh6:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
Lloh8:
	adrp	x1, _IID_IDirectSound@GOTPAGE
Lloh9:
	ldr	x1, [x1, _IID_IDirectSound@GOTPAGEOFF]
	mov	x0, x21
	bl	_IsEqualIID
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x20]
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x20
	bl	_IDirectSound_IDirectSound_Create
	ldr	x0, [x20]
	cbz	x0, LBB0_13
LBB0_9:
	bl	_IDirectSound_IDirectSound_AddRef
	ldr	x8, [x20]
LBB0_10:
	str	x8, [x19]
Lloh10:
	adrp	x8, _S_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	str	xzr, [x19]
	mov	x0, x21
	bl	_debugstr_guid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_WARN
	str	xzr, [x19]
LBB0_15:
Lloh18:
	adrp	x8, _E_NOINTERFACE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_NOINTERFACE@GOTPAGEOFF]
LBB0_16:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p,%s,%p)\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid parameter\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_IID_IUnknown,4,2               ; @IID_IUnknown
l_.str.2:                               ; @.str.2
	.asciz	"IDirectSound_IUnknown_Create() failed\n"

	.comm	_E_NOINTERFACE,4,2              ; @E_NOINTERFACE
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_IID_IDirectSound,4,2           ; @IID_IDirectSound
l_.str.3:                               ; @.str.3
	.asciz	"IDirectSound_IDirectSound_Create() failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown IID %s\n"

	.no_dead_strip	_DSOUND_QueryInterface
.subsections_via_symbols
