	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_getparam
_i915_getparam:                         ## @i915_getparam
	.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	%rdi, %rax
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	leal	-128(%rsi), %ecx
	cmpl	$24, %ecx
	ja	LBB0_33
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_17:
	movl	$1, -12(%rbp)
	jmp	LBB0_28
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_8:
	movl	(%rdi), %eax
	subl	4(%rdi), %eax
	jmp	LBB0_27
LBB0_9:
	callq	_READ_BREADCRUMB
	jmp	LBB0_27
LBB0_10:
	movq	8(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setne	%cl
	jmp	LBB0_19
LBB0_12:
	movq	%rax, %rdi
	callq	_i915_semaphore_is_enabled
	jmp	LBB0_27
LBB0_13:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	jmp	LBB0_27
LBB0_15:
	xorl	%eax, %eax
	cmpl	$0, 24(%rdi)
	jmp	LBB0_26
LBB0_16:
	movq	%rax, %rdi
	callq	_HAS_LLC
	jmp	LBB0_27
LBB0_18:
	movq	%rax, %rdi
	callq	_INTEL_INFO
	xorl	%ecx, %ecx
	cmpl	$4, (%rax)
	setge	%cl
LBB0_19:
	movl	%ecx, -12(%rbp)
	jmp	LBB0_28
LBB0_20:
	movq	_VCS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_BCS@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	16(%rdi), %rax
	movq	%rax, %rdi
	callq	_intel_ring_initialized
	jmp	LBB0_27
LBB0_23:
	xorl	%eax, %eax
	cmpl	$0, 8(%rdi)
	jmp	LBB0_26
LBB0_24:
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_25:
	xorl	%eax, %eax
	cmpl	$0, 28(%rdi)
LBB0_26:
	setne	%al
LBB0_27:
	movl	%eax, -12(%rbp)
LBB0_28:
	movl	4(%rbx), %edi
	leaq	-12(%rbp), %rsi
	movl	$4, %edx
	callq	_DRM_COPY_TO_USER
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_30:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_32
LBB0_31:
	xorl	%eax, %eax
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_33:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_DEBUG_DRIVER
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"called with no initialization\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VCS,8,3                        ## @VCS
	.comm	_BCS,8,3                        ## @BCS
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
L_.str.1:                               ## @.str.1
	.asciz	"Unknown parameter %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"DRM_COPY_TO_USER failed\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_i915_getparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_getparam
_i915_getparam:                         ; @i915_getparam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w1, [x1]
	sub	w9, w1, #128
	cmp	w9, #24
	b.hi	LBB0_27
; %bb.2:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	w8, #1
	b	LBB0_22
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_6:
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
	b	LBB0_22
LBB0_7:
	bl	_READ_BREADCRUMB
	b	LBB0_17
LBB0_8:
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	b	LBB0_21
LBB0_9:
	mov	x0, x8
	bl	_i915_semaphore_is_enabled
	b	LBB0_17
LBB0_10:
Lloh6:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_capable
	b	LBB0_17
LBB0_11:
	ldr	w8, [x0, #24]
	b	LBB0_21
LBB0_12:
	mov	x0, x8
	bl	_HAS_LLC
	b	LBB0_17
LBB0_13:
	mov	x0, x8
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	cset	w8, gt
	b	LBB0_22
LBB0_14:
	ldr	x8, [x0, #16]
Lloh9:
	adrp	x9, _VCS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VCS@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	ldr	x8, [x0, #16]
Lloh11:
	adrp	x9, _BCS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BCS@GOTPAGEOFF]
LBB0_16:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_intel_ring_initialized
LBB0_17:
	str	w0, [sp, #12]
	b	LBB0_23
LBB0_18:
	ldr	w8, [x0, #8]
	b	LBB0_21
LBB0_19:
	ldr	w8, [x8]
	b	LBB0_22
LBB0_20:
	ldr	w8, [x0, #28]
LBB0_21:
	cmp	w8, #0
	cset	w8, ne
LBB0_22:
	str	w8, [sp, #12]
LBB0_23:
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_DRM_COPY_TO_USER
	cbz	x0, LBB0_26
; %bb.24:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
Lloh15:
	adrp	x8, _EFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_27:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"called with no initialization\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VCS,8,3                        ; @VCS
	.comm	_BCS,8,3                        ; @BCS
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
l_.str.1:                               ; @.str.1
	.asciz	"Unknown parameter %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"DRM_COPY_TO_USER failed\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_i915_getparam
.subsections_via_symbols
