	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_PrimaryCreate           ## -- Begin function DSOUND_PrimaryCreate
	.p2align	4, 0x90
_DSOUND_PrimaryCreate:                  ## @DSOUND_PrimaryCreate
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	_ds_hel_buflen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_DSOUND_PrimaryOpen
	movq	%rax, %r14
	movq	_DS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_1
## %bb.2:
	movq	_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
LBB0_3:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_OK,8,3                      ## @DS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p)\n"

	.comm	_ds_hel_buflen,4,2              ## @ds_hel_buflen
L_.str.1:                               ## @.str.1
	.asciz	"DSOUND_PrimaryOpen failed\n"

	.comm	_STATE_STOPPED,4,2              ## @STATE_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_PrimaryCreate           ; -- Begin function DSOUND_PrimaryCreate
	.p2align	2
_DSOUND_PrimaryCreate:                  ; @DSOUND_PrimaryCreate
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
Lloh2:
	adrp	x8, _ds_hel_buflen@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ds_hel_buflen@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_DSOUND_PrimaryOpen
	mov	x20, x0
Lloh5:
	adrp	x8, _DS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _STATE_STOPPED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATE_STOPPED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_OK,8,3                      ; @DS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p)\n"

	.comm	_ds_hel_buflen,4,2              ; @ds_hel_buflen
l_.str.1:                               ; @.str.1
	.asciz	"DSOUND_PrimaryOpen failed\n"

	.comm	_STATE_STOPPED,4,2              ; @STATE_STOPPED
.subsections_via_symbols
