	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_tmr_init
_psp_tmr_init:                          ## @psp_tmr_init
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_PSP_TMR_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -36(%rbp)
	cmpq	$0, 32(%rdi)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 24(%r12)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 16(%r12)
	je	LBB0_5
## %bb.3:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_psp_load_toc
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_5:
	movl	8(%r12), %edi
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	leaq	-48(%rbp), %rbx
	cmoveq	%rax, %rbx
	movl	8(%r12), %edi
	movl	-36(%rbp), %esi
	movl	(%r15), %edx
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	4(%r12), %r8
	movq	%rbx, (%rsp)
	movq	%r12, %r9
	callq	_amdgpu_bo_create_kernel
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSP_TMR_SIZE,4,2               ## @PSP_TMR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load toc\n"

	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
	.no_dead_strip	_psp_tmr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_tmr_init
_psp_tmr_init:                          ; @psp_tmr_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _PSP_TMR_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PSP_TMR_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_psp_load_toc
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_amdgpu_sriov_vf
	mov	x8, sp
	cmp	x0, #0
	csel	x6, xzr, x8, eq
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #12]
	ldr	w2, [x21]
Lloh4:
	adrp	x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x4, x19, #4
	mov	x5, x19
	bl	_amdgpu_bo_create_kernel
	mov	x20, x0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PSP_TMR_SIZE,4,2               ; @PSP_TMR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load toc\n"

	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
	.no_dead_strip	_psp_tmr_init
.subsections_via_symbols
