	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_encode_sideband_req
_drm_dp_encode_sideband_req:            ## @drm_dp_encode_sideband_req
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %r12
	movl	(%rdi), %eax
	andl	$127, %eax
	movl	%eax, (%r12)
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	movl	8(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movl	$2, %eax
	jmp	LBB0_19
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_17:
	movl	12(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movl	16(%r15), %eax
	andl	$127, %eax
	movl	%eax, 8(%r12)
	movl	20(%r15), %eax
	movl	%eax, 12(%r12)
	addq	$16, %r12
	movl	20(%r15), %edx
	movl	24(%r15), %esi
	movq	%r12, %rdi
	callq	_memcpy
	movl	20(%r15), %eax
	addl	$4, %eax
	jmp	LBB0_19
LBB0_12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movl	36(%r15), %ecx
	andl	$3, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r12)
	testb	$3, 36(%r15)
	je	LBB0_13
## %bb.14:
	movq	48(%r15), %rax
	movl	$2, %ecx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx), %edx
	andl	$127, %edx
	movslq	%ecx, %r14
	movl	%edx, (%r12,%r14,4)
	movl	4(%rax,%rbx), %ecx
	movl	%ecx, 4(%r12,%r14,4)
	leaq	2(%r14), %rcx
	movslq	%ecx, %rcx
	leaq	(%r12,%rcx,4), %rdi
	movl	4(%rax,%rbx), %edx
	movl	16(%rax,%rbx), %esi
	callq	_memcpy
	movq	48(%r15), %rax
	movslq	4(%rax,%rbx), %rcx
	addq	%r14, %rcx
	addq	$2, %rcx
	movl	8(%rax,%rbx), %edx
	shll	$5, %edx
	andl	$32, %edx
	movl	%edx, (%r12,%rcx,4)
	movl	12(%rax,%rbx), %esi
	andl	$15, %esi
	orl	%edx, %esi
	movl	%esi, (%r12,%rcx,4)
	incl	%ecx
	incq	%r13
	movl	36(%r15), %edx
	andl	$3, %edx
	addq	$20, %rbx
	cmpq	%rdx, %r13
	jb	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movl	56(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movzwl	62(%r15), %ecx
	andl	$15, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r12)
	movzbl	61(%r15), %eax
	movl	%eax, 8(%r12)
	movzbl	60(%r15), %eax
	movl	%eax, 12(%r12)
	movl	64(%r15), %eax
	movl	%eax, 16(%r12)
	addq	$20, %r12
	movl	64(%r15), %edx
	movl	68(%r15), %esi
	movq	%r12, %rdi
	callq	_memcpy
	movl	64(%r15), %eax
	addl	$5, %eax
	jmp	LBB0_19
LBB0_10:
	movl	72(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movzwl	78(%r15), %ecx
	andl	$15, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r12)
	movzbl	77(%r15), %eax
	movl	%eax, 8(%r12)
	movzbl	76(%r15), %eax
	movl	%eax, 12(%r12)
	movl	80(%r15), %eax
	movl	%eax, 16(%r12)
	movl	$5, %eax
	jmp	LBB0_19
LBB0_9:
	movl	84(%r15), %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%r12)
	movl	88(%r15), %eax
	andl	$127, %eax
	movl	%eax, 8(%r12)
	movl	$3, %eax
	jmp	LBB0_19
LBB0_3:
	movl	96(%r15), %eax
	movl	100(%r15), %ecx
	shll	$4, %eax
	movzbl	%al, %eax
	andl	$15, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r12)
	movl	104(%r15), %eax
	andl	$127, %eax
	movl	%eax, 8(%r12)
	movl	108(%r15), %eax
	sarl	$8, %eax
	movl	%eax, 12(%r12)
	movzbl	108(%r15), %eax
	movl	%eax, 16(%r12)
	movl	100(%r15), %ecx
	movl	$5, %eax
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.4:
	movq	112(%r15), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,8), %ecx
	movl	4(%rdx,%rax,8), %esi
	shll	$4, %ecx
	movzbl	%cl, %ecx
	andl	$15, %esi
	orl	%ecx, %esi
	movl	%esi, 20(%r12,%rax,4)
	incq	%rax
	movl	100(%r15), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movslq	%esi, %rsi
	cmpq	%rsi, %rax
	jl	LBB0_5
