	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zoran_reap_stat_com
_zoran_reap_stat_com:                   ## @zoran_reap_stat_com
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_BUZ_MODE_MOTION_DECOMPRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	incl	8(%r14)
LBB0_2:
	movq	16(%r14), %rax
	cmpq	24(%r14), %rax
	jae	LBB0_11
## %bb.3:
	movl	52(%r14), %edx
	movq	_BUZ_STATE_DONE@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 4(%r12,%r13)
	movl	8(%r14), %eax
	movl	52(%r14), %edx
	cmpl	$2, %edx
	sete	%cl
	shrl	%cl, %eax
	movl	%eax, 8(%r12,%r13)
	movl	(%r15), %eax
	movl	%eax, (%r12,%r13)
	movq	16(%r14), %rax
	incq	%rax
	movq	%rax, 16(%r14)
	cmpq	24(%r14), %rax
	jae	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %ecx
	subl	%ecx, %eax
	cmpl	$1, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BUZ_MASK_STAT_COM@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	andl	$1, %eax
	addl	%eax, %eax
	incl	%eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	64(%r14), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	testb	$1, %bl
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BUZ_MASK_FRAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	16(%r14), %rax
	movq	40(%r14), %rcx
	movq	56(%r14), %r12
	movslq	(%rcx,%rax,4), %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %rdi
	addq	$12, %rdi
	callq	_do_gettimeofday
	movq	(%r14), %rcx
	xorl	%eax, %eax
	movq	_BUZ_MODE_MOTION_COMPRESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	shrl	%eax
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	shrl	$24, %ebx
	addl	48(%r14), %ebx
	movl	8(%r14), %ecx
	subl	%ecx, %ebx
	movzbl	%bl, %edx
	addl	%ecx, %edx
	movl	%edx, 8(%r14)
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUZ_MODE_MOTION_DECOMPRESS,8,3 ## @BUZ_MODE_MOTION_DECOMPRESS
	.comm	_BUZ_MASK_STAT_COM,4,2          ## @BUZ_MASK_STAT_COM
	.comm	_BUZ_MASK_FRAME,8,3             ## @BUZ_MASK_FRAME
	.comm	_BUZ_MODE_MOTION_COMPRESS,8,3   ## @BUZ_MODE_MOTION_COMPRESS
	.comm	_BUZ_STATE_DONE,4,2             ## @BUZ_STATE_DONE
	.no_dead_strip	_zoran_reap_stat_com
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zoran_reap_stat_com
_zoran_reap_stat_com:                   ; @zoran_reap_stat_com
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BUZ_MODE_MOTION_DECOMPRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUZ_MODE_MOTION_DECOMPRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_2:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.3:
	ldr	w9, [x19, #52]
Lloh3:
	adrp	x21, _BUZ_MASK_STAT_COM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BUZ_MASK_STAT_COM@GOTPAGEOFF]
Lloh5:
	adrp	x22, _BUZ_MASK_FRAME@GOTPAGE
Lloh6:
	ldr	x22, [x22, _BUZ_MASK_FRAME@GOTPAGEOFF]
Lloh7:
	adrp	x23, _BUZ_MODE_MOTION_COMPRESS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _BUZ_MODE_MOTION_COMPRESS@GOTPAGEOFF]
Lloh9:
	adrp	x24, _BUZ_STATE_DONE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BUZ_STATE_DONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ubfx	w8, w20, #1, #22
	ldr	w9, [x19, #48]
	add	w9, w9, w20, lsr #24
	ldr	w10, [x19, #8]
	sub	w9, w9, w10
	add	w9, w10, w9, uxtb
	str	w9, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x25, #4]
	ldr	w9, [x19, #52]
	cmp	w9, #2
	cset	w8, eq
	ldr	w10, [x19, #8]
	lsr	w8, w10, w8
	str	w8, [x25, #8]
	ldr	w8, [x24]
	str	w8, [x25]
	ldp	x8, x10, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	cmp	x8, x10
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19, #32]
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21]
	sub	w8, w8, w10
	and	w8, w8, w9
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w8, w10
	mov	w8, #1
	bfi	w8, w9, #1, #1
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #64]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_le32_to_cpu
	tbz	w0, #0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #16]
	ldr	x10, [x22]
	and	x9, x10, x9
	ldrsw	x8, [x8, x9, lsl #2]
	ldr	x9, [x19, #56]
	add	x25, x9, x8, lsl #4
	add	x0, x25, #12
	bl	_do_gettimeofday
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
	b	LBB0_5
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BUZ_MODE_MOTION_DECOMPRESS,8,3 ; @BUZ_MODE_MOTION_DECOMPRESS
	.comm	_BUZ_MASK_STAT_COM,4,2          ; @BUZ_MASK_STAT_COM
	.comm	_BUZ_MASK_FRAME,8,3             ; @BUZ_MASK_FRAME
	.comm	_BUZ_MODE_MOTION_COMPRESS,8,3   ; @BUZ_MODE_MOTION_COMPRESS
	.comm	_BUZ_STATE_DONE,4,2             ; @BUZ_STATE_DONE
	.no_dead_strip	_zoran_reap_stat_com
.subsections_via_symbols
