	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_set_clock_rate
_bcm2835_cpufreq_set_clock_rate:        ## @bcm2835_cpufreq_set_clock_rate
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	$64, -56(%rbp)
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BCM2835_MBOX_TAG_SET_CLOCK_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movabsq	$68719476760, %r13              ## imm = 0x1000000018
	movq	%r13, -72(%rbp)
	movq	%r12, -88(%rbp)
	movq	%r15, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_bcm2835_mbox_property
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_device_printf
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_BCM2835_MBOX_CLOCK_ID_CORE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_TRANSITION_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DELAY
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	$64, -56(%rbp)
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BCM2835_MBOX_TAG_SET_CLOCK_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%r13, -72(%rbp)
	movq	%r12, -88(%rbp)
	movq	%r15, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_bcm2835_mbox_property
	testl	%eax, %eax
	jne	LBB0_1
LBB0_4:
	movl	-104(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINTF
LBB0_5:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,8,3      ## @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_CLOCK_RATE,8,3 ## @BCM2835_MBOX_TAG_SET_CLOCK_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't set clock rate (id=%u)\n"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.comm	_BCM2835_MBOX_CLOCK_ID_CORE,8,3 ## @BCM2835_MBOX_CLOCK_ID_CORE
	.comm	_TRANSITION_LATENCY,4,2         ## @TRANSITION_LATENCY
L_.str.1:                               ## @.str.1
	.asciz	"clock = %d(Hz)\n"

	.no_dead_strip	_bcm2835_cpufreq_set_clock_rate
.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_set_clock_rate
lCPI0_0:
	.long	24                              ; 0x18
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bcm2835_cpufreq_set_clock_rate:        ; @bcm2835_cpufreq_set_clock_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w22, #64
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	w22, [sp, #48]
Lloh0:
	adrp	x22, _BCM2835_MBOX_CODE_REQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BCM2835_MBOX_CODE_REQ@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #56]
Lloh2:
	adrp	x23, _BCM2835_MBOX_TAG_SET_CLOCK_RATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BCM2835_MBOX_TAG_SET_CLOCK_RATE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #40]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [sp, #32]
	stp	x21, x19, [sp, #8]
	str	xzr, [sp, #24]
	mov	x0, sp
	mov	w1, #64
	bl	_bcm2835_mbox_property
	cbz	w0, LBB0_2
LBB0_1:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_device_printf
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _BCM2835_MBOX_CLOCK_ID_CORE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCM2835_MBOX_CLOCK_ID_CORE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _TRANSITION_LATENCY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRANSITION_LATENCY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_DELAY
	mov	w24, #64
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	w24, [sp, #48]
	ldr	x8, [x22]
	str	x8, [sp, #56]
	ldr	x8, [x23]
	str	x8, [sp, #40]
	str	d8, [sp, #32]
	stp	x21, x19, [sp, #8]
	str	xzr, [sp, #24]
	mov	x0, sp
	mov	w1, #64
	bl	_bcm2835_mbox_property
	cbnz	w0, LBB0_1
LBB0_4:
	ldr	w19, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DPRINTF
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,8,3      ; @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_CLOCK_RATE,8,3 ; @BCM2835_MBOX_TAG_SET_CLOCK_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't set clock rate (id=%u)\n"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.comm	_BCM2835_MBOX_CLOCK_ID_CORE,8,3 ; @BCM2835_MBOX_CLOCK_ID_CORE
	.comm	_TRANSITION_LATENCY,4,2         ; @TRANSITION_LATENCY
l_.str.1:                               ; @.str.1
	.asciz	"clock = %d(Hz)\n"

	.no_dead_strip	_bcm2835_cpufreq_set_clock_rate
.subsections_via_symbols
