	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb6100_get_bandwidth
_stb6100_get_bandwidth:                 ## @stb6100_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	_STB6100_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb6100_read_reg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_STB6100_F_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	imull	$2000000, %ecx, %eax            ## imm = 0x1E8480
	addl	$10000000, %eax                 ## imm = 0x989680
	movl	%eax, (%rbx)
	movl	%eax, (%r14)
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB6100_F,4,2                  ## @STB6100_F
	.comm	_STB6100_F_F,4,2                ## @STB6100_F_F
	.comm	_verbose,4,2                    ## @verbose
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bandwidth = %u Hz"

	.no_dead_strip	_stb6100_get_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb6100_get_bandwidth
_stb6100_get_bandwidth:                 ; @stb6100_get_bandwidth
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _STB6100_F@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STB6100_F@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb6100_read_reg
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _STB6100_F_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STB6100_F_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	mov	w9, #33920
	movk	w9, #30, lsl #16
	mov	w10, #38528
	movk	w10, #152, lsl #16
	madd	w8, w8, w9, w10
	str	w8, [x19]
Lloh6:
	adrp	x9, _verbose@GOTPAGE
Lloh7:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
	str	w8, [x20]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w4, [x19]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STB6100_F,4,2                  ; @STB6100_F
	.comm	_STB6100_F_F,4,2                ; @STB6100_F_F
	.comm	_verbose,4,2                    ; @verbose
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bandwidth = %u Hz"

	.no_dead_strip	_stb6100_get_bandwidth
.subsections_via_symbols
