	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_sched_context_priority_override
_amdgpu_sched_context_priority_override: ## @amdgpu_sched_context_priority_override
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %edi
	callq	_fdget
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_amdgpu_file_to_fpriv
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_fdput
	jmp	LBB0_7
LBB0_4:
	movq	-40(%rbp), %rdi
	movl	%r15d, %esi
	callq	_amdgpu_ctx_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_amdgpu_ctx_priority_override
	movq	%rbx, %rdi
	callq	_amdgpu_ctx_put
	movl	%r12d, %edi
	callq	_fdput
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	%r12d, %edi
	callq	_fdput
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amdgpu_sched_context_priority_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_sched_context_priority_override
_amdgpu_sched_context_priority_override: ; @amdgpu_sched_context_priority_override
	.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	x20, x3
	mov	x21, x2
	mov	x0, x1
	bl	_fdget
	cbz	w0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_amdgpu_file_to_fpriv
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	w0, w19
	bl	_fdput
	b	LBB0_7
LBB0_3:
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_amdgpu_ctx_get
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x1, x20
	bl	_amdgpu_ctx_priority_override
	mov	x0, x21
	bl	_amdgpu_ctx_put
	mov	w0, w19
	bl	_fdput
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	w0, w19
	bl	_fdput
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amdgpu_sched_context_priority_override
.subsections_via_symbols
