	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_msg_data_crc4
_drm_dp_msg_data_crc4:                  ## @drm_dp_msg_data_crc4
	.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
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	shll	$3, %esi
	negl	%esi
	movl	$128, %r8d
	movl	$7, %r9d
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	movl	$7, %ecx
	movl	$128, %r11d
	movl	%r11d, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	movl	%r10d, %ebx
	movl	(%rdi,%rbx,4), %ebx
	andl	%r11d, %ebx
	sarl	%cl, %ebx
	orl	%eax, %ebx
	sarl	%edx
	decl	%ecx
	cmpl	$2, %r11d
	cmovbl	%r8d, %edx
	cmovbl	%r9d, %ecx
	adcl	$0, %r10d
	movl	%ebx, %eax
	xorl	$213, %eax
	testl	$256, %ebx                      ## imm = 0x100
	cmovel	%ebx, %eax
	movl	%edx, %r11d
	incl	%esi
	jne	LBB0_4
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	leal	(%rax,%rax), %ecx
	movl	%ecx, %edx
	xorl	$213, %edx
	testb	$-128, %al
	cmovel	%ecx, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$213, %ecx
	testb	$-128, %dl
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %edx
	xorl	$213, %edx
	testb	$-128, %cl
	cmovel	%eax, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$213, %ecx
	testb	$-128, %dl
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %edx
	xorl	$213, %edx
	testb	$-128, %cl
	cmovel	%eax, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$213, %ecx
	testb	$-128, %dl
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %edx
	xorl	$213, %edx
	testb	$-128, %cl
	cmovel	%eax, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$213, %ecx
	testb	$-128, %dl
	cmovel	%eax, %ecx
	movzbl	%cl, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_drm_dp_msg_data_crc4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_msg_data_crc4
_drm_dp_msg_data_crc4:                  ; @drm_dp_msg_data_crc4
	.cfi_startproc
; %bb.0:
	mov	w11, #0
	cbz	w1, LBB0_3
; %bb.1:
	mov	w8, #0
	mov	w9, #128
	mov	w10, #7
	mov	w12, #213
	mov	w15, #7
	mov	w14, #128
	neg	w13, w1, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x0, w8, uxtw #2]
	and	w16, w16, w14
	asr	w16, w16, w15
	orr	w11, w16, w11, lsl #1
	asr	w16, w14, #1
	sub	w15, w15, #1
	cmp	w14, #2
	csel	w14, w9, w16, lo
	csel	w15, w10, w15, lo
	cinc	w8, w8, lo
	eor	w16, w11, w12
	tst	w11, #0x100
	csel	w11, w11, w16, eq
	adds	w13, w13, #1
	b.lo	LBB0_2
LBB0_3:
	lsl	w8, w11, #1
	mov	w9, #213
	eor	w10, w8, w9
	tst	w11, #0x80
	csel	w8, w8, w10, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w11, eq
	lsl	w10, w8, #1
	eor	w9, w10, w9
	tst	w8, #0x80
	csel	w8, w10, w9, eq
	and	w0, w8, #0xff
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_drm_dp_msg_data_crc4
.subsections_via_symbols
