	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_btsc
_detect_btsc:                           ## @detect_btsc
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	_FREQ_BTSC_SAP_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	%r15d, %esi
	callq	_freq_magnitude
	movl	%eax, %r14d
	movq	_FREQ_BTSC_SAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_freq_magnitude
	movl	%eax, %r12d
	movq	_FREQ_BTSC_DUAL_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_freq_magnitude
	movl	%eax, %r13d
	movq	_FREQ_BTSC_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_freq_magnitude
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_dprintk
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREQ_BTSC_SAP_REF,4,2          ## @FREQ_BTSC_SAP_REF
	.comm	_FREQ_BTSC_SAP,4,2              ## @FREQ_BTSC_SAP
	.comm	_FREQ_BTSC_DUAL_REF,4,2         ## @FREQ_BTSC_DUAL_REF
	.comm	_FREQ_BTSC_DUAL,4,2             ## @FREQ_BTSC_DUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detect btsc: dual_ref=%d, dual=%d, sap_ref=%d, sap=%d\n"

	.comm	_UNSET,4,2                      ## @UNSET
	.no_dead_strip	_detect_btsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_btsc
_detect_btsc:                           ; @detect_btsc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _FREQ_BTSC_SAP_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREQ_BTSC_SAP_REF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x19
	bl	_freq_magnitude
	mov	x21, x0
Lloh3:
	adrp	x8, _FREQ_BTSC_SAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FREQ_BTSC_SAP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_freq_magnitude
	mov	x22, x0
Lloh6:
	adrp	x8, _FREQ_BTSC_DUAL_REF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FREQ_BTSC_DUAL_REF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_freq_magnitude
	mov	x23, x0
Lloh9:
	adrp	x8, _FREQ_BTSC_DUAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FREQ_BTSC_DUAL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_freq_magnitude
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x4, x21
	mov	x5, x22
	bl	_dprintk
Lloh14:
	adrp	x8, _UNSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FREQ_BTSC_SAP_REF,4,2          ; @FREQ_BTSC_SAP_REF
	.comm	_FREQ_BTSC_SAP,4,2              ; @FREQ_BTSC_SAP
	.comm	_FREQ_BTSC_DUAL_REF,4,2         ; @FREQ_BTSC_DUAL_REF
	.comm	_FREQ_BTSC_DUAL,4,2             ; @FREQ_BTSC_DUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detect btsc: dual_ref=%d, dual=%d, sap_ref=%d, sap=%d\n"

	.comm	_UNSET,4,2                      ; @UNSET
	.no_dead_strip	_detect_btsc
.subsections_via_symbols
