	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_ringbuffer_pkt_dispose     ## -- Begin function dvb_ringbuffer_pkt_dispose
	.p2align	4, 0x90
_dvb_ringbuffer_pkt_dispose:            ## @dvb_ringbuffer_pkt_dispose
	.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
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_PKT_DISPOSED@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	addq	$2, %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rcx, (%rsi,%rdx,8)
	movq	%r14, %rdi
	callq	_dvb_ringbuffer_avail
	movq	_DVB_RINGBUFFER_PKTHDRSIZE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_DVB_RINGBUFFER_PEEK
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_DVB_RINGBUFFER_PEEK
	movq	%rax, %rbx
	shlq	$8, %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_DVB_RINGBUFFER_PEEK
	orq	%rax, %rbx
	addq	(%r12), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_DVB_RINGBUFFER_SKIP
	movq	%r14, %rdi
	callq	_dvb_ringbuffer_avail
	cmpq	(%r12), %rax
	jg	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_DISPOSED,8,3               ## @PKT_DISPOSED
	.comm	_DVB_RINGBUFFER_PKTHDRSIZE,8,3  ## @DVB_RINGBUFFER_PKTHDRSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_ringbuffer_pkt_dispose     ; -- Begin function dvb_ringbuffer_pkt_dispose
	.p2align	2
_dvb_ringbuffer_pkt_dispose:            ; @dvb_ringbuffer_pkt_dispose
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _PKT_DISPOSED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PKT_DISPOSED@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x9, x1, #2
	ldp	x10, x11, [x0]
	udiv	x12, x9, x11
	msub	x9, x12, x11, x9
	str	x8, [x10, x9, lsl #3]
	bl	_dvb_ringbuffer_avail
Lloh2:
	adrp	x22, _DVB_RINGBUFFER_PKTHDRSIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DVB_RINGBUFFER_PKTHDRSIZE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #2
	bl	_DVB_RINGBUFFER_PEEK
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_DVB_RINGBUFFER_PEEK
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	bl	_DVB_RINGBUFFER_PEEK
	orr	x8, x0, x20, lsl #8
	ldr	x9, [x22]
	add	x1, x8, x9
	mov	x0, x19
	bl	_DVB_RINGBUFFER_SKIP
	mov	x0, x19
	bl	_dvb_ringbuffer_avail
	b	LBB0_1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_DISPOSED,8,3               ; @PKT_DISPOSED
	.comm	_DVB_RINGBUFFER_PKTHDRSIZE,8,3  ; @DVB_RINGBUFFER_PKTHDRSIZE
.subsections_via_symbols
