	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsdvb_update_per_slices
_smsdvb_update_per_slices:              ## @smsdvb_update_per_slices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	40(%rsi), %edi
	movl	48(%rsi), %esi
	callq	_sms_to_status
	movl	%eax, 12(%r14)
	movl	44(%rbx), %edi
	callq	_sms_to_modulation
	movl	%eax, 64(%r14)
	imull	$1000, (%rbx), %eax             ## imm = 0x3E8
	movq	56(%r14), %rcx
	movl	%eax, (%rcx)
	imull	$1000, 4(%rbx), %eax            ## imm = 0x3E8
	movq	48(%r14), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, 40(%rbx)
	je	LBB0_4
## %bb.1:
	movq	40(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax)
	movq	32(%r14), %r8
	movq	%rdx, 8(%r8)
	movq	8(%rbx), %rdi
	addl	%edi, %ecx
	movl	%ecx, (%rax)
	movq	16(%rbx), %rsi
	addq	%rdi, %rsi
	addl	%esi, (%r8)
	movq	24(%r14), %rax
	movq	%rdx, 8(%rax)
	movq	16(%r14), %rcx
	movq	%rdx, 8(%rcx)
	movl	32(%rbx), %edx
	addl	%edx, (%rax)
	movl	24(%rbx), %eax
	addl	%eax, (%rcx)
	movq	%rdi, %rbx
	shlq	$16, %rbx
	subq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_do_div
LBB0_3:
	movq	%rbx, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_per_slices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsdvb_update_per_slices
_smsdvb_update_per_slices:              ; @smsdvb_update_per_slices
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #40]
	ldr	w1, [x1, #48]
	bl	_sms_to_status
	str	w0, [x19, #12]
	ldr	w0, [x20, #44]
	bl	_sms_to_modulation
	str	w0, [x19, #64]
	mov	w8, #1000
	ldp	w9, w10, [x20]
	mul	w9, w9, w8
	ldp	x12, x11, [x19, #48]
	str	w9, [x11]
	mul	w8, w10, w8
	str	w8, [x12]
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_4
; %bb.1:
	ldp	x9, x8, [x19, #32]
	ldr	w10, [x8]
	str	w10, [x19, #8]
Lloh0:
	adrp	x11, _FE_SCALE_COUNTER@GOTPAGE
Lloh1:
	ldr	x11, [x11, _FE_SCALE_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	str	x11, [x8, #8]
	str	x11, [x9, #8]
	ldp	x12, x13, [x20, #8]
	add	w10, w10, w12
	str	w10, [x8]
	ldr	w8, [x9]
	add	x1, x13, x12
	add	w8, w8, w1
	str	w8, [x9]
	ldp	x9, x8, [x19, #16]
	str	x11, [x8, #8]
	str	x11, [x9, #8]
	ldr	w10, [x20, #32]
	ldr	w11, [x8]
	add	w10, w11, w10
	str	w10, [x8]
	ldr	w8, [x20, #24]
	ldr	w10, [x9]
	add	w8, w10, w8
	lsl	x10, x12, #16
	sub	x20, x10, x12
	str	w8, [x9]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_do_div
LBB0_3:
	str	x20, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
	.no_dead_strip	_smsdvb_update_per_slices
.subsections_via_symbols
