	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_set_voltage
_bcm2835_cpufreq_set_voltage:           ## @bcm2835_cpufreq_set_voltage
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_MAX_OVER_VOLTAGE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_MIN_OVER_VOLTAGE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.3:
	movq	%rsi, %r15
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$56, -44(%rbp)
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_BCM2835_MBOX_TAG_SET_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movabsq	$68719476760, %rax              ## imm = 0x1000000018
	movq	%rax, -56(%rbp)
	movq	%r15, -72(%rbp)
	movslq	%ebx, %rax
	movq	%rax, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_bcm2835_mbox_property
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_5
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-88(%rbp), %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINTF
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OVER_VOLTAGE,4,2           ## @MAX_OVER_VOLTAGE
	.comm	_MIN_OVER_VOLTAGE,4,2           ## @MIN_OVER_VOLTAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not supported voltage: %d\n"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ## @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_VOLTAGE,4,2 ## @BCM2835_MBOX_TAG_SET_VOLTAGE
L_.str.1:                               ## @.str.1
	.asciz	"can't set voltage\n"

L_.str.2:                               ## @.str.2
	.asciz	"value = %d\n"

	.no_dead_strip	_bcm2835_cpufreq_set_voltage
.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_voltage
lCPI0_0:
	.long	24                              ; 0x18
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bcm2835_cpufreq_set_voltage:           ; @bcm2835_cpufreq_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_OVER_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_OVER_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MIN_OVER_VOLTAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIN_OVER_VOLTAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #0, ge
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x21, x1
	mov	w22, #56
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh8:
	adrp	x8, _BCM2835_MBOX_CODE_REQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BCM2835_MBOX_CODE_REQ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh11:
	adrp	x8, _BCM2835_MBOX_TAG_SET_VOLTAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCM2835_MBOX_TAG_SET_VOLTAGE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w22, [sp, #48]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #40]
	sxtw	x8, w20
	stp	x8, x21, [sp, #16]
	str	xzr, [sp, #32]
	add	x0, sp, #8
	mov	w1, #56
	bl	_bcm2835_mbox_property
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_device_printf
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w19, [sp, #8]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_DPRINTF
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OVER_VOLTAGE,4,2           ; @MAX_OVER_VOLTAGE
	.comm	_MIN_OVER_VOLTAGE,4,2           ; @MIN_OVER_VOLTAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not supported voltage: %d\n"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ; @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_VOLTAGE,4,2 ; @BCM2835_MBOX_TAG_SET_VOLTAGE
l_.str.1:                               ; @.str.1
	.asciz	"can't set voltage\n"

l_.str.2:                               ; @.str.2
	.asciz	"value = %d\n"

	.no_dead_strip	_bcm2835_cpufreq_set_voltage
.subsections_via_symbols
