	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ge_b850v3_lvds_attach
_ge_b850v3_lvds_attach:                 ## @ge_b850v3_lvds_attach
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_ge_b850v3_lvds_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r14
	addq	$8, %rbx
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_ge_b850v3_lvds_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movl	4(%r15), %edi
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ge_b850v3_lvds_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_drm_connector_attach_encoder
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_STDP4028_IRQ_OUT_CONF_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STDP4028_DPTX_DP_IRQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_word_data
	movq	_STDP4028_DPTX_IRQ_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STDP4028_DPTX_IRQ_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_word_data
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ge_b850v3_lvds_ptr,8,3         ## @ge_b850v3_lvds_ptr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parent encoder object not found"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_ge_b850v3_lvds_connector_helper_funcs,4,2 ## @ge_b850v3_lvds_connector_helper_funcs
	.comm	_ge_b850v3_lvds_connector_funcs,4,2 ## @ge_b850v3_lvds_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ## @DRM_MODE_CONNECTOR_DisplayPort
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize connector with drm\n"

	.comm	_STDP4028_IRQ_OUT_CONF_REG,4,2  ## @STDP4028_IRQ_OUT_CONF_REG
	.comm	_STDP4028_DPTX_DP_IRQ_EN,4,2    ## @STDP4028_DPTX_DP_IRQ_EN
	.comm	_STDP4028_DPTX_IRQ_EN_REG,4,2   ## @STDP4028_DPTX_IRQ_EN_REG
	.comm	_STDP4028_DPTX_IRQ_CONFIG,4,2   ## @STDP4028_DPTX_IRQ_CONFIG
	.no_dead_strip	_ge_b850v3_lvds_attach
.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_attach
_ge_b850v3_lvds_attach:                 ; @ge_b850v3_lvds_attach
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ge_b850v3_lvds_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ge_b850v3_lvds_ptr@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x19, [x21], #8
Lloh3:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh6:
	adrp	x1, _ge_b850v3_lvds_connector_helper_funcs@GOTPAGE
Lloh7:
	ldr	x1, [x1, _ge_b850v3_lvds_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_connector_helper_add
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x2, _ge_b850v3_lvds_connector_funcs@GOTPAGE
Lloh12:
	ldr	x2, [x2, _ge_b850v3_lvds_connector_funcs@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_connector_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_drm_connector_attach_encoder
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _STDP4028_IRQ_OUT_CONF_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STDP4028_IRQ_OUT_CONF_REG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _STDP4028_DPTX_DP_IRQ_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STDP4028_DPTX_DP_IRQ_EN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_word_data
Lloh26:
	adrp	x8, _STDP4028_DPTX_IRQ_EN_REG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STDP4028_DPTX_IRQ_EN_REG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _STDP4028_DPTX_IRQ_CONFIG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STDP4028_DPTX_IRQ_CONFIG@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_word_data
LBB0_6:
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ge_b850v3_lvds_ptr,8,3         ; @ge_b850v3_lvds_ptr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parent encoder object not found"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_ge_b850v3_lvds_connector_helper_funcs,4,2 ; @ge_b850v3_lvds_connector_helper_funcs
	.comm	_ge_b850v3_lvds_connector_funcs,4,2 ; @ge_b850v3_lvds_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,4,2 ; @DRM_MODE_CONNECTOR_DisplayPort
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize connector with drm\n"

	.comm	_STDP4028_IRQ_OUT_CONF_REG,4,2  ; @STDP4028_IRQ_OUT_CONF_REG
	.comm	_STDP4028_DPTX_DP_IRQ_EN,4,2    ; @STDP4028_DPTX_DP_IRQ_EN
	.comm	_STDP4028_DPTX_IRQ_EN_REG,4,2   ; @STDP4028_DPTX_IRQ_EN_REG
	.comm	_STDP4028_DPTX_IRQ_CONFIG,4,2   ; @STDP4028_DPTX_IRQ_CONFIG
	.no_dead_strip	_ge_b850v3_lvds_attach
.subsections_via_symbols
