	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_gpu_power_on          ## -- Begin function panfrost_gpu_power_on
	.p2align	4, 0x90
_panfrost_gpu_power_on:                 ## @panfrost_gpu_power_on
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_L2_PWRON_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rdi), %rdx
	callq	_gpu_write
	movq	_L2_READY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%rbx), %rdi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_readl_relaxed_poll_timeout
	movl	%eax, %r14d
	movq	_STACK_PWRON_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_gpu_write
	movq	_STACK_READY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%rbx), %rdi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_readl_relaxed_poll_timeout
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movq	_SHADER_PWRON_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_gpu_write
	movq	_SHADER_READY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%rbx), %rdi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_readl_relaxed_poll_timeout
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	_TILER_PWRON_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_gpu_write
	movq	_TILER_READY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%rbx), %rdi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_readl_relaxed_poll_timeout
	orl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2_PWRON_LO,4,2                ## @L2_PWRON_LO
	.comm	_L2_READY_LO,8,3                ## @L2_READY_LO
	.comm	_STACK_PWRON_LO,4,2             ## @STACK_PWRON_LO
	.comm	_STACK_READY_LO,8,3             ## @STACK_READY_LO
	.comm	_SHADER_PWRON_LO,4,2            ## @SHADER_PWRON_LO
	.comm	_SHADER_READY_LO,8,3            ## @SHADER_READY_LO
	.comm	_TILER_PWRON_LO,4,2             ## @TILER_PWRON_LO
	.comm	_TILER_READY_LO,8,3             ## @TILER_READY_LO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error powering up gpu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_gpu_power_on          ; -- Begin function panfrost_gpu_power_on
	.p2align	2
_panfrost_gpu_power_on:                 ; @panfrost_gpu_power_on
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _L2_PWRON_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2_PWRON_LO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #8]
	bl	_gpu_write
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x9, _L2_READY_LO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L2_READY_LO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #100
	mov	w4, #1000
	bl	_readl_relaxed_poll_timeout
	mov	x20, x0
Lloh6:
	adrp	x8, _STACK_PWRON_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STACK_PWRON_LO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	mov	x0, x19
	bl	_gpu_write
	ldr	x8, [x19, #40]
Lloh9:
	adrp	x9, _STACK_READY_LO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STACK_READY_LO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #100
	mov	w4, #1000
	bl	_readl_relaxed_poll_timeout
	orr	w20, w0, w20
Lloh12:
	adrp	x8, _SHADER_PWRON_LO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SHADER_PWRON_LO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	mov	x0, x19
	bl	_gpu_write
	ldr	x8, [x19, #40]
Lloh15:
	adrp	x9, _SHADER_READY_LO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SHADER_READY_LO@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #100
	mov	w4, #1000
	bl	_readl_relaxed_poll_timeout
	orr	w20, w20, w0
Lloh18:
	adrp	x8, _TILER_PWRON_LO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TILER_PWRON_LO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	mov	x0, x19
	bl	_gpu_write
	ldr	x8, [x19, #40]
Lloh21:
	adrp	x9, _TILER_READY_LO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TILER_READY_LO@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #100
	mov	w4, #1000
	bl	_readl_relaxed_poll_timeout
	orr	w8, w20, w0
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_L2_PWRON_LO,4,2                ; @L2_PWRON_LO
	.comm	_L2_READY_LO,8,3                ; @L2_READY_LO
	.comm	_STACK_PWRON_LO,4,2             ; @STACK_PWRON_LO
	.comm	_STACK_READY_LO,8,3             ; @STACK_READY_LO
	.comm	_SHADER_PWRON_LO,4,2            ; @SHADER_PWRON_LO
	.comm	_SHADER_READY_LO,8,3            ; @SHADER_READY_LO
	.comm	_TILER_PWRON_LO,4,2             ; @TILER_PWRON_LO
	.comm	_TILER_READY_LO,8,3             ; @TILER_READY_LO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error powering up gpu"

.subsections_via_symbols
