	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_video_add_event            ## -- Begin function dvb_video_add_event
	.p2align	4, 0x90
_dvb_video_add_event:                   ## @dvb_video_add_event
	.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, %r15
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movslq	(%rbx), %rdi
	leal	1(%rdi), %eax
	movq	_MAX_VIDEO_EVENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %r12d
	cmpl	4(%rbx), %edx
	jne	LBB0_2
## %bb.1:
	movl	$1, 8(%rbx)
	movl	%r12d, %eax
	incl	%eax
	cltd
	idivl	%ecx
	movl	%edx, 4(%rbx)
LBB0_2:
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	%r12d, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	addq	$12, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VIDEO_EVENT,4,2            ## @MAX_VIDEO_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_video_add_event            ; -- Begin function dvb_video_add_event
	.p2align	2
_dvb_video_add_event:                   ; @dvb_video_add_event
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_bh
	ldp	w8, w10, [x19]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w11, w8, #1
Lloh0:
	adrp	x9, _MAX_VIDEO_EVENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_VIDEO_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w12, w11, w9
	msub	w22, w12, w9, w11
	cmp	w22, w10
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #1
	add	w11, w22, #1
	sdiv	w12, w11, w9
	msub	w9, w12, w9, w11
	stp	w9, w10, [x19, #4]
LBB0_2:
	ldr	x9, [x19, #24]
	add	x0, x9, x8, lsl #2
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	str	w22, [x19]
	mov	x0, x20
	bl	_spin_unlock_bh
	add	x0, x19, #12
	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
	b	_wake_up_interruptible
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VIDEO_EVENT,4,2            ; @MAX_VIDEO_EVENT
.subsections_via_symbols
