	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc358764_attach
_tc358764_attach:                       ## @tc358764_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
	movq	%rdi, %r12
	callq	_bridge_to_tc358764
	movq	%rax, %rbx
	movq	8(%r12), %r15
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tc358764_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	_tc358764_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_drm_connector_attach_encoder
	movl	16(%rbx), %edi
	movq	%rbx, %rsi
	callq	_drm_panel_attach
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_drm_fb_helper_add_one_connector
	movq	%rbx, %rdi
	callq	_drm_connector_register
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_tc358764_connector_funcs,4,2   ## @tc358764_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize connector\n"

	.comm	_tc358764_connector_helper_funcs,4,2 ## @tc358764_connector_helper_funcs
	.no_dead_strip	_tc358764_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc358764_attach
_tc358764_attach:                       ; @tc358764_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
	mov	x22, x0
	bl	_bridge_to_tc358764
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
	ldr	x21, [x22, #8]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh3:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _tc358764_connector_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _tc358764_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_connector_init
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x1, _tc358764_connector_helper_funcs@GOTPAGE
Lloh11:
	ldr	x1, [x1, _tc358764_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
	ldr	w1, [x22]
	mov	x0, x19
	bl	_drm_connector_attach_encoder
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_drm_panel_attach
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w0, [x21]
	mov	x1, x19
	bl	_drm_fb_helper_add_one_connector
	mov	x0, x19
	bl	_drm_connector_register
LBB0_3:
	mov	x0, x20
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_tc358764_connector_funcs,4,2   ; @tc358764_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize connector\n"

	.comm	_tc358764_connector_helper_funcs,4,2 ; @tc358764_connector_helper_funcs
	.no_dead_strip	_tc358764_attach
.subsections_via_symbols
