	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_attach
_tfp410_attach:                         ## @tfp410_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, %r14
	callq	_drm_bridge_to_tfp410
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rbx)
	js	LBB0_3
## %bb.4:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_3:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rcx
	movq	_DRM_CONNECTOR_POLL_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_5:
	leaq	8(%rbx), %r15
	movl	%eax, 8(%rbx)
	movq	_tfp410_con_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movl	4(%r14), %edi
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	movq	_tfp410_con_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_drm_connector_init_with_ddc
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	leaq	12(%rbx), %rdi
	addq	$16, %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_drm_connector_attach_encoder
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing encoder\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ## @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_tfp410_con_helper_funcs,4,2    ## @tfp410_con_helper_funcs
	.comm	_tfp410_con_funcs,4,2           ## @tfp410_con_funcs
L_.str.1:                               ## @.str.1
	.asciz	"drm_connector_init() failed: %d\n"

	.no_dead_strip	_tfp410_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_attach
_tfp410_attach:                         ; @tfp410_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_drm_bridge_to_tfp410
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	x8, #0
	csel	w8, w10, w9, lt
	mov	x21, x20
	str	w8, [x21, #8]!
Lloh9:
	adrp	x1, _tfp410_con_helper_funcs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _tfp410_con_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_connector_helper_add
	ldr	w0, [x19, #4]
	ldp	w4, w3, [x21, #16]
Lloh11:
	adrp	x2, _tfp410_con_funcs@GOTPAGE
Lloh12:
	ldr	x2, [x2, _tfp410_con_funcs@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_connector_init_with_ddc
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #20]
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20, #20]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	add	x0, x20, #12
	add	x1, x20, #16
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
	ldr	w1, [x19]
	mov	x0, x21
	bl	_drm_connector_attach_encoder
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing encoder\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ; @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_tfp410_con_helper_funcs,4,2    ; @tfp410_con_helper_funcs
	.comm	_tfp410_con_funcs,4,2           ; @tfp410_con_funcs
l_.str.1:                               ; @.str.1
	.asciz	"drm_connector_init() failed: %d\n"

	.no_dead_strip	_tfp410_attach
.subsections_via_symbols
