	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vcd_padding_size
_get_vcd_padding_size:                  ## @get_vcd_padding_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.1:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_VCD_PADDING_BITRATE_DEN@GOTPCREL(%rip), %rax
	imulq	$720000, (%rax), %rdx           ## imm = 0xAFC80
	callq	_av_rescale
	subl	8(%rbx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovlel	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_VCD_PADDING_BITRATE_DEN,8,3    ## @VCD_PADDING_BITRATE_DEN
	.no_dead_strip	_get_vcd_padding_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vcd_padding_size
_get_vcd_padding_size:                  ; @get_vcd_padding_size
	.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
	ldr	x19, [x0]
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #1
	ccmp	x8, x1, #4, ge
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _VCD_PADDING_BITRATE_DEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCD_PADDING_BITRATE_DEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #64640
	movk	w9, #10, lsl #16
	mul	x2, x8, x9
	bl	_av_rescale
	ldr	w8, [x19, #8]
	sub	w8, w0, w8
	cmp	w8, #0
	csel	w0, w8, wzr, gt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_VCD_PADDING_BITRATE_DEN,8,3    ; @VCD_PADDING_BITRATE_DEN
	.no_dead_strip	_get_vcd_padding_size
.subsections_via_symbols
