	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_getparam
_r128_getparam:                         ## @r128_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_DEV_INIT_TEST_WITH_RETURN
	movq	_DRM_CURRENTPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	cmpl	$128, (%r14)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_dev_to_irq
	movl	%eax, -20(%rbp)
	movl	4(%r14), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_DRM_COPY_TO_USER
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid=%d\n"

	.comm	_DRM_CURRENTPID,4,2             ## @DRM_CURRENTPID
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"copy_to_user\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_getparam
_r128_getparam:                         ; @r128_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	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_DEV_INIT_TEST_WITH_RETURN
Lloh0:
	adrp	x8, _DRM_CURRENTPID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_CURRENTPID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_drm_dev_to_irq
	str	w0, [sp, #12]
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_DRM_COPY_TO_USER
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid=%d\n"

	.comm	_DRM_CURRENTPID,4,2             ; @DRM_CURRENTPID
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"copy_to_user\n"

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