	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function callback_thread
_callback_thread:                       ## @callback_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_sceKernelGetThreadId
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_sceKernelGetThreadCurrentPriority
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_lprintf
	movq	_exit_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%edx, %edx
	callq	_sceKernelCreateCallback
	movl	%eax, %edi
	callq	_sceKernelRegisterExitCallback
	movq	_power_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%edx, %edx
	callq	_sceKernelCreateCallback
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_scePowerRegisterCallback
	xorl	%eax, %eax
	callq	_sceKernelSleepThreadCB
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"callback_thread started with id %08x, priority %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"Exit Callback"

	.comm	_exit_callback,4,2              ## @exit_callback
L_.str.2:                               ## @.str.2
	.asciz	"Power Callback"

	.comm	_power_callback,4,2             ## @power_callback
	.no_dead_strip	_callback_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function callback_thread
_callback_thread:                       ; @callback_thread
	.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
	bl	_sceKernelGetThreadId
	mov	x19, x0
	bl	_sceKernelGetThreadCurrentPriority
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_lprintf
Lloh2:
	adrp	x8, _exit_callback@GOTPAGE
Lloh3:
	ldr	x8, [x8, _exit_callback@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_sceKernelCreateCallback
	bl	_sceKernelRegisterExitCallback
Lloh7:
	adrp	x8, _power_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _power_callback@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_sceKernelCreateCallback
	mov	x1, x0
	mov	w0, #0
	bl	_scePowerRegisterCallback
	bl	_sceKernelSleepThreadCB
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"callback_thread started with id %08x, priority %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"Exit Callback"

	.comm	_exit_callback,4,2              ; @exit_callback
l_.str.2:                               ; @.str.2
	.asciz	"Power Callback"

	.comm	_power_callback,4,2             ; @power_callback
	.no_dead_strip	_callback_thread
.subsections_via_symbols
