	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eit_cb
_eit_cb:                                ## @eit_cb
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	_EIT_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rax), %rdx
	movl	%ecx, 4(%rdx)
	movq	_AV_CODEC_ID_EPG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx)
LBB0_3:
	movq	(%rax), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.4:
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %rdx
	addq	$-16, %rdx
	movq	%r15, -40(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_parse_section_header
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	movq	-56(%rbp), %rcx
	movq	_EIT_TID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_11
## %bb.6:
	movq	_OEITS_END_TID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_11
## %bb.7:
	movl	24(%rbx), %edi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	cmpl	$65535, -48(%rbp)               ## imm = 0xFFFF
	jne	LBB0_9
## %bb.8:
	movl	24(%rbx), %edi
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
LBB0_9:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_new_data_packet
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	8(%rax), %eax
	movl	%eax, (%rcx)
	movl	$1, (%rbx)
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIT_PID,4,2                    ## @EIT_PID
	.comm	_AVMEDIA_TYPE_DATA,4,2          ## @AVMEDIA_TYPE_DATA
	.comm	_AV_CODEC_ID_EPG,4,2            ## @AV_CODEC_ID_EPG
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_EIT_TID,8,3                    ## @EIT_TID
	.comm	_OEITS_END_TID,8,3              ## @OEITS_END_TID
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EIT: tid received = %.02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Scrambled EIT table received.\n"

	.no_dead_strip	_eit_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eit_cb
_eit_cb:                                ; @eit_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x0, [x21, #8]
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21, #24]
	mov	x1, #0
	bl	_avformat_new_stream
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.2:
Lloh0:
	adrp	x8, _EIT_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIT_PID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0, #16]
Lloh6:
	adrp	x10, _AV_CODEC_ID_EPG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_EPG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
LBB0_3:
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _AVDISCARD_ALL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.4:
	add	x8, x20, w19, sxtw #2
	sub	x2, x8, #16
	str	x20, [sp, #24]
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_parse_section_header
	tbnz	x0, #63, LBB0_10
; %bb.5:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, _EIT_TID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EIT_TID@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _OEITS_END_TID@GOTPAGE
Lloh16:
	ldr	x10, [x10, _OEITS_END_TID@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.gt	LBB0_10
; %bb.6:
	ldr	w0, [x21, #24]
Lloh18:
	adrp	x22, _AV_LOG_TRACE@GOTPAGE
Lloh19:
	ldr	x22, [x22, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w1, [x22]
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w8, [sp, #16]
	mov	w9, #65535
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x21, #24]
	ldr	w1, [x22]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	b	LBB0_10
LBB0_8:
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_new_data_packet
	ldp	x8, x9, [x21, #8]
	ldr	w8, [x8, #8]
	str	w8, [x9]
	mov	w8, #1
	str	w8, [x21]
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EIT_PID,4,2                    ; @EIT_PID
	.comm	_AVMEDIA_TYPE_DATA,4,2          ; @AVMEDIA_TYPE_DATA
	.comm	_AV_CODEC_ID_EPG,4,2            ; @AV_CODEC_ID_EPG
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_EIT_TID,8,3                    ; @EIT_TID
	.comm	_OEITS_END_TID,8,3              ; @OEITS_END_TID
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EIT: tid received = %.02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Scrambled EIT table received.\n"

	.no_dead_strip	_eit_cb
.subsections_via_symbols
