	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jh057n_probe
_jh057n_probe:                          ## @jh057n_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, %r15
	leaq	12(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	48(%rbx), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r14, 40(%rbx)
	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_SYNC_PULSE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	%r14, %rdi
	callq	_devm_of_find_backlight
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	32(%rbx), %rdi
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_17
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_17
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	%r14, 8(%rbx)
	movq	_jh057n_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_drm_panel_add
	movq	%r15, %rdi
	callq	_mipi_dsi_attach
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	_default_mode@GOTPCREL(%rip), %rax
	movl	8(%rax), %r12d
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r13d
	movl	8(%r15), %edi
	callq	_mipi_dsi_pixel_format_to_bpp
	movl	(%r15), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_DRM_DEV_INFO
	movq	%rbx, %rdi
	callq	_jh057n_debugfs_init
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%rbx, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"cannot get reset gpio\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_VIDEO_BURST,4,2  ## @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ## @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
L_.str.2:                               ## @.str.2
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"Failed to request vcc regulator: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"iovcc"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to request iovcc regulator: %d\n"

	.comm	_jh057n_drm_funcs,4,2           ## @jh057n_drm_funcs
L_.str.6:                               ## @.str.6
	.asciz	"mipi_dsi_attach failed (%d). Is host ready?\n"

L_.str.7:                               ## @.str.7
	.asciz	"%ux%u@%u %ubpp dsi %udl - ready\n"

	.comm	_default_mode,12,2              ## @default_mode
	.no_dead_strip	_jh057n_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jh057n_probe
_jh057n_probe:                          ; @jh057n_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, 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, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	x0, [x20, #48]
	b	LBB0_7
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_mipi_dsi_set_drvdata
	str	x19, [x20, #40]
	mov	w8, #4
	str	w8, [x21]
Lloh13:
	adrp	x8, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w8, w9, [x21, #4]
	mov	x0, x19
	bl	_devm_of_find_backlight
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x20, #32]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_8:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh27:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.10:
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x20, x0
Lloh34:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.13:
	mov	x8, x20
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_4
LBB0_15:
	mov	x0, x20
	bl	_drm_panel_init
Lloh39:
	adrp	x8, _jh057n_drm_funcs@GOTPAGE
Lloh40:
	ldr	x8, [x8, _jh057n_drm_funcs@GOTPAGEOFF]
	stp	x8, x19, [x20]
	mov	x0, x20
	bl	_drm_panel_add
	mov	x0, x21
	bl	_mipi_dsi_attach
	tbnz	w0, #31, LBB0_17
; %bb.16:
Lloh41:
	adrp	x8, _default_mode@GOTPAGE
Lloh42:
	ldr	x8, [x8, _default_mode@GOTPAGEOFF]
	ldp	w23, w22, [x8, #4]
	ldr	w24, [x8]
	ldr	w0, [x21, #8]
	bl	_mipi_dsi_pixel_format_to_bpp
	mov	x5, x0
	ldr	w6, [x21]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_DRM_DEV_INFO
	mov	x0, x20
	bl	_jh057n_debugfs_init
	mov	w20, #0
	b	LBB0_4
LBB0_17:
	mov	x22, x0
	str	x22, [sp]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	mov	x0, x20
	bl	_drm_panel_remove
	mov	x20, x22
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"cannot get reset gpio\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_VIDEO_BURST,4,2  ; @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ; @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
l_.str.2:                               ; @.str.2
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"Failed to request vcc regulator: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"iovcc"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to request iovcc regulator: %d\n"

	.comm	_jh057n_drm_funcs,4,2           ; @jh057n_drm_funcs
l_.str.6:                               ; @.str.6
	.asciz	"mipi_dsi_attach failed (%d). Is host ready?\n"

l_.str.7:                               ; @.str.7
	.asciz	"%ux%u@%u %ubpp dsi %udl - ready\n"

	.comm	_default_mode,12,2              ; @default_mode
	.no_dead_strip	_jh057n_probe
.subsections_via_symbols
