	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_framesz       ## -- Begin function venus_helper_get_framesz
	.p2align	4, 0x90
_venus_helper_get_framesz:              ## @venus_helper_get_framesz
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
                                        ## kill: def $edi killed $edi def $rdi
	leal	-142(%rdi), %eax
	cmpl	$-14, %eax
	jae	LBB0_3
## %bb.1:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_to_hfi_raw_fmt
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_venus_helper_get_framesz_raw   ## TAILCALL
LBB0_3:
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_ALIGN
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$32, %esi
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	imull	%ebx, %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %edi
	addl	$3, %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$2, %edi
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ALIGN                          ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_4K,4,2                      ## @SZ_4K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_framesz       ; -- Begin function venus_helper_get_framesz
	.p2align	2
_venus_helper_get_framesz:              ; @venus_helper_get_framesz
	.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	x20, x2
	mov	x19, x1
	sub	w8, w0, #142
	cmn	w8, #14
	b.hs	LBB0_3
; %bb.1:
	bl	_to_hfi_raw_fmt
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_venus_helper_get_framesz_raw
LBB0_3:
	mov	x0, x20
	mov	w1, #32
	bl	_ALIGN
	mov	x20, x0
	mov	x0, x19
	mov	w1, #32
	bl	_ALIGN
	mul	w8, w20, w0
	add	w8, w8, w8, lsl #1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
Lloh0:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ALIGN
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_4K,4,2                      ; @SZ_4K
.subsections_via_symbols
