	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_mbox_set_power_state   ## -- Begin function bcm2835_mbox_set_power_state
	.p2align	4, 0x90
_bcm2835_mbox_set_power_state:          ## @bcm2835_mbox_set_power_state
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	leaq	-72(%rbp), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	$40, -44(%rbp)
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_BCM2835_MBOX_TAG_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, -56(%rbp)
	movl	%r12d, -60(%rbp)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_BCM2835_MBOX_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_BCM2835_MBOX_POWER_WAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_bcm2835_mbox_property
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ## @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_POWER_STATE,4,2 ## @BCM2835_MBOX_TAG_SET_POWER_STATE
	.comm	_BCM2835_MBOX_POWER_ON,4,2      ## @BCM2835_MBOX_POWER_ON
	.comm	_BCM2835_MBOX_POWER_WAIT,4,2    ## @BCM2835_MBOX_POWER_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_mbox_set_power_state   ; -- Begin function bcm2835_mbox_set_power_state
	.p2align	2
_bcm2835_mbox_set_power_state:          ; @bcm2835_mbox_set_power_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	mov	w21, #40
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _BCM2835_MBOX_CODE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM2835_MBOX_CODE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BCM2835_MBOX_TAG_SET_POWER_STATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCM2835_MBOX_TAG_SET_POWER_STATE@GOTPAGEOFF]
	stp	w21, w8, [sp, #36]
Lloh5:
	ldr	w8, [x9]
	str	w8, [sp, #32]
	movi.2s	v0, #8
	str	d0, [sp, #24]
Lloh6:
	adrp	x8, _BCM2835_MBOX_POWER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCM2835_MBOX_POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x19, #0
Lloh9:
	adrp	x9, _BCM2835_MBOX_POWER_WAIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BCM2835_MBOX_POWER_WAIT@GOTPAGEOFF]
	csel	w8, wzr, w8, eq
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w20, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #40
	bl	_bcm2835_mbox_property
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.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	_BCM2835_MBOX_CODE_REQ,4,2      ; @BCM2835_MBOX_CODE_REQ
	.comm	_BCM2835_MBOX_TAG_SET_POWER_STATE,4,2 ; @BCM2835_MBOX_TAG_SET_POWER_STATE
	.comm	_BCM2835_MBOX_POWER_ON,4,2      ; @BCM2835_MBOX_POWER_ON
	.comm	_BCM2835_MBOX_POWER_WAIT,4,2    ; @BCM2835_MBOX_POWER_WAIT
.subsections_via_symbols
