	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function truly_nt35597_probe
_truly_nt35597_probe:                   ## @truly_nt35597_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	12(%rdi), %r14
	movq	l___const.truly_nt35597_probe.info+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movups	l___const.truly_nt35597_probe.info(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 24(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	(%r14), %edi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_of_graph_get_remote_node
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_mipi_dsi_host_by_node
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_12
## %bb.4:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mipi_dsi_device_register_full
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r14, 16(%r12)
	movq	8(%r12), %rax
	movq	%r13, (%rax)
	movq	8(%r12), %rax
	movq	%r15, 8(%rax)
	movq	%r12, %rdi
	callq	_truly_nt35597_panel_add
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_15:
	movq	%r15, %rdi
	callq	_mipi_dsi_device_unregister
	jmp	LBB0_10
LBB0_16:
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.17:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movl	$4, (%rdi)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_MIPI_DSI_MODE_LPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rdi)
	callq	_mipi_dsi_attach
	testl	%eax, %eax
	js	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	xorl	%ebx, %ebx
	cmpq	%rax, %r13
	jl	LBB0_18
	jmp	LBB0_10
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_21:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r12, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trulynt35597"

	.section	__DATA,__const
	.p2align	3                               ## @__const.truly_nt35597_probe.info
l___const.truly_nt35597_probe.info:
	.quad	L_.str
	.quad	0
	.long	0                               ## 0x0
	.space	4

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"missing device configuration\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"failed to get remote node for dsi1_device\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to find dsi host\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"failed to create dsi device\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to add panel\n"

	.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_LPM,4,2          ## @MIPI_DSI_MODE_LPM
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ## @MIPI_DSI_CLOCK_NON_CONTINUOUS
L_.str.6:                               ## @.str.6
	.asciz	"dsi attach failed i = %d\n"

	.no_dead_strip	_truly_nt35597_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function truly_nt35597_probe
_truly_nt35597_probe:                   ; @truly_nt35597_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	add	x19, x0, #12
Lloh0:
	adrp	x8, l___const.truly_nt35597_probe.info@PAGE
Lloh1:
	add	x8, x8, l___const.truly_nt35597_probe.info@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #24]
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #1
	mov	w2, #-1
	bl	_of_graph_get_remote_node
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
	bl	_of_find_mipi_dsi_host_by_node
	mov	x21, x0
	mov	x0, x23
	bl	_of_node_put
	cbz	x21, LBB0_12
; %bb.4:
	add	x1, sp, #16
	mov	x0, x21
	bl	_mipi_dsi_device_register_full
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.5:
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_9:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	mov	x0, x22
	mov	x1, x20
	bl	_mipi_dsi_set_drvdata
	str	x19, [x20, #16]
	ldr	x8, [x20, #8]
	str	x22, [x8]
	ldr	x8, [x20, #8]
	str	x21, [x8, #8]
	mov	x0, x20
	bl	_truly_nt35597_panel_add
	cbz	w0, LBB0_16
; %bb.14:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_15:
	mov	x0, x21
	bl	_mipi_dsi_device_unregister
	b	LBB0_11
LBB0_16:
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.17:
	mov	x23, #0
	mov	w24, #4
Lloh21:
	adrp	x25, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh23:
	adrp	x26, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh25:
	adrp	x27, _MIPI_DSI_MODE_LPM@GOTPAGE
Lloh26:
	ldr	x27, [x27, _MIPI_DSI_MODE_LPM@GOTPAGEOFF]
Lloh27:
	adrp	x28, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGE
Lloh28:
	ldr	x28, [x28, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	str	w24, [x0]
	ldr	w8, [x25]
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w9, w10, w9
	ldr	w10, [x28]
	orr	w9, w9, w10
	stp	w9, w8, [x0, #4]
	bl	_mipi_dsi_attach
	tbnz	w0, #31, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	mov	w22, #0
	cmp	x23, w0, sxtw
	b.lt	LBB0_18
	b	LBB0_11
LBB0_20:
	mov	w22, #0
	b	LBB0_11
LBB0_21:
	mov	x22, x0
	str	x23, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x20
	bl	_drm_panel_remove
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trulynt35597"

	.section	__DATA,__const
	.p2align	3                               ; @__const.truly_nt35597_probe.info
l___const.truly_nt35597_probe.info:
	.quad	l_.str
	.quad	0
	.long	0                               ; 0x0
	.space	4

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"missing device configuration\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"failed to get remote node for dsi1_device\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to find dsi host\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"failed to create dsi device\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to add panel\n"

	.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_LPM,4,2          ; @MIPI_DSI_MODE_LPM
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ; @MIPI_DSI_CLOCK_NON_CONTINUOUS
l_.str.6:                               ; @.str.6
	.asciz	"dsi attach failed i = %d\n"

	.no_dead_strip	_truly_nt35597_probe
.subsections_via_symbols
