	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OpenPin                        ## -- Begin function OpenPin
	.p2align	4, 0x90
_OpenPin:                               ## @OpenPin
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_KSINTERFACESETID_Standard@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	testq	%r14, %r14
	jne	LBB0_4
## %bb.5:
	movq	_KSINTERFACE_STANDARD_STREAMING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_DSERR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_4:
	movq	_KSINTERFACE_STANDARD_LOOPED_STREAMING@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movq	_KSMEDIUMSETID_Standard@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_KSMEDIUM_TYPE_ANYINSTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	%r13d, 8(%rbx)
	movq	_KSPRIORITY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
	movl	20(%r12), %eax
	movl	%eax, 124(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 120(%rbx)
	movups	(%r12), %xmm1
	movups	%xmm1, 104(%rbx)
	movq	$0, 96(%rbx)
	movl	$8, 56(%rbx)
	movups	%xmm0, 80(%rbx)
	movq	_KSDATAFORMAT_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_KSDATAFORMAT_SUBTYPE_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movl	$4, 60(%rbx)
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_KsCreatePin
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
	movl	%r14d, %eax
LBB0_2:
	addq	$8, %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	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_KSINTERFACESETID_Standard,4,2  ## @KSINTERFACESETID_Standard
	.comm	_KSINTERFACE_STANDARD_LOOPED_STREAMING,4,2 ## @KSINTERFACE_STANDARD_LOOPED_STREAMING
	.comm	_KSINTERFACE_STANDARD_STREAMING,4,2 ## @KSINTERFACE_STANDARD_STREAMING
	.comm	_KSMEDIUMSETID_Standard,4,2     ## @KSMEDIUMSETID_Standard
	.comm	_KSMEDIUM_TYPE_ANYINSTANCE,4,2  ## @KSMEDIUM_TYPE_ANYINSTANCE
	.comm	_KSPRIORITY_NORMAL,4,2          ## @KSPRIORITY_NORMAL
	.comm	_KSDATAFORMAT_TYPE_AUDIO,4,2    ## @KSDATAFORMAT_TYPE_AUDIO
	.comm	_KSDATAFORMAT_SUBTYPE_PCM,4,2   ## @KSDATAFORMAT_SUBTYPE_PCM
	.comm	_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX,4,2 ## @KSDATAFORMAT_SPECIFIER_WAVEFORMATEX
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function OpenPin
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_OpenPin
	.p2align	2
_OpenPin:                               ; @OpenPin
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, 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]
	mov	w2, #8
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _KSINTERFACESETID_Standard@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KSINTERFACESETID_Standard@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KSINTERFACE_STANDARD_STREAMING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KSINTERFACE_STANDARD_STREAMING@GOTPAGEOFF]
	str	w8, [x0, #52]
Lloh8:
	adrp	x8, _KSINTERFACE_STANDARD_LOOPED_STREAMING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KSINTERFACE_STANDARD_LOOPED_STREAMING@GOTPAGEOFF]
	cmp	x24, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	xzr, [x0, #40]
Lloh10:
	adrp	x8, _KSMEDIUMSETID_Standard@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KSMEDIUMSETID_Standard@GOTPAGEOFF]
Lloh12:
	adrp	x9, _KSMEDIUM_TYPE_ANYINSTANCE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KSMEDIUM_TYPE_ANYINSTANCE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	stp	xzr, xzr, [x0, #16]
	str	w23, [x0, #8]
Lloh16:
	adrp	x8, _KSPRIORITY_NORMAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KSPRIORITY_NORMAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x0]
	ldr	d0, [x22, #16]
	str	d0, [x0, #120]
	ldr	q0, [x22]
	stur	q0, [x0, #104]
	stp	xzr, xzr, [x0, #88]
	str	xzr, [x0, #80]
Lloh19:
	adrp	x8, _KSDATAFORMAT_TYPE_AUDIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KSDATAFORMAT_TYPE_AUDIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x0, #72]
Lloh22:
	adrp	x8, _KSDATAFORMAT_SUBTYPE_PCM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KSDATAFORMAT_SUBTYPE_PCM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _KSDATAFORMAT_SPECIFIER_WAVEFORMATEX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _KSDATAFORMAT_SPECIFIER_WAVEFORMATEX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #64]
Lloh28:
	adrp	x8, lCPI0_0@PAGE
Lloh29:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh30:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
	str	d0, [x0, #56]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _GENERIC_WRITE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GENERIC_WRITE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_KsCreatePin
	mov	x19, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh36:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DSERR_OUTOFMEMORY@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdrp	Lloh28, Lloh30
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_KSINTERFACESETID_Standard,4,2  ; @KSINTERFACESETID_Standard
	.comm	_KSINTERFACE_STANDARD_LOOPED_STREAMING,4,2 ; @KSINTERFACE_STANDARD_LOOPED_STREAMING
	.comm	_KSINTERFACE_STANDARD_STREAMING,4,2 ; @KSINTERFACE_STANDARD_STREAMING
	.comm	_KSMEDIUMSETID_Standard,4,2     ; @KSMEDIUMSETID_Standard
	.comm	_KSMEDIUM_TYPE_ANYINSTANCE,4,2  ; @KSMEDIUM_TYPE_ANYINSTANCE
	.comm	_KSPRIORITY_NORMAL,4,2          ; @KSPRIORITY_NORMAL
	.comm	_KSDATAFORMAT_TYPE_AUDIO,4,2    ; @KSDATAFORMAT_TYPE_AUDIO
	.comm	_KSDATAFORMAT_SUBTYPE_PCM,4,2   ; @KSDATAFORMAT_SUBTYPE_PCM
	.comm	_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX,4,2 ; @KSDATAFORMAT_SPECIFIER_WAVEFORMATEX
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
.subsections_via_symbols
