	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsdvb_update_isdbt_stats_ex
_smsdvb_update_isdbt_stats_ex:          ## @smsdvb_update_isdbt_stats_ex
	.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, %r15
	movq	16(%rdi), %rax
	testq	%rax, %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_2:
	movl	60(%rsi), %eax
	movl	%eax, 140(%r15)
	movl	24(%rsi), %edi
	xorl	%esi, %esi
	callq	_sms_to_status
	movl	%eax, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	56(%rax), %edi
	callq	_sms_to_bw
	movl	%eax, 136(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	52(%rax), %edi
	callq	_sms_to_mode
	movl	%eax, 132(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %edi
	callq	_sms_to_guard_interval
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 128(%r15)
	xorl	%eax, %eax
	cmpq	$0, 40(%rsi)
	setne	%al
	movl	%eax, 24(%r15)
	movl	(%rsi), %eax
	movl	$0, 28(%r15)
	xorl	%ecx, %ecx
	cmpq	$0, 32(%rsi)
	setne	%cl
	movl	%ecx, 32(%r15)
	imull	$1000, 4(%rsi), %ecx            ## imm = 0x3E8
	movq	120(%r15), %rdx
	movl	%ecx, (%rdx)
	imull	$1000, 8(%rsi), %ecx            ## imm = 0x3E8
	movq	112(%r15), %rdx
	movl	%ecx, (%rdx)
	cmpl	$0, 24(%rsi)
	je	LBB0_8
## %bb.3:
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovll	%ecx, %eax
	cmpl	$3, %eax
	movl	$3, %r12d
	cmovbl	%eax, %r12d
	movq	96(%r15), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movq	$0, (%rax)
	movq	80(%r15), %rcx
	movq	$0, (%rcx)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax)
	movq	%rdx, 8(%rcx)
	movq	64(%r15), %rax
	movq	$0, (%rax)
	movq	48(%r15), %rcx
	movq	$0, (%rcx)
	movq	%rdx, 8(%rax)
	movq	%rdx, 8(%rcx)
	leal	1(%r12), %eax
	movl	%eax, 56(%r15)
	movl	%eax, 40(%r15)
	movl	%eax, 88(%r15)
	movl	%eax, 72(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%edx, 28(%r15)
	movq	104(%r15), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movl	40(%r14,%r13), %edi
	callq	_sms_to_modulation
	movq	104(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	movq	96(%r15), %rcx
	incq	%rbx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	movq	(%r8), %rax
	movq	80(%r15), %rsi
	movq	%rax, 8(%rsi,%rdx)
	movq	32(%r14,%r13), %rax
	addq	%rax, (%rcx,%rdx)
	movq	24(%r14,%r13), %rdi
	addq	%rdi, (%rsi,%rdx)
	addq	%rax, (%rcx)
	addq	%rdi, (%rsi)
	movq	(%r8), %rax
	movq	64(%r15), %rcx
	movq	%rax, 8(%rcx,%rdx)
	movq	(%r8), %rax
	movq	48(%r15), %rsi
	movq	%rax, 8(%rsi,%rdx)
	movq	16(%r14,%r13), %rax
	addq	%rax, (%rcx,%rdx)
	movq	8(%r14,%r13), %rdi
	addq	%rdi, (%rsi,%rdx)
	addq	%rax, (%rcx)
	addq	%rdi, (%rsi)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%r12, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rsi), %r14
	leaq	(%rbx,%rbx,2), %r13
	shlq	$4, %r13
	movl	(%r14,%r13), %eax
	leal	-1(%rax), %ecx
	cmpl	$12, %ecx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_isdbt_stats_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsdvb_update_isdbt_stats_ex
_smsdvb_update_isdbt_stats_ex:          ; @smsdvb_update_isdbt_stats_ex
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	mov	x1, x19
	blr	x8
LBB0_2:
	ldr	w8, [x19, #60]
	str	w8, [x20, #140]
	ldr	w0, [x19, #24]
	mov	w1, #0
	bl	_sms_to_status
	str	w0, [x20, #8]
	ldr	w0, [x19, #56]
	bl	_sms_to_bw
	str	w0, [x20, #136]
	ldr	w0, [x19, #52]
	bl	_sms_to_mode
	str	w0, [x20, #132]
	ldr	w0, [x19, #48]
	bl	_sms_to_guard_interval
	str	w0, [x20, #128]
	ldp	w8, w9, [x19]
	mov	w10, #1000
	mul	w9, w9, w10
	ldp	x12, x11, [x20, #112]
	str	w9, [x11]
	ldp	x11, x9, [x19, #32]
	cmp	x9, #0
	cset	w9, ne
	stp	w9, wzr, [x20, #24]
	cmp	x11, #0
	cset	w9, ne
	str	w9, [x20, #32]
	ldr	w9, [x19, #8]
	mul	w9, w9, w10
	str	w9, [x12]
	ldr	w9, [x19, #24]
	cbz	w9, LBB0_7
; %bb.3:
	mov	x21, #0
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	mov	w9, #3
	cmp	w8, #3
	csel	w22, w8, w9, lo
	ldr	x8, [x20, #96]
	ldr	x9, [x8]
	str	x9, [x20]
Lloh0:
	adrp	x23, _FE_SCALE_COUNTER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FE_SCALE_COUNTER@GOTPAGEOFF]
	ldr	x9, [x23]
	stp	xzr, x9, [x8]
	ldr	x8, [x20, #80]
	stp	xzr, x9, [x8]
	ldr	x8, [x20, #64]
	stp	xzr, x9, [x8]
	ldr	x8, [x20, #48]
	stp	xzr, x9, [x8]
	add	w8, w22, #1
	str	w8, [x20, #56]
	str	w8, [x20, #40]
	str	w8, [x20, #88]
	str	w8, [x20, #72]
	mov	w24, #48
	mov	w25, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w10, w25, w21
	ldr	w11, [x20, #28]
	orr	w10, w11, w10
	str	w10, [x20, #28]
	ldr	x10, [x20, #104]
	lsl	x26, x21, #3
	str	w9, [x10, x26]
	madd	x27, x21, x24, x8
	ldr	w0, [x27, #40]
	bl	_sms_to_modulation
	ldp	x9, x8, [x20, #96]
	add	x8, x8, x26
	str	w0, [x8, #4]
	ldr	x8, [x23]
	add	x21, x21, #1
	lsl	x10, x21, #4
	add	x11, x9, x10
	ldr	x12, [x11]
	ldp	x14, x13, [x27, #24]
	add	x12, x12, x13
	str	x8, [x11, #8]
	ldr	x8, [x23]
	ldr	x15, [x20, #80]
	str	x12, [x11]
	add	x11, x15, x10
	ldr	x12, [x11]
	add	x12, x12, x14
	stp	x12, x8, [x11]
	ldr	x8, [x9]
	add	x8, x8, x13
	str	x8, [x9]
	ldr	x8, [x15]
	add	x8, x8, x14
	str	x8, [x15]
	ldr	x8, [x23]
	ldr	x9, [x20, #64]
	add	x11, x9, x10
	ldr	x12, [x11]
	ldp	x14, x13, [x27, #8]
	add	x12, x12, x13
	str	x8, [x11, #8]
	ldr	x8, [x23]
	ldr	x15, [x20, #48]
	add	x10, x15, x10
	str	x12, [x11]
	ldr	x11, [x10]
	add	x11, x11, x14
	stp	x11, x8, [x10]
	ldr	x8, [x9]
	add	x8, x8, x13
	str	x8, [x9]
	ldr	x8, [x15]
	add	x8, x8, x14
	str	x8, [x15]
	cmp	x21, x22
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	mul	x9, x21, x24
	ldr	w9, [x8, x9]
	sub	w10, w9, #1
	cmp	w10, #12
	b.lo	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, x22
	b.ne	LBB0_5
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_isdbt_stats_ex
.subsections_via_symbols
