	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_sched_ioctl             ## -- Begin function amdgpu_sched_ioctl
	.p2align	4, 0x90
_amdgpu_sched_ioctl:                    ## @amdgpu_sched_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movl	12(%rsi), %edi
	callq	_amdgpu_to_sched_priority
	movq	_DRM_SCHED_PRIORITY_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %esi
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.3:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_amdgpu_sched_process_priority_override ## TAILCALL
LBB0_4:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_amdgpu_sched_context_priority_override ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_SCHED_PRIORITY_INVALID,4,2 ## @DRM_SCHED_PRIORITY_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sched op specified: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_sched_ioctl             ; -- Begin function amdgpu_sched_ioctl
	.p2align	2
_amdgpu_sched_ioctl:                    ; @amdgpu_sched_ioctl
	.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	x20, x1
	ldr	x19, [x0]
	ldr	w0, [x1, #12]
	bl	_amdgpu_to_sched_priority
Lloh0:
	adrp	x8, _DRM_SCHED_PRIORITY_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_SCHED_PRIORITY_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x3, x0
	ldr	w1, [x20]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_amdgpu_sched_process_priority_override
LBB0_4:
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_amdgpu_sched_context_priority_override
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_SCHED_PRIORITY_INVALID,4,2 ; @DRM_SCHED_PRIORITY_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sched op specified: %d\n"

.subsections_via_symbols
