	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_sideband_parse_resource_status_notify
_drm_dp_sideband_parse_resource_status_notify: ## @drm_dp_sideband_parse_resource_status_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rsi
	movl	4(%rsi), %eax
	shrl	$4, %eax
	andl	$15, %eax
	movl	%eax, (%r14)
	movl	8(%rdi), %edx
	movl	$2, %eax
	cmpl	$2, %edx
	jl	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%r14), %edi
	addq	$8, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	8(%rbx), %edx
	movl	$18, %eax
	cmpl	$18, %edx
	jge	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movl	72(%rax), %ecx
	shll	$8, %ecx
	orl	76(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	$1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource status reply parse length fail %d %d\n"

	.no_dead_strip	_drm_dp_sideband_parse_resource_status_notify
.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_resource_status_notify
_drm_dp_sideband_parse_resource_status_notify: ; @drm_dp_sideband_parse_resource_status_notify
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
	ubfx	w9, w9, #4, #4
	str	w9, [x1]
	ldr	w2, [x0, #8]
	cmp	w2, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w1, #2
	b	LBB0_4
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	add	x1, x8, #8
	mov	w2, #16
	bl	_memcpy
	ldr	w2, [x20, #8]
	cmp	w2, #18
	b.ge	LBB0_5
; %bb.3:
	mov	w1, #18
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20]
	ldp	w9, w8, [x8, #72]
	orr	w8, w8, w9, lsl #8
	str	w8, [x19, #4]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource status reply parse length fail %d %d\n"

	.no_dead_strip	_drm_dp_sideband_parse_resource_status_notify
.subsections_via_symbols