## %bb.6:
	addl	$5, %eax
LBB0_7:
	testb	$1, %cl
	je	LBB0_19
## %bb.8:
	movq	112(%r15), %rdx
	movslq	%ecx, %rcx
	movl	-4(%rdx,%rcx,4), %ecx
	shll	$4, %ecx
	movzbl	%cl, %ecx
	movl	%eax, %edx
	movl	%ecx, (%r12,%rdx,4)
	incl	%eax
	jmp	LBB0_19
LBB0_13:
	movl	$2, %ecx
LBB0_16:
	movl	40(%r15), %edx
	andl	$127, %edx
	movslq	%ecx, %rax
	movl	%edx, (%r12,%rax,4)
	movl	44(%r15), %ecx
	movl	%ecx, 4(%r12,%rax,4)
	addl	$2, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_drm_dp_encode_sideband_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_encode_sideband_req
_drm_dp_encode_sideband_req:            ; @drm_dp_encode_sideband_req
	.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	x19, x1
	ldr	x21, [x1]
	ldr	w8, [x0]
	and	w8, w8, #0x7f
	str	w8, [x21]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #8]
	ubfiz	w8, w8, #4, #4
	str	w8, [x21, #4]
	mov	w8, #2
	b	LBB0_20
LBB0_3:
	mov	w8, #1
	b	LBB0_20
LBB0_4:
	ldr	w8, [x20, #12]
	ubfiz	w8, w8, #4, #4
	str	w8, [x21, #4]
	ldr	w8, [x20, #16]
	and	w8, w8, #0x7f
	str	w8, [x21, #8]
	ldr	w8, [x20, #20]
	str	w8, [x21, #12]
	add	x0, x21, #16
	ldp	w2, w1, [x20, #20]
	bl	_memcpy
	ldr	w8, [x20, #20]
	add	w8, w8, #4
	b	LBB0_20
LBB0_5:
	ldr	w8, [x20, #32]
	ubfiz	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldr	w9, [x20, #36]
	and	w9, w9, #0x3
	bfi	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldrb	w8, [x20, #36]
	tst	w8, #0x3
	b.eq	LBB0_18
; %bb.6:
	ldr	x8, [x20, #48]
	ldr	w9, [x8]
	and	w9, w9, #0x7f
	str	w9, [x21, #8]
	ldr	w9, [x8, #4]
	str	w9, [x21, #12]
	add	x0, x21, #16
	ldr	w1, [x8, #16]
	ldr	w2, [x8, #4]
	bl	_memcpy
	ldr	x9, [x20, #48]
	ldp	w10, w8, [x9, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w11, w10, #4
	ubfiz	w12, w8, #5, #1
	sbfiz	x11, x11, #2, #32
	str	w12, [x21, x11]
	ldr	w12, [x9, #12]
	and	w12, w12, #0xf
	bfi	w12, w8, #5, #1
	str	w12, [x21, x11]
	add	w8, w10, #5
	ldrb	w11, [x20, #36]
	tbz	w11, #1, LBB0_19
; %bb.7:
	ldr	w11, [x9, #20]
	and	w11, w11, #0x7f
	str	w11, [x21, w8, sxtw #2]
	add	w8, w10, #6
	ldr	w11, [x9, #24]
	str	w11, [x21, w8, sxtw #2]
	add	x22, x10, #7
	add	x0, x21, w22, sxtw #2
	ldr	w1, [x9, #36]
	ldr	w2, [x9, #24]
	bl	_memcpy
	ldr	x9, [x20, #48]
	ldp	w8, w11, [x9, #24]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x10, x8, x22
	ubfiz	w8, w11, #5, #1
	lsl	x12, x10, #2
	str	w8, [x21, x12]
	ldr	w8, [x9, #32]
	and	w8, w8, #0xf
	bfi	w8, w11, #5, #1
	str	w8, [x21, x12]
	add	x8, x10, #1
	ldr	w11, [x20, #36]
	mvn	w11, w11
	tst	w11, #0x3
	b.ne	LBB0_19
; %bb.8:
	ldr	w11, [x9, #40]
	and	w11, w11, #0x7f
	str	w11, [x21, x8, lsl #2]
	ldr	w8, [x9, #44]
	add	x11, x21, x10, lsl #2
	str	w8, [x11, #8]
	add	x22, x10, #3
	add	x0, x21, x22, lsl #2
	ldr	w1, [x9, #56]
	ldr	w2, [x9, #44]
	bl	_memcpy
	ldr	x8, [x20, #48]
	ldp	w9, w10, [x8, #44]
	add	w9, w9, w22
	ubfiz	w11, w10, #5, #1
	sbfiz	x12, x9, #2, #32
	str	w11, [x21, x12]
	ldr	w8, [x8, #52]
	and	w8, w8, #0xf
	bfi	w8, w10, #5, #1
	str	w8, [x21, x12]
	add	w8, w9, #1
	b	LBB0_19
LBB0_9:
	ldr	w8, [x20, #56]
	ubfiz	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldrh	w9, [x20, #62]
	and	w9, w9, #0xf
	bfi	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldrb	w8, [x20, #61]
	str	w8, [x21, #8]
	ldrb	w8, [x20, #60]
	str	w8, [x21, #12]
	ldr	w8, [x20, #64]
	str	w8, [x21, #16]
	add	x0, x21, #20
	ldp	w2, w1, [x20, #64]
	bl	_memcpy
	ldr	w8, [x20, #64]
	add	w8, w8, #5
	b	LBB0_20
LBB0_10:
	ldr	w8, [x20, #72]
	ubfiz	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldrh	w9, [x20, #78]
	and	w9, w9, #0xf
	bfi	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldrb	w8, [x20, #77]
	str	w8, [x21, #8]
	ldrb	w8, [x20, #76]
	str	w8, [x21, #12]
	ldr	w8, [x20, #80]
	str	w8, [x21, #16]
	mov	w8, #5
	b	LBB0_20
LBB0_11:
	ldr	w8, [x20, #84]
	ubfiz	w8, w8, #4, #4
	str	w8, [x21, #4]
	ldr	w8, [x20, #88]
	and	w8, w8, #0x7f
	str	w8, [x21, #8]
	mov	w8, #3
	b	LBB0_20
LBB0_12:
	ldp	w8, w9, [x20, #96]
	and	w9, w9, #0xf
	bfi	w9, w8, #4, #4
	str	w9, [x21, #4]
	ldr	w8, [x20, #104]
	and	w8, w8, #0x7f
	str	w8, [x21, #8]
	ldr	w8, [x20, #108]
	asr	w8, w8, #8
	str	w8, [x21, #12]
	ldrb	w8, [x20, #108]
	str	w8, [x21, #16]
	ldr	w10, [x20, #100]
	cmp	w10, #2
	b.lt	LBB0_16
; %bb.13:
	ldr	x8, [x20, #112]
	add	x9, x8, #4
	mov	w8, #5
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	w10, w11, [x9, #-4]
	and	w11, w11, #0xf
	bfi	w11, w10, #4, #4
	str	w11, [x21, x8, lsl #2]
	sub	x11, x8, #4
	add	x8, x8, #1
	ldr	w10, [x20, #100]
	cmp	w10, #0
	cinc	w12, w10, lt
	asr	w12, w12, #1
	add	x9, x9, #8
	cmp	x11, w12, sxtw
	b.lt	LBB0_14
; %bb.15:
	tbnz	w10, #0, LBB0_17
	b	LBB0_20
LBB0_16:
	mov	w8, #5
	tbz	w10, #0, LBB0_20
LBB0_17:
	sub	w9, w10, #1
	ldr	x10, [x20, #112]
	ldr	w9, [x10, w9, sxtw #2]
	ubfiz	w9, w9, #4, #4
	str	w9, [x21, w8, uxtw #2]
	add	w8, w8, #1
	b	LBB0_20
LBB0_18:
	mov	w8, #2
LBB0_19:
	ldr	w9, [x20, #40]
	and	w9, w9, #0x7f
	add	x10, x21, w8, sxtw #2
	str	w9, [x10]
	ldr	w9, [x20, #44]
	str	w9, [x10, #4]
	add	w8, w8, #2
LBB0_20:
	str	w8, [x19, #8]
	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
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_drm_dp_encode_sideband_req
.subsections_via_symbols
