	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_sideband_parse_link_address
_drm_dp_sideband_parse_link_address:    ## @drm_dp_sideband_parse_link_address
	.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, %r15
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	movq	(%r14), %rsi
	addq	$4, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %r8
	movl	68(%r8), %ecx
	andl	$15, %ecx
	movl	%ecx, (%r15)
	movl	8(%r14), %edx
	movl	$18, %r13d
	cmpl	$18, %edx
	jge	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.4:
	movl	$18, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rsi
	movl	(%r8,%rsi,4), %edi
	movq	8(%r15), %rcx
	testb	$-128, %dil
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%rcx,%rbx)
	movl	(%r8,%rsi,4), %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	shrl	$4, %edi
	andl	$7, %edi
	movl	%edi, 4(%rcx,%rbx)
	movl	(%r8,%rsi,4), %edi
	andl	$15, %edi
	movl	%edi, 8(%rcx,%rbx)
	leal	1(%rsi), %edi
	cmpl	%edx, %esi
	jge	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%edi, %rsi
	movl	(%r8,%rsi,4), %edi
	shrl	$7, %edi
	andl	$1, %edi
	movl	%edi, 12(%rcx,%rbx)
	movl	(%r8,%rsi,4), %edi
	shrl	$6, %edi
	andl	$1, %edi
	movl	%edi, 16(%rcx,%rbx)
	cmpl	$0, (%rcx,%rbx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$2, %r13d
	cmpl	%edx, %r13d
	jg	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %r13d
	jle	LBB0_15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r8,%rsi,4), %esi
	shrl	$5, %esi
	andl	$1, %esi
	movl	%esi, 20(%rcx,%rbx)
	leal	2(%r13), %esi
	cmpl	%edx, %esi
	jg	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%esi, %rsi
	movl	(%r8,%rsi,4), %esi
	movl	%esi, 24(%rcx,%rbx)
	leal	3(%r13), %esi
	cmpl	%edx, %esi
	jg	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	36(%rcx,%rbx), %edi
	movslq	%esi, %rcx
	leaq	(%r8,%rcx,4), %rsi
	movl	$16, %edx
	callq	_memcpy
	leal	19(%r13), %ecx
	movl	8(%r14), %edx
	cmpl	%edx, %ecx
	jg	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %r8
	movslq	%ecx, %rcx
	movl	(%r8,%rcx,4), %esi
	shrl	$4, %esi
	andl	$15, %esi
	movq	8(%r15), %rdi
	movl	%esi, 28(%rdi,%rbx)
	movl	(%r8,%rcx,4), %ecx
	andl	$15, %ecx
	movl	%ecx, 32(%rdi,%rbx)
	addl	$20, %r13d
	cmpl	%edx, %r13d
	jg	LBB0_1
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	(%r15), %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_5
## %bb.16:
	movl	$1, %eax
	jmp	LBB0_2
LBB0_17:
	movl	%edi, %r13d
	jmp	LBB0_1
LBB0_19:
	movl	%esi, %r13d
	jmp	LBB0_1
LBB0_20:
	movl	%ecx, %r13d
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link address reply parse length fail %d %d\n"

	.no_dead_strip	_drm_dp_sideband_parse_link_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_sideband_parse_link_address
_drm_dp_sideband_parse_link_address:    ; @drm_dp_sideband_parse_link_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	w9, [x8, #68]
	and	w9, w9, #0xf
	str	w9, [x19]
	ldr	w2, [x20, #8]
	cmp	w2, #18
	b.ge	LBB0_4
; %bb.1:
	mov	w1, #18
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DRM_DEBUG_KMS
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w21, #1
	cbz	w9, LBB0_3
; %bb.5:
	mov	x22, #0
	mov	w1, #18
	mov	w23, #36
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x24, w1
	ldr	w10, [x8, w1, sxtw #2]
	ldr	x9, [x19, #8]
	tbz	w10, #7, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x9, x23
	stur	w21, [x10, #-36]
	ldr	w10, [x8, x24, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ubfx	w11, w10, #4, #3
	add	x10, x9, x23
	stur	w11, [x10, #-32]
	ldr	w11, [x8, x24, lsl #2]
	and	w11, w11, #0xf
	stur	w11, [x10, #-28]
	add	x1, x24, #1
	cmp	w24, w2
	b.ge	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x11, x1, #2
	ldr	w12, [x8, x11]
	ubfx	w12, w12, #7, #1
	stur	w12, [x10, #-24]
	ldr	w11, [x8, x11]
	ubfx	w11, w11, #6, #1
	stur	w11, [x10, #-20]
	ldur	w10, [x10, #-36]
	cbz	w10, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w1, w24, #2
	cmp	w1, w2
	b.gt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w1, w2
	b.le	LBB0_16
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x8, x1, lsl #2]
	ubfx	w11, w10, #5, #1
	add	x10, x9, x23
	stur	w11, [x10, #-16]
	add	x1, x24, #2
	cmp	w1, w2
	b.gt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x8, x1, lsl #2]
	stur	w11, [x10, #-12]
	add	x10, x24, #3
	mov	x1, x10
	cmp	w10, w2
	b.gt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x9, x23]
	add	x1, x8, x10, lsl #2
	mov	w2, #16
	bl	_memcpy
	add	x1, x24, #19
	ldr	w2, [x20, #8]
	cmp	w1, w2
	b.gt	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	lsl	x9, x1, #2
	ldr	w10, [x8, x9]
	ubfx	w10, w10, #4, #4
	ldr	x11, [x19, #8]
	add	x11, x11, x23
	stur	w10, [x11, #-8]
	ldr	w9, [x8, x9]
	and	w9, w9, #0xf
	stur	w9, [x11, #-4]
	add	w1, w24, #20
	cmp	w1, w2
	b.gt	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x19]
	add	x23, x23, #40
	cmp	x22, x9
	b.lt	LBB0_6
; %bb.17:
	mov	w21, #1
	b	LBB0_3
LBB0_18:
                                        ; kill: def $w1 killed $w1 killed $x1 def $x1
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link address reply parse length fail %d %d\n"

	.no_dead_strip	_drm_dp_sideband_parse_link_address
.subsections_via_symbols
