	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dshow_set_audio_buffer_size
_dshow_set_audio_buffer_size:           ## @dshow_set_audio_buffer_size
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	$0, -56(%rbp)
	movl	l___const.dshow_set_audio_buffer_size.props+16(%rip), %eax
	movl	%eax, -64(%rbp)
	movups	l___const.dshow_set_audio_buffer_size.props(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	movq	_IID_IAMStreamConfig@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_IPin_QueryInterface
	movq	_S_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_IAMStreamConfig_GetFormat
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.2:
	movq	-40(%rbp), %rdi
	addq	$8, %rdi
	movq	_FORMAT_WaveFormatEx@GOTPCREL(%rip), %rsi
	callq	_IsEqualGUID
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%r12), %ecx
	imull	(%rax), %ecx
	movslq	%ecx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, -64(%rbp)
	movq	_IID_IAMBufferNegotiation@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_IPin_QueryInterface
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_IAMBufferNegotiation_SuggestAllocatorProperties
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	cmovel	%ecx, %r14d
LBB0_5:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_IAMBufferNegotiation_Release
LBB0_7:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_CoTaskMemFree
	movq	-40(%rbp), %rdi
LBB0_10:
	callq	_CoTaskMemFree
LBB0_11:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_IAMStreamConfig_Release
LBB0_13:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.dshow_set_audio_buffer_size.props
l___const.dshow_set_audio_buffer_size.props:
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0

	.comm	_EIO,4,2                        ## @EIO
	.comm	_IID_IAMStreamConfig,4,2        ## @IID_IAMStreamConfig
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_FORMAT_WaveFormatEx,4,2        ## @FORMAT_WaveFormatEx
	.comm	_IID_IAMBufferNegotiation,4,2   ## @IID_IAMBufferNegotiation
	.no_dead_strip	_dshow_set_audio_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dshow_set_audio_buffer_size
_dshow_set_audio_buffer_size:           ; @dshow_set_audio_buffer_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	ldr	x22, [x0]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, l___const.dshow_set_audio_buffer_size.props@PAGE
Lloh1:
	add	x8, x8, l___const.dshow_set_audio_buffer_size.props@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	w8, [x8, #16]
	str	w8, [sp, #32]
	stp	xzr, xzr, [sp]
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
Lloh5:
	adrp	x1, _IID_IAMStreamConfig@GOTPAGE
Lloh6:
	ldr	x1, [x1, _IID_IAMStreamConfig@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	bl	_IPin_QueryInterface
Lloh7:
	adrp	x21, _S_OK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _S_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_IAMStreamConfig_GetFormat
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [sp]
	add	x0, x8, #8
Lloh9:
	adrp	x1, _FORMAT_WaveFormatEx@GOTPAGE
Lloh10:
	ldr	x1, [x1, _FORMAT_WaveFormatEx@GOTPAGEOFF]
	bl	_IsEqualGUID
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x22]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [sp, #32]
Lloh11:
	adrp	x1, _IID_IAMBufferNegotiation@GOTPAGE
Lloh12:
	ldr	x1, [x1, _IID_IAMBufferNegotiation@GOTPAGEOFF]
	add	x2, sp, #40
	mov	x0, x20
	bl	_IPin_QueryInterface
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [sp, #40]
	add	x1, sp, #16
	bl	_IAMBufferNegotiation_SuggestAllocatorProperties
	ldr	x8, [x21]
	cmp	x0, x8
	csel	w19, wzr, w19, eq
LBB0_5:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_IAMBufferNegotiation_Release
LBB0_7:
	ldr	x0, [sp]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x8
	bl	_CoTaskMemFree
	ldr	x0, [sp]
LBB0_10:
	bl	_CoTaskMemFree
LBB0_11:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_IAMStreamConfig_Release
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.dshow_set_audio_buffer_size.props
l___const.dshow_set_audio_buffer_size.props:
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0

	.comm	_EIO,4,2                        ; @EIO
	.comm	_IID_IAMStreamConfig,4,2        ; @IID_IAMStreamConfig
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_FORMAT_WaveFormatEx,4,2        ; @FORMAT_WaveFormatEx
	.comm	_IID_IAMBufferNegotiation,4,2   ; @IID_IAMBufferNegotiation
	.no_dead_strip	_dshow_set_audio_buffer_size
.subsections_via_symbols
