	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_pes_play                ## -- Begin function av7110_pes_play
	.p2align	4, 0x90
_av7110_pes_play:                       ## @av7110_pes_play
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	$-1, %r12d
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	%r15, %rdi
	callq	_dvb_ringbuffer_avail
	cmpl	$6, %eax
	jl	LBB0_12
## %bb.2:
	movl	%eax, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movl	%eax, %r14d
	shll	$24, %r14d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movl	%eax, %r12d
	shll	$16, %r12d
	orl	%r14d, %r12d
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_DVB_RINGBUFFER_PEEK
	orl	%ebx, %eax
	orl	%r12d, %eax
	movl	%eax, %ecx
	andl	$-16, %ecx
	cmpl	$480, %ecx                      ## imm = 0x1E0
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$445, %eax                      ## imm = 0x1BD
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$-32, %eax
	cmpl	$448, %eax                      ## imm = 0x1C0
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_DVB_RINGBUFFER_SKIP
	movq	%r15, %rdi
	callq	_dvb_ringbuffer_avail
	movl	%eax, %r13d
	cmpl	$6, %eax
	jge	LBB0_3
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movl	%eax, %r14d
	shll	$8, %r14d
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movl	%eax, %ebx
	orl	%r14d, %ebx
	addl	$6, %ebx
	cmpl	%ebx, %r13d
	jl	LBB0_11
## %bb.9:
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$-1, %r12d
	jg	LBB0_12
## %bb.10:
	movslq	%ebx, %rdx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dvb_ringbuffer_read
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movl	%ebx, %r12d
	jmp	LBB0_12
LBB0_11:
	movl	$-1, %r12d
LBB0_12:
	movq	%r15, %rdi
	callq	_wake_up
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resync\n"

L_.str.1:                               ## @.str.1
	.asciz	"pread=0x%08lx, pwrite=0x%08lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_pes_play                ; -- Begin function av7110_pes_play
	.p2align	2
_av7110_pes_play:                       ; @av7110_pes_play
	.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	x19, x1
	cbz	w2, LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x20, x0
	mov	x0, x19
	bl	_dvb_ringbuffer_avail
	cmp	w0, #6
	b.lt	LBB0_7
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_DVB_RINGBUFFER_PEEK
	mov	x24, x0
	mov	x0, x19
	mov	w1, #1
	bl	_DVB_RINGBUFFER_PEEK
	lsl	w8, w0, #16
	orr	w24, w8, w24, lsl #24
	mov	x0, x19
	mov	w1, #2
	bl	_DVB_RINGBUFFER_PEEK
	orr	w24, w24, w0, lsl #8
	mov	x0, x19
	mov	w1, #3
	bl	_DVB_RINGBUFFER_PEEK
	orr	w8, w24, w0
	and	w9, w8, #0xfffffff0
	cmp	w9, #480
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #445
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w8, #0xffffffe0
	cmp	w8, #448
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_printk
	mov	x0, x19
	mov	w1, #1
	bl	_DVB_RINGBUFFER_SKIP
	mov	x0, x19
	bl	_dvb_ringbuffer_avail
	mov	x22, x0
	cmp	w0, #6
	b.ge	LBB0_3
LBB0_7:
	mov	w23, #-1
LBB0_8:
	mov	x0, x19
	bl	_wake_up
	mov	x0, x23
	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_9:
	mov	x0, x19
	mov	w1, #4
	bl	_DVB_RINGBUFFER_PEEK
	mov	x23, x0
	mov	x0, x19
	mov	w1, #5
	bl	_DVB_RINGBUFFER_PEEK
	orr	w8, w0, w23, lsl #8
	add	w24, w8, #6
	mov	w23, #-1
	cmp	w22, w24
	b.lt	LBB0_8
; %bb.10:
	cmp	w24, w21
	b.gt	LBB0_8
; %bb.11:
	sxtw	x2, w24
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ringbuffer_read
	ldp	x3, x2, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	x23, x24
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resync\n"

l_.str.1:                               ; @.str.1
	.asciz	"pread=0x%08lx, pwrite=0x%08lx\n"

.subsections_via_symbols
