	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gru_file_unlocked_ioctl
_gru_file_unlocked_ioctl:               ## @gru_file_unlocked_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %rdx
	movq	_EBADRQC@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_grudev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_gru_dbg
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	%r14, %rdi
	callq	_gru_user_unload_context
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_gru_get_exception_detail
	jmp	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	callq	_gru_user_flush_tlb
	jmp	LBB0_12
LBB0_7:
	movq	%r14, %rdi
	callq	_gru_handle_user_call_os
	jmp	LBB0_12
LBB0_3:
	movq	%r14, %rdi
	callq	_gru_set_context_option
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_gru_ktest
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_gru_get_gseg_statistics
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_gru_get_config_info
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_gru_create_new_context
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_gru_dump_chiplet_request
LBB0_12:
	movl	%eax, %r15d
LBB0_13:
	movslq	%r15d, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_EBADRQC,4,2                    ## @EBADRQC
	.comm	_grudev,4,2                     ## @grudev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file %p, req 0x%x, 0x%lx\n"

	.no_dead_strip	_gru_file_unlocked_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gru_file_unlocked_ioctl
_gru_file_unlocked_ioctl:               ; @gru_file_unlocked_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _EBADRQC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADRQC@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _grudev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grudev@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_gru_dbg
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.1:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_gru_user_unload_context
	b	LBB0_13
LBB0_3:
	neg	w0, w21
	b	LBB0_14
LBB0_4:
	mov	x0, x19
	bl	_gru_get_exception_detail
	b	LBB0_13
LBB0_5:
	mov	x0, x19
	bl	_gru_user_flush_tlb
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_gru_handle_user_call_os
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_gru_set_context_option
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_gru_ktest
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_gru_get_gseg_statistics
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_gru_get_config_info
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_gru_create_new_context
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_gru_dump_chiplet_request
LBB0_13:
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_14:
	sxtw	x0, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_EBADRQC,4,2                    ; @EBADRQC
	.comm	_grudev,4,2                     ; @grudev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file %p, req 0x%x, 0x%lx\n"

	.no_dead_strip	_gru_file_unlocked_ioctl
.subsections_via_symbols
