	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsdvb_update_isdbt_stats
_smsdvb_update_isdbt_stats:             ## @smsdvb_update_isdbt_stats
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	movq	%r14, %rsi
	callq	*%rax
LBB0_2:
	movl	32(%r14), %edi
	movl	80(%r14), %esi
	callq	_sms_to_status
	movl	%eax, 8(%r15)
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movl	76(%r14), %eax
	movl	%eax, 108(%r15)
	movl	72(%r14), %edi
	callq	_sms_to_bw
	movl	%eax, 104(%r15)
	movq	64(%r14), %rdi
	callq	_sms_to_mode
	movl	%eax, 100(%r15)
	movl	56(%r14), %edi
	callq	_sms_to_guard_interval
	movl	%eax, 96(%r15)
	xorl	%eax, %eax
	cmpq	$0, 48(%r14)
	setne	%al
	movl	%eax, 24(%r15)
	movl	8(%r14), %eax
	movl	$0, 28(%r15)
	xorl	%ecx, %ecx
	cmpq	$0, 40(%r14)
	setne	%cl
	movl	%ecx, 32(%r15)
	imull	$1000, 12(%r14), %ecx           ## imm = 0x3E8
	movq	88(%r15), %rdx
	movl	%ecx, (%rdx)
	imull	$1000, 16(%r14), %ecx           ## imm = 0x3E8
	movq	80(%r15), %rdx
	movl	%ecx, (%rdx)
	cmpl	$0, 32(%r14)
	je	LBB0_10
