	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmx_swfilter_payload
_dvb_dmx_swfilter_payload:              ## @dvb_dmx_swfilter_payload
	.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, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_payload
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %r14d
	movl	$188, %r13d
	movl	12(%r15), %r12d
	andl	$15, %r12d
	movl	(%rbx), %eax
	incl	%eax
	andl	$15, %eax
	movl	%r12d, (%rbx)
	cmpl	%r12d, %eax
	je	LBB0_3
## %bb.2:
	movq	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_buf_flags
	movl	(%rbx), %edx
	incl	%edx
	andl	$15, %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_dprintk_sect_loss
LBB0_3:
	subl	%r14d, %r13d
	movl	$65530, %eax                    ## imm = 0xFFFA
	testb	$64, 4(%r15)
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %eax
LBB0_5:
	addl	%r14d, %eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rax
	movslq	%r13d, %rcx
	leaq	(%r15,%rcx,4), %rdi
	leaq	12(%rbx), %r8
	addq	$8, %rbx
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	movl	$-1, %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_DETECTED,4,2 ## @DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missed packet: %d instead of %d!\n"

	.no_dead_strip	_dvb_dmx_swfilter_payload
.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_payload
_dvb_dmx_swfilter_payload:              ; @dvb_dmx_swfilter_payload
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_5
; %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]
	cmp	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_buf_flags
	ldr	w8, [x19]
	add	w8, w8, #1
	and	w2, w8, #0xf
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_dprintk_sect_loss
LBB0_3:
	sub	w8, w23, w20
	ldrb	w9, [x21, #4]
	tbnz	w9, #6, LBB0_6
; %bb.4:
	ldr	w9, [x19, #4]
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w9, #65530
LBB0_7:
	add	w9, w9, w20
	str	w9, [x19, #4]
	ldr	x6, [x19, #16]
	add	x0, x21, w8, sxtw #2
	add	x4, x19, #12
	add	x5, x19, #8
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED,4,2 ; @DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missed packet: %d instead of %d!\n"

	.no_dead_strip	_dvb_dmx_swfilter_payload
.subsections_via_symbols
