	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lspcon_detect_vendor
_lspcon_detect_vendor:                  ## @lspcon_detect_vendor
	.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	%rdi, %r14
	callq	_lspcon_to_intel_dp
	movq	%rax, %rbx
	leaq	12(%rax), %r15
	movl	8(%rax), %edi
	callq	_drm_dp_is_branch
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_drm_dp_read_desc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_8:
	callq	_DRM_ERROR
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %eax
	shll	$16, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	8(%rcx), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movq	_LSPCON_VENDOR_MCA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	_LSPCON_VENDOR_PARADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	callq	_DRM_DEBUG_KMS
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't read description\n"

	.comm	_LSPCON_VENDOR_MCA,4,2          ## @LSPCON_VENDOR_MCA
L_.str.1:                               ## @.str.1
	.asciz	"Vendor: Mega Chips\n"

	.comm	_LSPCON_VENDOR_PARADE,4,2       ## @LSPCON_VENDOR_PARADE
L_.str.2:                               ## @.str.2
	.asciz	"Vendor: Parade Tech\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid/Unknown vendor OUI\n"

	.no_dead_strip	_lspcon_detect_vendor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lspcon_detect_vendor
_lspcon_detect_vendor:                  ; @lspcon_detect_vendor
	.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, x0
	bl	_lspcon_to_intel_dp
	mov	x20, x0
	add	x21, x0, #12
	ldr	w0, [x0, #8]
	bl	_drm_dp_is_branch
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_drm_dp_read_desc
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w8, [x8, #8]
	orr	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _LSPCON_VENDOR_MCA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LSPCON_VENDOR_MCA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _LSPCON_VENDOR_PARADE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LSPCON_VENDOR_PARADE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_DRM_DEBUG_KMS
	mov	w0, #1
LBB0_8:
	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
LBB0_9:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't read description\n"

	.comm	_LSPCON_VENDOR_MCA,4,2          ; @LSPCON_VENDOR_MCA
l_.str.1:                               ; @.str.1
	.asciz	"Vendor: Mega Chips\n"

	.comm	_LSPCON_VENDOR_PARADE,4,2       ; @LSPCON_VENDOR_PARADE
l_.str.2:                               ; @.str.2
	.asciz	"Vendor: Parade Tech\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid/Unknown vendor OUI\n"

	.no_dead_strip	_lspcon_detect_vendor
.subsections_via_symbols
