	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_usb_process_frame
_flexcop_usb_process_frame:             ## @flexcop_usb_process_frame
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_ts
	movl	(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_2
## %bb.1:
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addl	(%r14), %r15d
	movl	%r15d, (%r14)
	movq	8(%r14), %rbx
LBB0_2:
	cmpl	$190, %r15d
	jl	LBB0_14
## %bb.3:
	addq	$8, %rbx
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_deb_ts
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$-190, %r15d
	addq	$760, %rbx                      ## imm = 0x2F8
	cmpl	$189, %r15d
	jbe	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, -8(%rbx)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rbx), %eax
	andl	$3, %eax
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$71, (%rbx)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_flexcop_pass_dmx_packets
	jmp	LBB0_12
LBB0_13:
	addq	$-8, %rbx
LBB0_14:
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.15:
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_deb_ts
LBB0_16:
	movl	%r15d, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tmp_buffer_length=%d, buffer_length=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"not ts packet %*ph\n"

L_.str.2:                               ## @.str.2
	.asciz	"wrong packet type\n"

L_.str.3:                               ## @.str.3
	.asciz	"wrong header\n"

	.no_dead_strip	_flexcop_usb_process_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_usb_process_frame
_flexcop_usb_process_frame:             ; @flexcop_usb_process_frame
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	stp	x8, x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_ts
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x19]
	add	w20, w8, w20
	str	w20, [x19]
	ldr	x21, [x19, #8]
LBB0_2:
	cmp	w20, #190
	b.lt	LBB0_11
; %bb.3:
	add	x21, x21, #8
	mov	w23, #4
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	stp	x23, x21, [sp]
	mov	x0, x22
	bl	_deb_ts
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, #190
	add	x21, x21, #760
	cmp	w20, #189
	b.ls	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x21, #-8]
	cmp	w8, #255
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w8, [x21, #-4]
	and	w8, w8, #0x3
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w8, #71
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x21
	mov	w2, #1
	bl	_flexcop_pass_dmx_packets
	b	LBB0_5
LBB0_10:
	sub	x21, x21, #8
LBB0_11:
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	b	LBB0_16
LBB0_13:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_deb_ts
	mov	w20, #0
LBB0_16:
	str	w20, [x19]
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tmp_buffer_length=%d, buffer_length=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"not ts packet %*ph\n"

l_.str.2:                               ; @.str.2
	.asciz	"wrong packet type\n"

l_.str.3:                               ; @.str.3
	.asciz	"wrong header\n"

	.no_dead_strip	_flexcop_usb_process_frame
.subsections_via_symbols
