	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_ioctl_get_param
_lima_ioctl_get_param:                  ## @lima_ioctl_get_param
	.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
	movq	%rsi, %rbx
	callq	_to_lima_dev
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_2:
	movl	$-130, %ecx
	addl	(%rbx), %ecx
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	8(%rax), %rax
	movq	_lima_pipe_pp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_13
LBB0_5:
	movl	4(%rax), %eax
	jmp	LBB0_13
LBB0_6:
	movl	16(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	movq	_DRM_LIMA_PARAM_GPU_ID_MALI400@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_DRM_LIMA_PARAM_GPU_ID_MALI450@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_DRM_LIMA_PARAM_GPU_ID_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_LIMA_PARAM_GPU_ID_MALI400,4,2 ## @DRM_LIMA_PARAM_GPU_ID_MALI400
	.comm	_DRM_LIMA_PARAM_GPU_ID_MALI450,4,2 ## @DRM_LIMA_PARAM_GPU_ID_MALI450
	.comm	_DRM_LIMA_PARAM_GPU_ID_UNKNOWN,4,2 ## @DRM_LIMA_PARAM_GPU_ID_UNKNOWN
	.comm	_lima_pipe_pp,8,3               ## @lima_pipe_pp
	.no_dead_strip	_lima_ioctl_get_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_ioctl_get_param
_lima_ioctl_get_param:                  ; @lima_ioctl_get_param
	.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	x19, x1
	bl	_to_lima_dev
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w9, [x19]
	sub	w9, w9, #130
	cmp	w9, #3
	b.hi	LBB0_1
; %bb.4:
	mov	x8, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	mov	w0, #0
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x9, _lima_pipe_pp@GOTPAGE
Lloh6:
	ldr	x9, [x9, _lima_pipe_pp@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #4]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ldr	w8, [x8, #4]
	str	w8, [x19, #4]
	b	LBB0_2
LBB0_8:
	ldr	w8, [x8, #16]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.10:
	mov	w0, #0
Lloh8:
	adrp	x8, _DRM_LIMA_PARAM_GPU_ID_MALI400@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_LIMA_PARAM_GPU_ID_MALI400@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh10:
	adrp	x8, _DRM_LIMA_PARAM_GPU_ID_MALI450@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_LIMA_PARAM_GPU_ID_MALI450@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh12:
	adrp	x8, _DRM_LIMA_PARAM_GPU_ID_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_LIMA_PARAM_GPU_ID_UNKNOWN@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_LIMA_PARAM_GPU_ID_MALI400,4,2 ; @DRM_LIMA_PARAM_GPU_ID_MALI400
	.comm	_DRM_LIMA_PARAM_GPU_ID_MALI450,4,2 ; @DRM_LIMA_PARAM_GPU_ID_MALI450
	.comm	_DRM_LIMA_PARAM_GPU_ID_UNKNOWN,4,2 ; @DRM_LIMA_PARAM_GPU_ID_UNKNOWN
	.comm	_lima_pipe_pp,8,3               ; @lima_pipe_pp
	.no_dead_strip	_lima_ioctl_get_param
.subsections_via_symbols
