	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_play_kernel
_dvb_play_kernel:                       ## @dvb_play_kernel
	.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
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r12, %rdx
	callq	_dprintk
	movq	16(%r12), %rax
	movslq	%ebx, %r14
	cmpl	$0, (%rax,%r14,4)
	je	LBB0_1
## %bb.3:
	movq	_FREE_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_6
## %bb.8:
	shlq	$2, %r14
	testl	%eax, %eax
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_10:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.12:
	movl	8(%r12), %edi
	xorl	%esi, %esi
	callq	_wait_event_interruptible
	testq	%rax, %rax
	jne	LBB0_11
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_IPACKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	%rbx, %rbx
	cmpq	%rbx, %r15
	cmovbq	%r15, %rbx
	movq	(%r12), %rdx
	addq	%r14, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_av7110_ipack_instant_repack
	subq	%rbx, %r15
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r13,%rbx,4), %r13
	movq	_FREE_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%r15, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, \n"

	.comm	_ENOBUFS,8,3                    ## @ENOBUFS
	.comm	_FREE_COND,4,2                  ## @FREE_COND
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_IPACKS,4,2                     ## @IPACKS
	.no_dead_strip	_dvb_play_kernel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_play_kernel
_dvb_play_kernel:                       ; @dvb_play_kernel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x22
	bl	_dprintk
	ldr	x8, [x22, #16]
	ldr	w8, [x8, w23, sxtw #2]
	cbz	w8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x24, _FREE_COND@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FREE_COND@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w20, LBB0_7
; %bb.2:
	cbnz	w8, LBB0_7
; %bb.3:
Lloh4:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	x19, LBB0_6
; %bb.8:
	sxtw	x25, w23
Lloh8:
	adrp	x27, _IPACKS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _IPACKS@GOTPAGEOFF]
	mov	x26, x19
	cbnz	w8, LBB0_11
LBB0_9:
	cbnz	w20, LBB0_13
; %bb.10:
	ldr	w0, [x22, #8]
	mov	w1, #0
	bl	_wait_event_interruptible
	cbnz	x0, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x27]
	lsl	x8, x8, #1
	cmp	x26, x8
	csel	x23, x26, x8, lo
	ldr	x8, [x22]
	add	x2, x8, x25, lsl #2
	mov	x0, x21
	mov	x1, x23
	bl	_av7110_ipack_instant_repack
	subs	x26, x26, x23
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, x23, lsl #2
	ldr	w8, [x24]
	cbnz	w8, LBB0_11
	b	LBB0_9
LBB0_13:
	sub	x19, x19, x26
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, \n"

	.comm	_ENOBUFS,8,3                    ; @ENOBUFS
	.comm	_FREE_COND,4,2                  ; @FREE_COND
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_IPACKS,4,2                     ; @IPACKS
	.no_dead_strip	_dvb_play_kernel
.subsections_via_symbols
