	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc358764_probe
_tc358764_probe:                        ## @tc358764_probe
	.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, %r15
	leaq	12(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r14, 16(%r12)
	movl	$4, (%r15)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movq	_MIPI_DSI_MODE_VIDEO_BURST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MIPI_DSI_MODE_VIDEO_AUTO_VERT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MIPI_DSI_MODE_LPM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	%r12, %rdi
	callq	_tc358764_parse_dt
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_tc358764_configure_regulators
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_tc358764_bridge_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movl	12(%r15), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_drm_bridge_add
	movq	%r15, %rdi
	callq	_mipi_dsi_attach
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_drm_bridge_remove
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ## @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ## @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_AUTO_VERT,4,2 ## @MIPI_DSI_MODE_VIDEO_AUTO_VERT
	.comm	_MIPI_DSI_MODE_LPM,4,2          ## @MIPI_DSI_MODE_LPM
	.comm	_tc358764_bridge_funcs,4,2      ## @tc358764_bridge_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to attach dsi\n"

	.no_dead_strip	_tc358764_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc358764_probe
_tc358764_probe:                        ; @tc358764_probe
	.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, x0
	add	x19, x0, #12
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mipi_dsi_set_drvdata
	mov	w8, #4
	str	w8, [x20]
Lloh3:
	adrp	x8, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_AUTO_VERT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_AUTO_VERT@GOTPAGEOFF]
	str	x19, [x21, #16]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _MIPI_DSI_MODE_LPM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MIPI_DSI_MODE_LPM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #4]
	mov	x0, x21
	bl	_tc358764_parse_dt
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_tc358764_configure_regulators
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh18:
	adrp	x8, _tc358764_bridge_funcs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tc358764_bridge_funcs@GOTPAGEOFF]
	str	x8, [x21, #8]
	ldr	w8, [x20, #12]
	str	w8, [x21]
	mov	x0, x21
	bl	_drm_bridge_add
	mov	x0, x20
	bl	_mipi_dsi_attach
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_drm_bridge_remove
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_5:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	mov	x22, x0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ; @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ; @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_AUTO_VERT,4,2 ; @MIPI_DSI_MODE_VIDEO_AUTO_VERT
	.comm	_MIPI_DSI_MODE_LPM,4,2          ; @MIPI_DSI_MODE_LPM
	.comm	_tc358764_bridge_funcs,4,2      ; @tc358764_bridge_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to attach dsi\n"

	.no_dead_strip	_tc358764_probe
.subsections_via_symbols
