	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_frame
_put_frame:                             ## @put_frame
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_20
## %bb.1:
	movl	%r9d, %ebx
	movq	%rcx, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	leaq	32(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	_PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS@GOTPCREL(%rip), %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %r12d
	movq	%r15, %rbx
	movl	%esi, %r15d
	callq	_flush_packet
	movl	%r15d, %esi
	movq	%rbx, %r15
	movl	%r12d, %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	subl	%esi, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r12, %rdi
	callq	_flush_packet
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	cmpl	$-1, %edx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_PACKET_HEADER_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	(%r15), %ecx
	movl	12(%r13), %eax
	notl	%ecx
	addl	%eax, %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movslq	%edx, %rdx
	movq	_INT64_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	_UINT16_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	subq	%rsi, %rdi
	cmpq	%rdx, %rdi
	jl	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	addq	%rdx, %rsi
	cmpq	%r14, %rsi
	jb	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rcx), %eax
	movq	%r14, %rsi
	leal	-2(%rcx), %r14d
	cmpl	%eax, %ebx
	cmovnel	%ebx, %r14d
	cmpl	%ecx, %ebx
	cmovgl	%ecx, %r14d
	movq	_PREROLL_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rsi, %rdx
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_put_payload_header
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_avio_write
	movl	8(%r13), %ecx
	movq	%r15, %rdx
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD@GOTPCREL(%rip), %rdx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r13), %eax
	movl	(%rdx), %edx
	addl	%r14d, %edx
	subl	%edx, %eax
	movl	%eax, 12(%r13)
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 24(%r13)
	incq	16(%r13)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %eax
	movl	%eax, %edx
	movq	_MULTI_PAYLOAD_HEADERS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %edx
	xorl	%ecx, %ecx
	cmpl	%edx, %ebx
	setl	%cl
	movl	%ecx, 8(%r13)
	movl	%eax, 12(%r13)
	leal	-1(%rdx), %esi
	movl	%eax, %ecx
	movq	_SINGLE_PAYLOAD_HEADERS@GOTPCREL(%rip), %rdi
	subl	(%rdi), %ecx
	cmpl	%edx, %ebx
	cmovll	%esi, %ecx
	movl	%r14d, (%r13)
	testl	%ecx, %ecx
	jg	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %ecx
	xorl	%r14d, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%r14d, %esi
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	movq	_PACKET_HEADER_MIN_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%edx, %ecx
	incl	%ecx
	cmpl	%ecx, %eax
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	_ASF_PAYLOADS_PER_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MULTI_PAYLOAD_HEADERS,4,2      ## @MULTI_PAYLOAD_HEADERS
	.comm	_SINGLE_PAYLOAD_HEADERS,4,2     ## @SINGLE_PAYLOAD_HEADERS
	.comm	_PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS,4,2 ## @PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS
	.comm	_PACKET_HEADER_MIN_SIZE,4,2     ## @PACKET_HEADER_MIN_SIZE
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
	.comm	_PREROLL_TIME,8,3               ## @PREROLL_TIME
	.comm	_PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD,4,2 ## @PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD
	.comm	_ASF_PAYLOADS_PER_PACKET,8,3    ## @ASF_PAYLOADS_PER_PACKET
	.no_dead_strip	_put_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_frame
_put_frame:                             ; @put_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w5, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x0
	mov	w26, #0
	ldr	x19, [x0]
	add	x8, x19, #32
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x27, _PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS@GOTPAGEOFF]
Lloh2:
	adrp	x21, _PACKET_HEADER_MIN_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PACKET_HEADER_MIN_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x20, _UINT16_MAX@GOTPAGE
Lloh5:
	ldr	x20, [x20, _UINT16_MAX@GOTPAGEOFF]
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_flush_packet
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w28, sxtw #2
	add	w26, w28, w26
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w26, w5
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sub	w28, w5, w26
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	sxtw	x10, w10
Lloh6:
	adrp	x11, _INT64_MAX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _INT64_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	ldr	x12, [x20]
	add	x13, x12, x10
	sub	x11, x11, x12
	cmp	x11, x10
	ccmp	x13, x23, #0, ge
	b.hs	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x25
	bl	_flush_packet
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x19]
	cmn	w10, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x19, #12]
	ldr	w9, [x27]
	ldr	w11, [x21]
	add	w9, w11, w9
	mvn	w9, w9
	add	w9, w8, w9
	cmp	w9, w28
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x24]
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x12, [x12, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_5
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _MULTI_PAYLOAD_HEADERS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MULTI_PAYLOAD_HEADERS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w9, w8, w9
	cmp	w28, w9
	sub	w9, w9, #1
Lloh15:
	adrp	x10, _SINGLE_PAYLOAD_HEADERS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SINGLE_PAYLOAD_HEADERS@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	sub	w10, w8, w10
	cset	w11, lt
	stp	w11, w8, [x19, #8]
	csel	w9, w9, w10, lt
	str	w23, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w9, #1
	sub	w10, w9, #2
	cmp	w28, w8
	csel	w8, w10, w28, eq
	cmp	w28, w9
	csel	w28, w9, w8, gt
Lloh18:
	adrp	x8, _PREROLL_TIME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PREROLL_TIME@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x2, x23, x8
	mov	x0, x25
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	mov	x4, x26
	mov	x5, x28
	ldr	w6, [sp, #12]                   ; 4-byte Folded Reload
	bl	_put_payload_header
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x28
	bl	_avio_write
	ldp	w9, w8, [x19, #8]
	cmp	w9, #0
Lloh21:
	adrp	x10, _PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD@GOTPAGEOFF]
	csel	x10, x10, x27, eq
	ldr	w10, [x10]
	add	w10, w10, w28
	sub	w8, w8, w10
	str	w8, [x19, #12]
	ldr	x10, [x19, #16]
	add	x10, x10, #1
	stp	x10, x23, [x19, #16]
	cbnz	w9, LBB0_14
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	ldr	w10, [x21]
	add	w9, w9, w10
	add	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _ASF_PAYLOADS_PER_PACKET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ASF_PAYLOADS_PER_PACKET@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
	b	LBB0_3
LBB0_16:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MULTI_PAYLOAD_HEADERS,4,2      ; @MULTI_PAYLOAD_HEADERS
	.comm	_SINGLE_PAYLOAD_HEADERS,4,2     ; @SINGLE_PAYLOAD_HEADERS
	.comm	_PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS,4,2 ; @PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS
	.comm	_PACKET_HEADER_MIN_SIZE,4,2     ; @PACKET_HEADER_MIN_SIZE
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
	.comm	_PREROLL_TIME,8,3               ; @PREROLL_TIME
	.comm	_PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD,4,2 ; @PAYLOAD_HEADER_SIZE_SINGLE_PAYLOAD
	.comm	_ASF_PAYLOADS_PER_PACKET,8,3    ; @ASF_PAYLOADS_PER_PACKET
	.no_dead_strip	_put_frame
.subsections_via_symbols
