	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_dp_probe_oui
_nouveau_dp_probe_oui:                  ## @nouveau_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	_DP_DOWN_STREAM_PORT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DP_OUI_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx,%rax,4)
	je	LBB0_5
## %bb.1:
	movq	_DP_SINK_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %ecx
	callq	_nvkm_rdaux
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_DEBUG
LBB0_3:
	movq	_DP_BRANCH_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %ecx
	callq	_nvkm_rdaux
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_DEBUG
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_nouveau_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 nouveau_dp_probe_oui
_nouveau_dp_probe_oui:                  ; @nouveau_dp_probe_oui
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_nouveau_drm
Lloh3:
	adrp	x8, _DP_DOWN_STREAM_PORT_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_DOWN_STREAM_PORT_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, 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	x0, x20
	mov	w3, #3
	bl	_nvkm_rdaux
	cbnz	w0, LBB0_3
; %bb.2:
	ldp	w2, w3, [sp, #12]
	ldr	w4, [sp, #20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NV_DEBUG
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, x20
	mov	w3, #3
	bl	_nvkm_rdaux
	cbnz	w0, LBB0_5
; %bb.4:
	ldp	w2, w3, [sp, #12]
	ldr	w4, [sp, #20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NV_DEBUG
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, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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	_nouveau_dp_probe_oui
.subsections_via_symbols
