	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_FullDuplexCreate        ## -- Begin function DSOUND_FullDuplexCreate
	.p2align	4, 0x90
_DSOUND_FullDuplexCreate:               ## @DSOUND_FullDuplexCreate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_debugstr_guid
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	_IID_IUnknown@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_IsEqualIID
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_IID_IDirectSoundFullDuplex@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_IsEqualIID
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_setup_dsound_options
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$32, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_dsfdvt@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movl	$1, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	%rax, (%r14)
	movq	_DS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_DSERR_INVALIDPARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	$0, (%r14)
	movq	_DSERR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	$0, (%r14)
	movq	_E_NOINTERFACE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%s, %p)\n"

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

	.comm	_DSERR_INVALIDPARAM,4,2         ## @DSERR_INVALIDPARAM
	.comm	_IID_IUnknown,4,2               ## @IID_IUnknown
	.comm	_IID_IDirectSoundFullDuplex,4,2 ## @IID_IDirectSoundFullDuplex
	.comm	_E_NOINTERFACE,4,2              ## @E_NOINTERFACE
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.2:                               ## @.str.2
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_dsfdvt,4,2                     ## @dsfdvt
	.comm	_DS_OK,4,2                      ## @DS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_FullDuplexCreate        ; -- Begin function DSOUND_FullDuplexCreate
	.p2align	2
_DSOUND_FullDuplexCreate:               ; @DSOUND_FullDuplexCreate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_debugstr_guid
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_TRACE
	cbz	x19, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, _IID_IUnknown@GOTPAGE
Lloh3:
	ldr	x1, [x1, _IID_IUnknown@GOTPAGEOFF]
	mov	x0, x20
	bl	_IsEqualIID
	cbnz	w0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x1, _IID_IDirectSoundFullDuplex@GOTPAGE
Lloh5:
	ldr	x1, [x1, _IID_IDirectSoundFullDuplex@GOTPAGEOFF]
	mov	x0, x20
	bl	_IsEqualIID
	cbz	w0, LBB0_7
LBB0_3:
	bl	_setup_dsound_options
	bl	_GetProcessHeap
Lloh6:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #32
	bl	_HeapAlloc
	cbz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _dsfdvt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dsfdvt@GOTPAGEOFF]
	stp	xzr, x8, [x0, #16]
	mov	w8, #1
	str	w8, [x0]
	str	xzr, [x0, #8]
	str	x0, [x19]
Lloh11:
	adrp	x8, _DS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh15:
	adrp	x8, _DSERR_INVALIDPARAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSERR_INVALIDPARAM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
	str	xzr, [x19]
Lloh19:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DSERR_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	str	xzr, [x19]
Lloh21:
	adrp	x8, _E_NOINTERFACE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E_NOINTERFACE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%s, %p)\n"

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

	.comm	_DSERR_INVALIDPARAM,4,2         ; @DSERR_INVALIDPARAM
	.comm	_IID_IUnknown,4,2               ; @IID_IUnknown
	.comm	_IID_IDirectSoundFullDuplex,4,2 ; @IID_IDirectSoundFullDuplex
	.comm	_E_NOINTERFACE,4,2              ; @E_NOINTERFACE
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.2:                               ; @.str.2
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_dsfdvt,4,2                     ; @dsfdvt
	.comm	_DS_OK,4,2                      ; @DS_OK
.subsections_via_symbols
