	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_calc_bpframes
_venc_calc_bpframes:                    ## @venc_calc_bpframes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %r10d
	subl	$1, %r10d
	jb	LBB0_1
## %bb.2:
	movq	%rdx, %r8
	movl	$0, (%rcx)
	movl	$0, (%rdx)
	testl	%esi, %esi
	je	LBB0_11
## %bb.3:
	sarl	%r10d
	cmpl	%edi, %r10d
	jge	LBB0_1
## %bb.4:
	movl	%r10d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r9d
	decl	%r10d
	cmpl	%r9d, %edi
	je	LBB0_1
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %eax
	cltd
	idivl	%r10d
	testl	%edx, %edx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	jle	LBB0_8
	jmp	LBB0_1
LBB0_9:
	leal	(%r9,%r10), %eax
	incl	%eax
	cmpl	%edi, %eax
	jne	LBB0_1
## %bb.10:
	movl	%r9d, (%r8)
LBB0_11:
	movl	%r10d, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_venc_calc_bpframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_calc_bpframes
_venc_calc_bpframes:                    ; @venc_calc_bpframes
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_11
; %bb.1:
	sub	w8, w0, #1
	str	wzr, [x3]
	str	wzr, [x2]
	cbz	w1, LBB0_8
; %bb.2:
	asr	w8, w8, #1
	cmp	w8, w0
	b.ge	LBB0_11
; %bb.3:
	mov	x9, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	sub	w8, w8, #1
	cmp	w0, w9
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w9, w8
	mul	w11, w10, w8
	cmp	w11, w9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w10, w1
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	b.le	LBB0_4
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	str	w8, [x3]
	ret
LBB0_9:
	add	w10, w9, w8
	add	w10, w10, #1
	cmp	w10, w0
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	str	w9, [x2]
	str	w8, [x3]
	ret
LBB0_11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_venc_calc_bpframes
.subsections_via_symbols
