	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_setparam
_i915_setparam:                         ## @i915_setparam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %ecx
	xorl	%eax, %eax
	leal	-128(%rcx), %edi
	cmpl	$2, %edi
	jb	LBB0_11
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$131, %ecx
	jne	LBB0_9
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$0, 4(%rsi)
	setne	%cl
	movl	%ecx, 8(%rdx)
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_6:
	movl	4(%rsi), %ecx
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.7:
	cmpl	4(%rdx), %ecx
	jg	LBB0_10
## %bb.8:
	movl	%ecx, (%rdx)
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%ecx, %esi
	callq	_DRM_DEBUG_DRIVER
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"called with no initialization\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unknown parameter %d\n"

	.no_dead_strip	_i915_setparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_setparam
_i915_setparam:                         ; @i915_setparam
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	w8, [x1]
	sub	w10, w8, #128
	cmp	w10, #2
	b.lo	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #131
	b.ne	LBB0_10
; %bb.4:
	mov	w0, #0
	ldr	w8, [x1, #4]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x9, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_11
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x1, #4]
	tbnz	w8, #31, LBB0_11
; %bb.8:
	ldr	w10, [x9, #4]
	cmp	w8, w10
	b.gt	LBB0_11
; %bb.9:
	mov	w0, #0
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_DRM_DEBUG_DRIVER
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"called with no initialization\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unknown parameter %d\n"

	.no_dead_strip	_i915_setparam
.subsections_via_symbols
