	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegts_write_section1
_mpegts_write_section1:                 ## @mpegts_write_section1
	.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
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rbp), %r10d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	12(%r10), %ebx
	cmpl	$1025, %ebx                     ## imm = 0x401
	jb	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%ecx, %r14d
	movq	_SDT_TID@GOTPCREL(%rip), %rax
	movl	%edx, -4156(%rbp)               ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpl	%esi, (%rax)
	sete	%cl
	shll	$14, %ecx
	leal	9(%r10), %eax
	orl	%ecx, %eax
	leaq	-4140(%rbp), %rcx
	movq	%rcx, -4152(%rbp)
	movl	%esi, -4144(%rbp)
	orl	$45056, %eax                    ## imm = 0xB000
	leaq	-4152(%rbp), %r12
	movq	%rdi, -4168(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	callq	_put16
	movq	%r12, %rdi
	movl	-4156(%rbp), %esi               ## 4-byte Reload
	callq	_put16
	addl	%r14d, %r14d
	orl	$193, %r14d
	movq	-4152(%rbp), %rax
	movl	%r14d, (%rax)
	movl	%r15d, 4(%rax)
	leaq	12(%rax), %rdi
	movq	%rdi, -4152(%rbp)
	movl	%r13d, 8(%rax)
	movq	16(%rbp), %rsi
	movl	24(%rbp), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	leaq	-4144(%rbp), %rsi
	movq	-4168(%rbp), %rdi               ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mpegts_write_section
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SDT_TID,4,2                    ## @SDT_TID
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mpegts_write_section1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegts_write_section1
_mpegts_write_section1:                 ; @mpegts_write_section1
	.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	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	w22, w7, #12
	cmp	w22, #1025
	b.lo	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x19, x7
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x0
Lloh8:
	adrp	x8, _SDT_TID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDT_TID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #45056
	mov	w10, #61440
	cmp	w8, w1
	csel	w8, w10, w9, eq
	add	x9, sp, #8
	add	x9, x9, #4
	str	x9, [sp]
	str	w1, [sp, #8]
	add	w9, w7, #9
	orr	w1, w8, w9
	mov	x0, sp
	bl	_put16
	mov	x0, sp
	mov	x1, x26
	bl	_put16
	mov	w8, #193
	ldr	x9, [sp]
	orr	w8, w8, w25, lsl #1
	stp	w8, w24, [x9]
	add	x0, x9, #12
	str	x0, [sp]
	str	w23, [x9, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_mpegts_write_section
	mov	w0, #0
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDT_TID,4,2                    ; @SDT_TID
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mpegts_write_section1
.subsections_via_symbols
