	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_packets
_encode_packets:                        ## @encode_packets
	.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	$24, %rsp
	.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, %r15
	movl	4(%rdi), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	32(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.1:
	movslq	%r14d, %rsi
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r12,2), %rcx
	addl	$-2, %ecx
	testq	%r12, %r12
	movslq	%ecx, %rcx
	cmoveq	%r12, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movq	8(%r15), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx,%rdx,8), %r13
	movl	4(%r13,%r12,8), %ecx
	imull	(%r13,%r12,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,8), %r14
	addq	%r13, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	24(%r15), %rcx
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	movl	16(%r15), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_encode_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=3
	incl	%ebx
	movl	4(%r13,%r12,8), %eax
	imull	(%r13,%r12,8), %eax
	cmpl	%eax, %ebx
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r15), %ecx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jl	LBB0_2
LBB0_12:
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tier2\n"

L_.str.1:                               ## @.str.1
	.asciz	"after tier2\n"

	.no_dead_strip	_encode_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_packets
_encode_packets:                        ; @encode_packets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x22, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w9, [x19, #32]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, #0
	sxtw	x24, w20
	ldr	w8, [x19]
	mov	x10, #12884901888
	mov	x26, #-8589934592
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	madd	x9, x23, x10, x26
	asr	x9, x9, #32
	cmp	x23, #0
	csel	x28, xzr, x9, eq
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, x27, lsl #3]
	add	x20, x9, x23, lsl #3
	mov	x25, x20
	ldr	w9, [x25, #4]!
	ldr	w10, [x20]
	mul	w9, w9, w10
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w21, #0
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #24]
	add	x3, x8, x28
	ldr	w4, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_encode_packet
	tbnz	w0, #31, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	add	w21, w21, #1
	ldr	w8, [x20]
	ldr	w9, [x25]
	mul	w8, w9, w8
	cmp	w21, w8
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x19]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #32]
	mov	x10, #12884901888
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.lt	LBB0_2
LBB0_12:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tier2\n"

l_.str.1:                               ; @.str.1
	.asciz	"after tier2\n"

	.no_dead_strip	_encode_packets
.subsections_via_symbols
