	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmx_swfilter_section_packet
_dvb_dmx_swfilter_section_packet:       ## @dvb_dmx_swfilter_section_packet
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_payload
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	movl	12(%r12), %ebx
	andl	$15, %ebx
	movl	(%r14), %eax
	incl	%eax
	andl	$15, %eax
	movl	%ebx, (%r14)
	testb	$32, 12(%r12)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 16(%r12)
	jle	LBB0_6
## %bb.5:
	movb	20(%r12), %cl
	shrb	$7, %cl
	jmp	LBB0_7
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movl	$188, %r13d
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	testb	%cl, %cl
	je	LBB0_13
LBB0_9:
	testb	%cl, %cl
	je	LBB0_11
## %bb.10:
	movq	_DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_buf_flags
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk_sect_loss
	jmp	LBB0_12
LBB0_3:
	movl	$-1, %ebx
	jmp	LBB0_21
LBB0_11:
	movq	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_buf_flags
	movl	(%r14), %edx
	incl	%edx
	andl	$15, %edx
	leal	4(%r15), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk_sect_loss
LBB0_12:
	movl	$0, 4(%r14)
	movq	%r14, %rdi
	callq	_dvb_dmx_swfilter_section_new
LBB0_13:
	subl	%r15d, %r13d
	testb	$64, 4(%r12)
	jne	LBB0_15
## %bb.14:
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	jmp	LBB0_18
LBB0_15:
	cmpl	$2, %r15d
	jl	LBB0_19
## %bb.16:
	movslq	%r13d, %rax
	movslq	(%r12,%rax,4), %rdx
	cmpl	%r15d, %edx
	jge	LBB0_20
## %bb.17:
	movl	$189, %eax
	subl	%r15d, %eax
	cltq
	leaq	(%r12,%rax,4), %rsi
	leaq	(%rsi,%rdx,4), %r12
	movl	%edx, %ebx
	notl	%ebx
	addl	%r15d, %ebx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dvb_dmx_swfilter_section_copy_dump
	movl	$1, 4(%r14)
	movq	%r14, %rdi
	callq	_dvb_dmx_swfilter_section_new
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
LBB0_18:
	callq	_dvb_dmx_swfilter_section_copy_dump
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
	cmpl	$1, %r15d
	jne	LBB0_21
LBB0_20:
	movq	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_buf_flags
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dprintk_sect_loss
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR,4,2 ## @DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d frame with disconnect indicator\n"

	.comm	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED,4,2 ## @DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED
L_.str.1:                               ## @.str.1
	.asciz	"discontinuity: %d instead of %d. %d bytes lost\n"

L_.str.2:                               ## @.str.2
	.asciz	"PUSI=1 but %d bytes lost\n"

	.no_dead_strip	_dvb_dmx_swfilter_section_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_dmx_swfilter_section_packet
_dvb_dmx_swfilter_section_packet:       ; @dvb_dmx_swfilter_section_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_payload
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	w23, #188
	ldr	w8, [x21, #12]
	and	w22, w8, #0xf
	ldr	w8, [x19]
	add	w8, w8, #1
	and	w8, w8, #0xf
	str	w22, [x19]
	ldrb	w9, [x21, #12]
	tbz	w9, #5, LBB0_4
; %bb.2:
	ldr	w9, [x21, #16]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.3:
	ldrb	w9, [x21, #20]
	lsr	w9, w9, #7
	b	LBB0_5
LBB0_4:
	mov	w9, #0
LBB0_5:
	sxtw	x24, w20
	cmp	w8, w22
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_11
; %bb.6:
	cbz	w9, LBB0_9
; %bb.7:
Lloh0:
	adrp	x8, _DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_buf_flags
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	w0, #-1
	b	LBB0_20
LBB0_9:
Lloh5:
	adrp	x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_buf_flags
	ldr	w8, [x19]
	add	w8, w8, #1
	and	w8, w8, #0xf
	add	w9, w20, #4
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	mov	x1, x22
	bl	_dprintk_sect_loss
	str	wzr, [x19, #4]
	mov	x0, x19
	bl	_dvb_dmx_swfilter_section_new
LBB0_11:
	sub	x8, x23, x24
	ldrb	w9, [x21, #4]
	tbnz	w9, #6, LBB0_13
; %bb.12:
	add	x1, x21, w8, sxtw #2
	mov	x0, x19
	mov	x2, x20
	b	LBB0_16
LBB0_13:
	cmp	w20, #2
	b.lt	LBB0_17
; %bb.14:
	ldrsw	x2, [x21, x8, lsl #2]
	cmp	w2, w20
	b.ge	LBB0_18
; %bb.15:
	mov	w8, #189
	sub	x8, x8, x24
	add	x1, x21, x8, lsl #2
	add	x21, x1, x2, lsl #2
	mvn	w8, w2
	add	w20, w20, w8
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dvb_dmx_swfilter_section_copy_dump
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_dvb_dmx_swfilter_section_new
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
LBB0_16:
	bl	_dvb_dmx_swfilter_section_copy_dump
	b	LBB0_19
LBB0_17:
	cmp	w20, #1
	b.ne	LBB0_19
LBB0_18:
Lloh10:
	adrp	x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_buf_flags
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_dprintk_sect_loss
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR,4,2 ; @DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d frame with disconnect indicator\n"

	.comm	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED,4,2 ; @DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED
l_.str.1:                               ; @.str.1
	.asciz	"discontinuity: %d instead of %d. %d bytes lost\n"

l_.str.2:                               ; @.str.2
	.asciz	"PUSI=1 but %d bytes lost\n"

	.no_dead_strip	_dvb_dmx_swfilter_section_packet
.subsections_via_symbols
