	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_bufreq        ## -- Begin function venus_helper_get_bufreq
	.p2align	4, 0x90
_venus_helper_get_bufreq:               ## @venus_helper_get_bufreq
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_2:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hfi_session_get_property
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_HFI_BUFFER_TYPE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	-40(%rbp), %rsi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rsi)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %rsi
	decq	%rax
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS,8,3 ## @HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HFI_BUFFER_TYPE_MAX,4,2        ## @HFI_BUFFER_TYPE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_bufreq        ; -- Begin function venus_helper_get_bufreq
	.p2align	2
_venus_helper_get_bufreq:               ; @venus_helper_get_bufreq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_2:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_hfi_session_get_property
	cbz	w0, LBB0_4
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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
Lloh6:
	adrp	x8, _HFI_BUFFER_TYPE_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HFI_BUFFER_TYPE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.5:
	ldr	x1, [sp, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x1]
	cmp	x9, x20
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x1, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_3
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
LBB0_10:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS,8,3 ; @HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HFI_BUFFER_TYPE_MAX,4,2        ; @HFI_BUFFER_TYPE_MAX
.subsections_via_symbols