## %bb.5:
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovll	%ecx, %eax
	cmpl	$3, %eax
	movl	$3, %esi
	cmovbl	%eax, %esi
	movq	64(%r15), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movq	$0, (%rax)
	movq	56(%r15), %rcx
	movq	$0, (%rcx)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax)
	movq	%rdx, 8(%rcx)
	movq	48(%r15), %rax
	movq	$0, (%rax)
	movq	40(%r15), %rcx
	movq	$0, (%rcx)
	movq	%rdx, 8(%rax)
	movq	%rdx, 8(%rcx)
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%edx, 28(%r15)
	movq	72(%r15), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movl	40(%r12,%r13), %edi
	movq	%rsi, %r14
	callq	_sms_to_modulation
	movq	72(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	movq	64(%r15), %rcx
	incq	%rbx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	movq	(%r8), %rax
	movq	56(%r15), %rsi
	movq	%rax, 8(%rsi,%rdx)
	movq	32(%r12,%r13), %rax
	addq	%rax, (%rcx,%rdx)
	movq	24(%r12,%r13), %rdi
	addq	%rdi, (%rsi,%rdx)
	addq	%rax, (%rcx)
	addq	%rdi, (%rsi)
	movq	(%r8), %rax
	movq	48(%r15), %rcx
	movq	%rax, 8(%rcx,%rdx)
	movq	(%r8), %rax
	movq	40(%r15), %rsi
	movq	%rax, 8(%rsi,%rdx)
	movq	16(%r12,%r13), %rax
	addq	%rax, (%rcx,%rdx)
	movq	8(%r12,%r13), %rdi
	addq	%rdi, (%rsi,%rdx)
	addq	%rax, (%rcx)
	addq	%rdi, (%rsi)
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	%rsi, %rbx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r12
	leaq	(%rbx,%rbx,2), %r13
	shlq	$4, %r13
	movl	(%r12,%r13), %eax
	leal	-1(%rax), %ecx
	cmpl	$12, %ecx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rsi, %rbx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_3:
	imull	$1000, 64(%r14), %eax           ## imm = 0x3E8
	movq	80(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	88(%r15), %rcx
	movl	%eax, 4(%rcx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_isdbt_stats
.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
_smsdvb_update_isdbt_stats:             ; @smsdvb_update_isdbt_stats
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	mov	x1, x20
	blr	x8
LBB0_2:
	ldr	w0, [x20, #32]
	ldr	w1, [x20, #80]
	bl	_sms_to_status
	str	w0, [x19, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	ldp	w0, w8, [x20, #72]
	str	w8, [x19, #108]
	bl	_sms_to_bw
	str	w0, [x19, #104]
	ldr	x0, [x20, #64]
	bl	_sms_to_mode
	str	w0, [x19, #100]
	ldr	w0, [x20, #56]
	bl	_sms_to_guard_interval
	str	w0, [x19, #96]
	ldp	w8, w9, [x20, #8]
	mov	w10, #1000
	mul	w9, w9, w10
	ldp	x12, x11, [x19, #80]
	str	w9, [x11]
	ldp	x11, x9, [x20, #40]
	cmp	x9, #0
	cset	w9, ne
	stp	w9, wzr, [x19, #24]
	cmp	x11, #0
	cset	w9, ne
	str	w9, [x19, #32]
	ldr	w9, [x20, #16]
	mul	w9, w9, w10
	str	w9, [x12]
	ldr	w9, [x20, #32]
	cbz	w9, LBB0_9
; %bb.4:
	mov	x21, #0
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	mov	w9, #3
	cmp	w8, #3
	csel	w22, w8, w9, lo
	ldp	x9, x8, [x19, #56]
	ldr	x10, [x8]
	str	x10, [x19]
Lloh0:
	adrp	x23, _FE_SCALE_COUNTER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FE_SCALE_COUNTER@GOTPAGEOFF]
	ldr	x10, [x23]
	stp	xzr, x10, [x8]
	stp	xzr, x10, [x9]
	ldp	x9, x8, [x19, #40]
	stp	xzr, x10, [x8]
	stp	xzr, x10, [x9]
	mov	w24, #48
	mov	w25, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	w10, w25, w21
	ldr	w11, [x19, #28]
	orr	w10, w11, w10
	str	w10, [x19, #28]
	ldr	x10, [x19, #72]
	lsl	x26, x21, #3
	str	w9, [x10, x26]
	madd	x27, x21, x24, x8
	ldr	w0, [x27, #40]
	bl	_sms_to_modulation
	ldr	x8, [x19, #72]
	add	x8, x8, x26
	str	w0, [x8, #4]
	ldr	x8, [x23]
	add	x21, x21, #1
	lsl	x9, x21, #4
	ldp	x11, x10, [x19, #56]
	add	x12, x10, x9
	ldr	x13, [x12]
	ldp	x15, x14, [x27, #24]
	add	x13, x13, x14
	str	x8, [x12, #8]
	ldr	x8, [x23]
	str	x13, [x12]
	add	x12, x11, x9
	ldr	x13, [x12]
	add	x13, x13, x15
	stp	x13, x8, [x12]
	ldr	x8, [x10]
	add	x8, x8, x14
	str	x8, [x10]
	ldr	x8, [x11]
	add	x8, x8, x15
	str	x8, [x11]
	ldr	x8, [x23]
	ldp	x11, x10, [x19, #40]
	add	x12, x10, x9
	ldr	x13, [x12]
	ldp	x15, x14, [x27, #8]
	add	x13, x13, x14
	str	x8, [x12, #8]
	ldr	x8, [x23]
	add	x9, x11, x9
	str	x13, [x12]
	ldr	x12, [x9]
	add	x12, x12, x15
	stp	x12, x8, [x9]
	ldr	x8, [x10]
	add	x8, x8, x14
	str	x8, [x10]
	ldr	x8, [x11]
	add	x8, x8, x15
	str	x8, [x11]
	cmp	x21, x22
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	mul	x9, x21, x24
	ldr	w9, [x8, x9]
	sub	w10, w9, #1
	cmp	w10, #12
	b.lo	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, x22
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:
	ldr	w8, [x20, #64]
	mov	w9, #1000
	mul	w8, w8, w9
	ldp	x9, x10, [x19, #80]
	str	w8, [x9]
Lloh2:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x10, #4]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_isdbt_stats
.subsections_via_symbols
