	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv6110_get_bandwidth
_stv6110_get_bandwidth:                 ## @stv6110_get_bandwidth
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_stv6110_read_regs
	movq	(%rbx), %rax
	movq	_RSTV6110_CTRL3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	andl	$31, %eax
	imull	$2000000, %eax, %eax            ## imm = 0x1E8480
	addl	$10000000, %eax                 ## imm = 0x989680
	movl	%eax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RSTV6110_CTRL3,8,3             ## @RSTV6110_CTRL3
	.no_dead_strip	_stv6110_get_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv6110_get_bandwidth
_stv6110_get_bandwidth:                 ; @stv6110_get_bandwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	x1, sp
	mov	w2, #0
	mov	w3, #8
	bl	_stv6110_read_regs
Lloh3:
	adrp	x8, _RSTV6110_CTRL3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSTV6110_CTRL3@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	and	w8, w8, #0x1f
	mov	w9, #33920
	movk	w9, #30, lsl #16
	mov	w10, #38528
	movk	w10, #152, lsl #16
	madd	w8, w8, w9, w10
	str	w8, [x19]
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSTV6110_CTRL3,8,3             ; @RSTV6110_CTRL3
	.no_dead_strip	_stv6110_get_bandwidth
.subsections_via_symbols
