	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_displayid
_validate_displayid:                    ## @validate_displayid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movslq	%edx, %rbx
	movl	12(%rdi,%rbx,8), %esi
	movl	8(%rdi,%rbx,8), %ecx
	movl	(%rdi,%rbx,8), %edx
	movl	4(%rdi,%rbx,8), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%r15,%rbx,8), %ecx
	leal	5(%rcx), %edx
	subl	%ebx, %r12d
	cmpl	%r12d, %edx
	jg	LBB0_18
## %bb.1:
	xorl	%eax, %eax
	cmpl	%r14d, %edx
	jl	LBB0_19
## %bb.2:
	movl	%ecx, %r9d
	subl	%r14d, %r9d
	addl	$5, %r9d
	cmpl	$3, %r9d
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_4:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rax
	movq	%rax, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$12, %rax
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rsi
	leaq	(%r15,%rbx,8), %rax
	addq	$112, %rax
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-112(%rax,%rdi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-96(%rax,%rdi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	-80(%rax,%rdi,8), %xmm1
	movdqu	-64(%rax,%rdi,8), %xmm3
	movdqu	-48(%rax,%rdi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	-32(%rax,%rdi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-16(%rax,%rdi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	(%rax,%rdi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_7
LBB0_8:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	addq	%rbx, %rdi
	leaq	(%r15,%rdi,8), %rax
	addq	$16, %rax
	shlq	$5, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rsi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rax,%rsi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rsi
	cmpq	%r8, %r9
	je	LBB0_15
## %bb.12:
	addq	%r8, %rbx
LBB0_13:
	addl	$6, %ecx
	movl	%ecx, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r15,%rbx,8), %rsi
	incq	%rbx
	cmpl	%ebx, %eax
	jne	LBB0_14
LBB0_15:
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_NOTE
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base revision 0x%x, length %d, %d %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"DisplayID checksum invalid, remainder is %d\n"

	.no_dead_strip	_validate_displayid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_displayid
_validate_displayid:                    ; @validate_displayid
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, w2, sxtw #3
	ldp	w3, w1, [x22, #8]
	ldp	w2, w4, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	add	w9, w8, #5
	sub	w10, w21, w20
	cmp	w9, w10
	b.gt	LBB0_11
; %bb.1:
	cmp	w9, w20
	b.lt	LBB0_12
; %bb.2:
	sxtw	x12, w20
	sub	w9, w8, w20
	add	w9, w9, #5
	cmp	w9, #7
	b.hs	LBB0_4
; %bb.3:
	mov	x1, #0
	mov	x9, x12
	b	LBB0_7
LBB0_4:
	add	x10, x9, #1
	and	x11, x10, #0x1fffffff8
	add	x9, x11, x12
	add	x12, x19, x12, lsl #3
	add	x12, x12, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x1, d0
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_7:
	add	x10, x19, x9, lsl #3
	sub	w8, w8, w9
	add	w8, w8, #6
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10], #8
	add	x1, x9, x1
	subs	w8, w8, #1
	b.ne	LBB0_8
LBB0_9:
	cbz	x1, LBB0_12
; %bb.10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_NOTE
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base revision 0x%x, length %d, %d %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"DisplayID checksum invalid, remainder is %d\n"

	.no_dead_strip	_validate_displayid
.subsections_via_symbols
