	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_probe_oui
_radeon_dp_probe_oui:                   ## @radeon_dp_probe_oui
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_DP_DOWN_STREAM_PORT_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_DP_OUI_SUPPORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_DP_SINK_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_radeon_dp_aux_native_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_3:
	movq	_DP_BRANCH_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_radeon_dp_aux_native_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DOWN_STREAM_PORT_COUNT,8,3  ## @DP_DOWN_STREAM_PORT_COUNT
	.comm	_DP_OUI_SUPPORT,4,2             ## @DP_OUI_SUPPORT
	.comm	_DP_SINK_OUI,4,2                ## @DP_SINK_OUI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sink OUI: %02hx%02hx%02hx\n"

	.comm	_DP_BRANCH_OUI,4,2              ## @DP_BRANCH_OUI
L_.str.1:                               ## @.str.1
	.asciz	"Branch OUI: %02hx%02hx%02hx\n"

	.no_dead_strip	_radeon_dp_probe_oui
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_probe_oui
_radeon_dp_probe_oui:                   ; @radeon_dp_probe_oui
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DP_DOWN_STREAM_PORT_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_DOWN_STREAM_PORT_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _DP_OUI_SUPPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_OUI_SUPPORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh9:
	adrp	x8, _DP_SINK_OUI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_SINK_OUI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #3
	mov	w4, #0
	bl	_radeon_dp_aux_native_read
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w1, w2, [sp, #12]
	ldr	w3, [sp, #20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_3:
Lloh14:
	adrp	x8, _DP_BRANCH_OUI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DP_BRANCH_OUI@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #3
	mov	w4, #0
	bl	_radeon_dp_aux_native_read
	cbz	x0, LBB0_5
; %bb.4:
	ldp	w1, w2, [sp, #12]
	ldr	w3, [sp, #20]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_5:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DOWN_STREAM_PORT_COUNT,8,3  ; @DP_DOWN_STREAM_PORT_COUNT
	.comm	_DP_OUI_SUPPORT,4,2             ; @DP_OUI_SUPPORT
	.comm	_DP_SINK_OUI,4,2                ; @DP_SINK_OUI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sink OUI: %02hx%02hx%02hx\n"

	.comm	_DP_BRANCH_OUI,4,2              ; @DP_BRANCH_OUI
l_.str.1:                               ; @.str.1
	.asciz	"Branch OUI: %02hx%02hx%02hx\n"

	.no_dead_strip	_radeon_dp_probe_oui
.subsections_via_symbols
