	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_wrap_reference
_update_wrap_reference:                 ## @update_wrap_reference
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	(%rcx), %r15
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jne	LBB0_2
## %bb.1:
	movq	8(%rcx), %r15
LBB0_2:
	xorl	%r13d, %r13d
	cmpq	%rax, (%rsi)
	jne	LBB0_36
## %bb.3:
	movl	8(%rsi), %ecx
	cmpl	$62, %ecx
	jg	LBB0_36
## %bb.4:
	cmpq	%rax, %r15
	je	LBB0_36
## %bb.5:
	cmpl	$0, 16(%r12)
	je	LBB0_36
## %bb.6:
	movq	$-1, %rbx
	movq	$-1, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	notq	%rax
	andq	%rax, %r15
	movl	16(%rsi), %edx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %esi
	movl	$60, %edi
	callq	_av_rescale
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	8(%rsi), %cl
	movl	$1, %r13d
	shlq	%cl, %r13
	addb	$-3, %cl
	shlq	%cl, %rbx
	addq	%r13, %rbx
	cmpq	%rbx, %r15
	movq	%r15, %rbx
	jge	LBB0_8
## %bb.7:
	movq	_AV_PTS_WRAP_ADD_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	movq	%rax, %r15
	movl	16(%rsi), %edx
	movl	20(%rsi), %esi
	movl	$60, %edi
	callq	_av_rescale
	subq	%rax, %r13
	cmpq	%r13, %rbx
	jge	LBB0_9
## %bb.10:
	movq	_AV_PTS_WRAP_ADD_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_AV_PTS_WRAP_SUB_OFFSET@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	%r15, %rax
LBB0_12:
	subq	%rax, %rbx
	movl	(%rcx), %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_av_find_program_from_stream
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_15
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_av_find_program_from_stream
	testq	%rax, %rax
	jne	LBB0_14
## %bb.24:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_16:
	movq	%r12, %rdi
	callq	_av_find_default_stream_index
	movq	8(%r12), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_22
## %bb.17:
	movl	$1, %r13d
	cmpl	$0, (%r12)
	jle	LBB0_36
## %bb.18:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_36
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_find_program_from_stream
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%r14, (%rax)
	movl	%r15d, 8(%rax)
	jmp	LBB0_21
LBB0_15:
	movl	8(%rax), %r15d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%rbx, (%r13)
	movl	%r15d, 8(%r13)
LBB0_34:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_av_find_program_from_stream
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_35
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	cmpq	%rbx, (%r13)
	je	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	12(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	8(%r12), %rcx
	movq	16(%r13), %rdx
	cmpl	$1, %r8d
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rbx, (%rax)
	movq	(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movl	%r15d, 8(%rax)
	movq	8(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rbx, (%rax)
	movq	8(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movl	%r15d, 8(%rax)
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	testb	$1, %r8b
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rbx, (%rax)
	movq	(%rdx,%rsi,8), %rax
	movq	(%rcx,%rax,8), %rax
	movl	%r15d, 8(%rax)
	jmp	LBB0_33
LBB0_22:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	movl	8(%rax), %eax
	movl	%eax, 12(%rdx)
LBB0_35:
	movl	$1, %r13d
LBB0_36:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_ADD_OFFSET,4,2     ## @AV_PTS_WRAP_ADD_OFFSET
	.comm	_AV_PTS_WRAP_SUB_OFFSET,4,2     ## @AV_PTS_WRAP_SUB_OFFSET
	.no_dead_strip	_update_wrap_reference
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_wrap_reference
_update_wrap_reference:                 ; @update_wrap_reference
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x3]
Lloh0:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x3, #8]
LBB0_2:
	ldr	x10, [x21]
	cmp	x10, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	w10, [x21, #8]
	cmp	w10, #62
	ccmp	x8, x9, #4, le
	b.eq	LBB0_11
; %bb.4:
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_11
; %bb.5:
	mov	x26, #-1
	lsl	x9, x26, x10
	bic	x23, x8, x9
	ldp	w2, w1, [x21, #16]
	mov	w0, #60
	bl	_av_rescale
	mov	x22, x0
	ldr	w8, [x21, #8]
	mov	w9, #1
	lsl	x24, x9, x8
	sub	w8, w8, #3
	lsl	x8, x26, x8
Lloh2:
	adrp	x26, _AV_PTS_WRAP_ADD_OFFSET@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AV_PTS_WRAP_ADD_OFFSET@GOTPAGEOFF]
	add	x8, x8, x24
	cmp	x23, x8
	b.lt	LBB0_7
; %bb.6:
	ldp	w2, w1, [x21, #16]
	mov	w0, #60
	bl	_av_rescale
Lloh4:
	adrp	x8, _AV_PTS_WRAP_SUB_OFFSET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_PTS_WRAP_SUB_OFFSET@GOTPAGEOFF]
	sub	x9, x24, x0
	cmp	x23, x9
	csel	x26, x26, x8, lt
LBB0_7:
	sub	x24, x23, x22
	ldr	w23, [x26]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	bl	_av_find_program_from_stream
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	mov	x1, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x1]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x2, x20
	bl	_av_find_program_from_stream
	mov	x1, x0
	cbnz	x0, LBB0_9
	b	LBB0_22
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	bl	_av_find_default_stream_index
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.14:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.15:
	mov	x20, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	mov	w0, #1
	cmp	x20, x8
	b.ge	LBB0_12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	bl	_av_find_program_from_stream
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	str	x24, [x8]
	str	w23, [x8, #8]
	b	LBB0_16
LBB0_19:
	ldr	w23, [x1, #8]
	mov	x24, x8
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	str	x24, [x22]
	str	w23, [x22, #8]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_av_find_program_from_stream
	mov	x22, x0
	cbz	x0, LBB0_27
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	ldr	x8, [x22]
	cmp	x8, x24
	b.eq	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x22, #12]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x22, #16]
LBB0_25:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	ldr	x11, [x9, x11, lsl #3]
	str	x24, [x11]
	ldr	x11, [x10], #8
	ldr	x11, [x9, x11, lsl #3]
	str	w23, [x11, #8]
	subs	x8, x8, #1
	b.ne	LBB0_25
	b	LBB0_20
LBB0_26:
	str	x9, [x21]
	ldr	w8, [x8, #8]
	str	w8, [x21, #12]
LBB0_27:
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_ADD_OFFSET,4,2     ; @AV_PTS_WRAP_ADD_OFFSET
	.comm	_AV_PTS_WRAP_SUB_OFFSET,4,2     ; @AV_PTS_WRAP_SUB_OFFSET
	.no_dead_strip	_update_wrap_reference
.subsections_via_symbols
