	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_net_ule_ts_pusi
_dvb_net_ule_ts_pusi:                   ## @dvb_net_ule_ts_pusi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TS_PUSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_4
## %bb.1:
	movl	12(%rax), %ecx
	andl	$15, %ecx
	movq	24(%rbx), %rsi
	movl	%ecx, (%rsi)
	movslq	16(%rax), %rdx
	movl	8(%rbx), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_3
## %bb.2:
	movl	4(%rsi), %esi
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_err
	movq	_TS_SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	incq	32(%rbx)
	movq	_TS_SZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	24(%rbx), %rax
	incl	4(%rax)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	(%rax,%rdx,4), %rax
	addq	$20, %rax
	movq	%rax, 16(%rbx)
	notl	%edx
	addl	%edx, %ecx
	movl	%ecx, 8(%rbx)
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_PUSI,4,2                    ## @TS_PUSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu: Invalid ULE packet (pointer field %d)\n"

	.comm	_TS_SZ,4,2                      ## @TS_SZ
	.no_dead_strip	_dvb_net_ule_ts_pusi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_net_ule_ts_pusi
_dvb_net_ule_ts_pusi:                   ; @dvb_net_ule_ts_pusi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x10, _TS_PUSI@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TS_PUSI@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x8, #12]
	and	w10, w9, #0xf
	ldr	x9, [x19, #24]
	str	w10, [x9]
	ldrsw	x2, [x8, #16]
	ldr	w10, [x19, #8]
	cmp	w2, w10
	b.le	LBB0_5
; %bb.2:
	ldr	w1, [x9, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_err
Lloh5:
	adrp	x8, _TS_SZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TS_SZ@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #2
	str	x8, [x19]
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	b	LBB0_4
LBB0_3:
	ldp	x10, x9, [x19, #24]
	add	x9, x9, #1
	str	x9, [x19, #32]
Lloh8:
	adrp	x9, _TS_SZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TS_SZ@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x19]
	ldr	w8, [x10, #4]
	add	w8, w8, #1
	str	w8, [x10, #4]
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	add	x8, x8, x2, lsl #2
	add	x8, x8, #20
	str	x8, [x19, #16]
	mvn	w8, w2
	add	w8, w10, w8
	str	w8, [x19, #8]
	str	xzr, [x19, #32]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_PUSI,4,2                    ; @TS_PUSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu: Invalid ULE packet (pointer field %d)\n"

	.comm	_TS_SZ,4,2                      ; @TS_SZ
	.no_dead_strip	_dvb_net_ule_ts_pusi
.subsections_via_symbols
