	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IDirectSoundFullDuplex_IDirectSound8_Create
_IDirectSoundFullDuplex_IDirectSound8_Create: ## @IDirectSoundFullDuplex_IDirectSound8_Create
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_DirectSoundFullDuplex_DirectSound8_Vtbl@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rbx, (%rax)
	movq	%rax, (%r14)
	movq	_DS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_ERR
	movq	_DSERR_INVALIDPARAM@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
	movq	$0, (%r14)
	movq	_DSERR_UNINITIALIZED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	_WARN
	movq	$0, (%r14)
	movq	_DSERR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p,%p)\n"

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

	.comm	_DSERR_INVALIDPARAM,4,2         ## @DSERR_INVALIDPARAM
L_.str.2:                               ## @.str.2
	.asciz	"invalid parameter: ppds8 == NULL\n"

L_.str.3:                               ## @.str.3
	.asciz	"not initialized\n"

	.comm	_DSERR_UNINITIALIZED,4,2        ## @DSERR_UNINITIALIZED
L_.str.4:                               ## @.str.4
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_DirectSoundFullDuplex_DirectSound8_Vtbl,4,2 ## @DirectSoundFullDuplex_DirectSound8_Vtbl
	.comm	_DS_OK,4,2                      ## @DS_OK
	.no_dead_strip	_IDirectSoundFullDuplex_IDirectSound8_Create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IDirectSoundFullDuplex_IDirectSound8_Create
_IDirectSoundFullDuplex_IDirectSound8_Create: ; @IDirectSoundFullDuplex_IDirectSound8_Create
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	cbz	x20, LBB0_5
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.3:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #24
	bl	_HeapAlloc
	cbz	x0, LBB0_10
; %bb.4:
Lloh2:
	adrp	x8, _DirectSoundFullDuplex_DirectSound8_Vtbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DirectSoundFullDuplex_DirectSound8_Vtbl@GOTPAGEOFF]
	stp	xzr, x8, [x0, #8]
	str	x20, [x0]
	str	x0, [x19]
Lloh4:
	adrp	x8, _DS_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_ERR
Lloh10:
	adrp	x8, _DSERR_INVALIDPARAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSERR_INVALIDPARAM@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
LBB0_9:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
	str	xzr, [x19]
Lloh14:
	adrp	x8, _DSERR_UNINITIALIZED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSERR_UNINITIALIZED@GOTPAGEOFF]
	b	LBB0_8
LBB0_10:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
	str	xzr, [x19]
Lloh18:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DSERR_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p,%p)\n"

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

	.comm	_DSERR_INVALIDPARAM,4,2         ; @DSERR_INVALIDPARAM
l_.str.2:                               ; @.str.2
	.asciz	"invalid parameter: ppds8 == NULL\n"

l_.str.3:                               ; @.str.3
	.asciz	"not initialized\n"

	.comm	_DSERR_UNINITIALIZED,4,2        ; @DSERR_UNINITIALIZED
l_.str.4:                               ; @.str.4
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_DirectSoundFullDuplex_DirectSound8_Vtbl,4,2 ; @DirectSoundFullDuplex_DirectSound8_Vtbl
	.comm	_DS_OK,4,2                      ; @DS_OK
	.no_dead_strip	_IDirectSoundFullDuplex_IDirectSound8_Create
.subsections_via_symbols
