	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dsi_host_attach
_tegra_dsi_host_attach:                 ## @tegra_dsi_host_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_host_to_tegra
	movq	%rax, %rbx
	movl	12(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 32(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movl	20(%rbx), %r14d
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_tegra_dsi_ganged_setup
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rbx)
	jne	LBB0_9
## %bb.4:
	movl	(%r15), %edi
	callq	_of_drm_find_panel
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 8(%rbx)
	jmp	LBB0_9
LBB0_2:
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rsi
	callq	_drm_panel_attach
	movq	(%rbx), %rdi
	callq	_drm_helper_hpd_irq_event
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attaching dual-channel device %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set up ganged mode: %d\n"

	.no_dead_strip	_tegra_dsi_host_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dsi_host_attach
_tegra_dsi_host_attach:                 ; @tegra_dsi_host_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	x20, x1
	bl	_host_to_tegra
	mov	x19, x0
	ldr	w8, [x20, #12]
	str	w8, [x0, #40]
	ldur	d0, [x20, #4]
	str	d0, [x0, #32]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w21, [x19, #20]
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	x0, x19
	bl	_tegra_dsi_ganged_setup
	tbnz	w0, #31, LBB0_6
LBB0_2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
LBB0_3:
	mov	w21, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	bl	_of_drm_find_panel
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #0
	str	xzr, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x21, x0
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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_8:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.9:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.10:
	mov	x1, x19
	bl	_drm_panel_attach
	ldr	x0, [x19]
	bl	_drm_helper_hpd_irq_event
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attaching dual-channel device %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set up ganged mode: %d\n"

	.no_dead_strip	_tegra_dsi_host_attach
.subsections_via_symbols
