	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvrecv                         ## -- Begin function dvrecv
	.p2align	4, 0x90
_dvrecv:                                ## @dvrecv
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NPACKET_R@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$432, %edx                      ## imm = 0x1B0
	callq	_open
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
	movl	$-1, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_RBUFSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_malloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_DSIZE@GOTPCREL(%rip), %rbx
	movq	_MAXBLOCKS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	imull	(%rbx), %edi
	callq	_malloc
	movl	(%r14), %edx
	imull	(%rbx), %edx
	movq	%rax, %rdi
	movl	$255, %esi
	callq	_memset
	shll	$4, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_bzero
	movq	_NCHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	_NPACKET_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	_PSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -152(%rbp)
	movq	$0, -136(%rbp)
	movq	_FW_SSTBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	andb	$63, %al
	movb	%al, -208(%rbp)
	shrb	$6, %cl
	movb	%cl, -207(%rbp)
	movq	_FW_SRSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-208(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movl	$-1, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_DV_SCT_HEADER@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	movq	_DV_SCT_HEADER@GOTPCREL(%rip), %rbx
	callq	_fflush
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movl	(%r12), %edx
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r13d, %r12
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	addq	%r15, %r12
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%rdx, %r12
LBB0_33:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r12, %rdx
	movq	-112(%rbp), %r12                ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%rdx, %r15
	cmpq	%rdx, %r12
	jbe	LBB0_35
LBB0_14:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	4(%r15), %rdx
	movq	_CIP_FMT_DVCR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$1, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	leaq	28(%r15), %rdx
	cmpl	$25, (%r15)
	jb	LBB0_34
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$0, 12(%r15)
	jle	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%rdx, %r12
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=3
	addq	$96, %r12
	movslq	12(%r15), %rax
	leaq	(%rdx,%rax,4), %rax
	cmpq	%rax, %r12
	jae	LBB0_33
LBB0_20:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	(%r12), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	cmpl	$0, 4(%r12)
	jne	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testl	%esi, %esi
	js	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=3
	cmpl	$1, %esi
	je	LBB0_25
	jmp	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=3
	movslq	20(%r15), %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_system_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rsi
	movq	_DV_SCT_HEADER@GOTPCREL(%rip), %rbx
	cmpl	$1, %esi
	jne	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=3
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	_DV_DSF_12@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=3
	orl	%ecx, %edx
	movl	%edx, (%rax)
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=3
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movslq	%esi, %rax
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_frame_rate@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ecx
	imull	$3600, %ecx, %esi               ## imm = 0xE10
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r10d
	imull	$60, %ecx, %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %esi
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r9d
	movslq	%esi, %rcx
	imulq	$-2004318071, %rcx, %rdx        ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	imull	$60, %edx, %edx
	subl	%edx, %ecx
	movslq	%eax, %r8
	imulq	$-2004318071, %r8, %rax         ## imm = 0x88888889
	shrq	$32, %rax
	addl	%r8d, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	sarl	$5, %eax
	addl	%edx, %eax
	imull	$60, %eax, %eax
	subl	%eax, %r8d
	leaq	L_.str.8(%rip), %rsi
	movl	%r10d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_fprintf
	incl	%r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=3
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	setg	%al
	cmpl	%ecx, %r14d
	setg	%cl
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=3
	andb	%cl, %al
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_20 Depth=3
	movslq	%r13d, %r13
	movq	%r13, %rax
	shlq	$4, %rax
	movq	%r12, (%rsi,%rax)
	movq	_DSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%r13d
	movl	%ecx, 8(%rsi,%rax)
	movq	_NPACKET_R@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=3
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_writev
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r13d, %r13d
	jmp	LBB0_32
LBB0_35:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_writev
LBB0_37:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movq	_RBUFSIZE@GOTPCREL(%rip), %r12
	movq	_DV_SCT_HEADER@GOTPCREL(%rip), %rbx
	jle	LBB0_9
## %bb.38:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_9
	jmp	LBB0_39
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_13
LBB0_39:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	cmpl	(%rax), %edi
	je	LBB0_41
## %bb.40:
	callq	_close
LBB0_41:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NPACKET_R,4,2                  ## @NPACKET_R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_RBUFSIZE,4,2                   ## @RBUFSIZE
	.comm	_DSIZE,4,2                      ## @DSIZE
	.comm	_MAXBLOCKS,4,2                  ## @MAXBLOCKS
	.comm	_NCHUNK,4,2                     ## @NCHUNK
	.comm	_PSIZE,4,2                      ## @PSIZE
	.comm	_FW_SSTBUF,4,2                  ## @FW_SSTBUF
L_.str.2:                               ## @.str.2
	.asciz	"ioctl FW_SSTBUF"

	.comm	_FW_SRSTREAM,4,2                ## @FW_SRSTREAM
L_.str.3:                               ## @.str.3
	.asciz	"ioctl"

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"(EAGAIN) - push 'Play'?\n"

L_.str.5:                               ## @.str.5
	.asciz	"read failed"

	.comm	_CIP_FMT_DVCR,8,3               ## @CIP_FMT_DVCR
L_.str.6:                               ## @.str.6
	.asciz	"unknown format 0x%x"

	.comm	_DV_SCT_HEADER,8,3              ## @DV_SCT_HEADER
L_.str.7:                               ## @.str.7
	.asciz	"%s\n"

	.comm	_system_name,8,3                ## @system_name
	.comm	_DV_DSF_12,4,2                  ## @DV_DSF_12
L_.str.8:                               ## @.str.8
	.asciz	"%d:%02d:%02d %d\r"

	.comm	_frame_rate,8,3                 ## @frame_rate
L_.str.9:                               ## @.str.9
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvrecv                         ; -- Begin function dvrecv
	.p2align	2
_dvrecv:                                ; @dvrecv
	.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
	sub	sp, sp, #144
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	mov	x25, x0
	mov	x8, sp
	stur	x8, [x29, #-224]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NPACKET_R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPACKET_R@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	lsl	x8, x20, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcmp
Lloh10:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	mov	w2, #432
	bl	_open
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh21:
	adrp	x8, _EX_NOINPUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EX_NOINPUT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x23, [sp, #-16]!
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	add	sp, sp, #16
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	stur	w0, [x29, #-188]                ; 4-byte Folded Spill
Lloh26:
	adrp	x23, _RBUFSIZE@GOTPAGE
Lloh27:
	ldr	x23, [x23, _RBUFSIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_malloc
	mov	x28, x0
Lloh28:
	adrp	x26, _DSIZE@GOTPAGE
Lloh29:
	ldr	x26, [x26, _DSIZE@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh30:
	adrp	x22, _MAXBLOCKS@GOTPAGE
Lloh31:
	ldr	x22, [x22, _MAXBLOCKS@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w0, w9, w8
	bl	_malloc
	ldr	w8, [x26]
	ldr	w9, [x22]
	mul	w2, w9, w8
	mov	w1, #255
	bl	_memset
	lsl	w1, w20, #4
	mov	x0, x21
	bl	_bzero
Lloh32:
	adrp	x8, _NCHUNK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NCHUNK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	stur	w8, [x29, #-144]
Lloh35:
	adrp	x8, _NPACKET_R@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NPACKET_R@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _PSIZE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PSIZE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-152]
	stp	xzr, xzr, [x29, #-168]
	stur	xzr, [x29, #-176]
Lloh41:
	adrp	x8, _FW_SSTBUF@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FW_SSTBUF@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	sub	x2, x29, #184
	mov	x0, x25
	bl	_ioctl
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	and	w8, w24, #0x3f
	sturb	w8, [x29, #-136]
	ubfx	w8, w24, #6, #2
	sturb	w8, [x29, #-135]
Lloh46:
	adrp	x8, _FW_SRSTREAM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _FW_SRSTREAM@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	sub	x2, x29, #136
	mov	x0, x25
	bl	_ioctl
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	mov	w26, #0
Lloh51:
	adrp	x27, _DV_SCT_HEADER@GOTPAGE
Lloh52:
	ldr	x27, [x27, _DV_SCT_HEADER@GOTPAGEOFF]
	mov	w20, #-1
	stur	w25, [x29, #-204]               ; 4-byte Folded Spill
	stur	x28, [x29, #-216]               ; 8-byte Folded Spill
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
Lloh53:
	adrp	x8, _errno@GOTPAGE
Lloh54:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
Lloh56:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh57:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.10:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh59:
	adrp	x24, _stderr@GOTPAGE
Lloh60:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh61:
	adrp	x1, l_.str.4@PAGE
Lloh62:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x24]
	bl	_fflush
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	w2, [x23]
	mov	x0, x25
	mov	x1, x28
	bl	_read
	mov	x24, x0
	tbnz	w0, #31, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w25, #0
	add	x22, x28, w24, sxtw
	mov	x24, x28
	stur	x22, [x29, #-200]               ; 8-byte Folded Spill
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x23, x28
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x28, x23
	ldur	x22, [x29, #-200]               ; 8-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x24, x28
	cmp	x22, x28
	b.ls	LBB0_34
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_22 Depth 3
	ldur	x2, [x24, #4]
Lloh63:
	adrp	x8, _CIP_FMT_DVCR@GOTPAGE
Lloh64:
	ldr	x8, [x8, _CIP_FMT_DVCR@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	w0, #1
Lloh66:
	adrp	x1, l_.str.6@PAGE
Lloh67:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x28, x24
	ldr	w8, [x28], #28
	cmp	w8, #25
	b.lo	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x24, #12]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x23, x28
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=3
	add	x23, x23, #96
	ldrsw	x8, [x24, #12]
	add	x8, x28, x8, lsl #2
	cmp	x23, x8
	b.hs	LBB0_14
LBB0_22:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x8, [x23]
	ldr	x9, [x27]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=3
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=3
	tbnz	w20, #31, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=3
	cmp	w20, #1
	b.eq	LBB0_27
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=3
	ldrsw	x20, [x24, #20]
Lloh68:
	adrp	x8, _stderr@GOTPAGE
Lloh69:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x8, _system_name@GOTPAGE
Lloh72:
	ldr	x8, [x8, _system_name@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	str	x8, [sp, #-16]!
Lloh74:
	adrp	x1, l_.str.7@PAGE
Lloh75:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	cmp	w20, #1
	b.ne	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_22 Depth=3
	ldr	x8, [x23, #8]
	ldr	w9, [x8]
Lloh76:
	adrp	x10, _DV_DSF_12@GOTPAGE
Lloh77:
	ldr	x10, [x10, _DV_DSF_12@GOTPAGEOFF]
Lloh78:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_22 Depth=3
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_29:                                ;   in Loop: Header=BB0_22 Depth=3
Lloh79:
	adrp	x22, _stderr@GOTPAGE
Lloh80:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh81:
	adrp	x8, _frame_rate@GOTPAGE
Lloh82:
	ldr	x8, [x8, _frame_rate@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, sxtw #2]
	mov	w9, #3600
	mul	w9, w8, w9
	sdiv	w9, w26, w9
	mov	w14, #60
	mul	w10, w8, w14
	sdiv	w10, w26, w10
	mov	w13, #34953
	movk	w13, #34952, lsl #16
	smull	x11, w10, w13
	lsr	x11, x11, #32
	add	w11, w11, w10
	asr	w12, w11, #5
	add	w11, w12, w11, lsr #31
	msub	w10, w11, w14, w10
	sdiv	w11, w26, w8
	smull	x12, w11, w13
	lsr	x12, x12, #32
	add	w12, w12, w11
	asr	w13, w12, #5
	add	w12, w13, w12, lsr #31
	msub	w12, w12, w14, w11
	msub	w8, w11, w8, w26
	sub	sp, sp, #32
	stp	x12, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh84:
	adrp	x1, l_.str.8@PAGE
Lloh85:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	add	sp, sp, #32
	add	w26, w26, #1
	ldr	w0, [x22]
	bl	_fflush
LBB0_30:                                ;   in Loop: Header=BB0_22 Depth=3
	cmp	w19, #0
	ccmp	w26, w19, #4, gt
	cset	w8, gt
	cbz	w26, LBB0_21
; %bb.31:                               ;   in Loop: Header=BB0_22 Depth=3
	tbnz	w8, #0, LBB0_21
; %bb.32:                               ;   in Loop: Header=BB0_22 Depth=3
	add	x8, x21, w25, sxtw #4
	str	x23, [x8]
Lloh86:
	adrp	x9, _DSIZE@GOTPAGE
Lloh87:
	ldr	x9, [x9, _DSIZE@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	add	w25, w25, #1
	str	w9, [x8, #8]
Lloh89:
	adrp	x8, _NPACKET_R@GOTPAGE
Lloh90:
	ldr	x8, [x8, _NPACKET_R@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	cmp	w25, w8
	b.lt	LBB0_21
; %bb.33:                               ;   in Loop: Header=BB0_22 Depth=3
	ldur	w0, [x29, #-188]                ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x25
	bl	_writev
	mov	w25, #0
	b	LBB0_21
LBB0_34:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w25, #1
	b.lt	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w0, [x29, #-188]                ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x25
	bl	_writev
LBB0_36:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w19, #1
	ldur	w25, [x29, #-204]               ; 4-byte Folded Reload
Lloh92:
	adrp	x23, _RBUFSIZE@GOTPAGE
Lloh93:
	ldr	x23, [x23, _RBUFSIZE@GOTPAGEOFF]
	ldur	x28, [x29, #-216]               ; 8-byte Folded Reload
	b.lt	LBB0_11
; %bb.37:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w26, w19
	b.le	LBB0_11
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
Lloh94:
	adrp	x1, l_.str.5@PAGE
Lloh95:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
	b	LBB0_12
LBB0_39:
Lloh96:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh97:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	ldur	w0, [x29, #-188]                ; 4-byte Folded Reload
	cmp	w0, w8
	b.eq	LBB0_41
; %bb.40:
	bl	_close
LBB0_41:
Lloh99:
	adrp	x8, _stderr@GOTPAGE
Lloh100:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
Lloh102:
	adrp	x1, l_.str.9@PAGE
Lloh103:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh104:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh105:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh106:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_43
; %bb.42:
	sub	sp, x29, #80
	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_43:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.cfi_endproc
                                        ; -- End function
	.comm	_NPACKET_R,4,2                  ; @NPACKET_R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_RBUFSIZE,4,2                   ; @RBUFSIZE
	.comm	_DSIZE,4,2                      ; @DSIZE
	.comm	_MAXBLOCKS,4,2                  ; @MAXBLOCKS
	.comm	_NCHUNK,4,2                     ; @NCHUNK
	.comm	_PSIZE,4,2                      ; @PSIZE
	.comm	_FW_SSTBUF,4,2                  ; @FW_SSTBUF
l_.str.2:                               ; @.str.2
	.asciz	"ioctl FW_SSTBUF"

	.comm	_FW_SRSTREAM,4,2                ; @FW_SRSTREAM
l_.str.3:                               ; @.str.3
	.asciz	"ioctl"

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"(EAGAIN) - push 'Play'?\n"

l_.str.5:                               ; @.str.5
	.asciz	"read failed"

	.comm	_CIP_FMT_DVCR,8,3               ; @CIP_FMT_DVCR
l_.str.6:                               ; @.str.6
	.asciz	"unknown format 0x%x"

	.comm	_DV_SCT_HEADER,8,3              ; @DV_SCT_HEADER
l_.str.7:                               ; @.str.7
	.asciz	"%s\n"

	.comm	_system_name,8,3                ; @system_name
	.comm	_DV_DSF_12,4,2                  ; @DV_DSF_12
l_.str.8:                               ; @.str.8
	.asciz	"%d:%02d:%02d %d\r"

	.comm	_frame_rate,8,3                 ; @frame_rate
l_.str.9:                               ; @.str.9
	.asciz	"\n"

.subsections_via_symbols
