	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_sideband_parse_reply
_drm_dp_sideband_parse_reply:           ## @drm_dp_sideband_parse_reply
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	(%r14), %rsi
	movl	(%rsi), %eax
	shrl	$7, %eax
	andl	$1, %eax
	movl	%eax, (%r15)
	movl	(%rsi), %ebx
	andl	$127, %ebx
	movl	%ebx, 4(%r15)
	movq	_DP_SIDEBAND_REPLY_NAK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	16(%r15), %edi
	addq	$4, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	68(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	72(%rax), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	callq	_drm_dp_mst_req_type_str
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DRM_ERROR
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SIDEBAND_REPLY_NAK,4,2      ## @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got unknown reply 0x%02x (%s)\n"

	.no_dead_strip	_drm_dp_sideband_parse_reply
.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_reply
_drm_dp_sideband_parse_reply:           ; @drm_dp_sideband_parse_reply
	.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
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	x8, [x20]
	ldr	w9, [x8]
	ubfx	w9, w9, #7, #1
	str	w9, [x19]
	ldr	w10, [x8]
	and	w21, w10, #0x7f
	str	w21, [x19, #4]
Lloh0:
	adrp	x10, _DP_SIDEBAND_REPLY_NAK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DP_SIDEBAND_REPLY_NAK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	add	x1, x8, #4
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	w9, [x8, #68]
	str	w9, [x19, #8]
	ldr	w8, [x8, #72]
	str	w8, [x19, #12]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_drm_dp_mst_req_type_str
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_ERROR
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_SIDEBAND_REPLY_NAK,4,2      ; @DP_SIDEBAND_REPLY_NAK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got unknown reply 0x%02x (%s)\n"

	.no_dead_strip	_drm_dp_sideband_parse_reply
.subsections_via_symbols
