	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_get_turbo
_bcm2835_cpufreq_get_turbo:             ## @bcm2835_cpufreq_get_turbo
	.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	%rdi, %r14
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	$48, -28(%rbp)
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_BCM2835_MBOX_TAG_GET_TURBO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movabsq	$34359738384, %rax              ## imm = 0x800000010
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_bcm2835_mbox_property
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	-64(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINTF
LBB0_3:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ## @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_GET_TURBO,4,2 ## @BCM2835_MBOX_TAG_GET_TURBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get turbo\n"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"level = %d\n"

	.no_dead_strip	_bcm2835_cpufreq_get_turbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bcm2835_cpufreq_get_turbo
lCPI0_0:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bcm2835_cpufreq_get_turbo:             ; @bcm2835_cpufreq_get_turbo
	.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, x0
	mov	w20, #48
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _BCM2835_MBOX_CODE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM2835_MBOX_CODE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh3:
	adrp	x8, _BCM2835_MBOX_TAG_GET_TURBO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM2835_MBOX_TAG_GET_TURBO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w20, [sp, #32]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	mov	x0, sp
	mov	w1, #48
	bl	_bcm2835_mbox_property
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w19, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DPRINTF
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ; @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_GET_TURBO,4,2 ; @BCM2835_MBOX_TAG_GET_TURBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get turbo\n"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"level = %d\n"

	.no_dead_strip	_bcm2835_cpufreq_get_turbo
.subsections_via_symbols
