	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ge_b850v3_lvds_detect
_ge_b850v3_lvds_detect:                 ## @ge_b850v3_lvds_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ge_b850v3_lvds_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_STDP4028_DPTX_STS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movq	_STDP4028_CON_STATE_CONNECTED@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ge_b850v3_lvds_ptr,8,3         ## @ge_b850v3_lvds_ptr
	.comm	_STDP4028_DPTX_STS_REG,4,2      ## @STDP4028_DPTX_STS_REG
	.comm	_STDP4028_CON_STATE_CONNECTED,8,3 ## @STDP4028_CON_STATE_CONNECTED
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.no_dead_strip	_ge_b850v3_lvds_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ge_b850v3_lvds_detect
_ge_b850v3_lvds_detect:                 ; @ge_b850v3_lvds_detect
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ge_b850v3_lvds_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ge_b850v3_lvds_ptr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _STDP4028_DPTX_STS_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STDP4028_DPTX_STS_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
Lloh6:
	adrp	x8, _STDP4028_CON_STATE_CONNECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STDP4028_CON_STATE_CONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh10:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh11:
	adrp	x10, _connector_status_disconnected@GOTPAGE
Lloh12:
	ldr	x10, [x10, _connector_status_disconnected@GOTPAGEOFF]
Lloh13:
	adrp	x11, _connector_status_unknown@GOTPAGE
Lloh14:
	ldr	x11, [x11, _connector_status_unknown@GOTPAGEOFF]
	cmp	x0, #0
	csel	x10, x10, x11, eq
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ge_b850v3_lvds_ptr,8,3         ; @ge_b850v3_lvds_ptr
	.comm	_STDP4028_DPTX_STS_REG,4,2      ; @STDP4028_DPTX_STS_REG
	.comm	_STDP4028_CON_STATE_CONNECTED,8,3 ; @STDP4028_CON_STATE_CONNECTED
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.no_dead_strip	_ge_b850v3_lvds_detect
.subsections_via_symbols
