	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6d16d0_probe
_s6d16d0_probe:                         ## @s6d16d0_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, %rbx
	leaq	20(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r14, 24(%r15)
	movl	$2, (%rbx)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movabsq	$82463372503360000, %rax        ## imm = 0x124F800190B2200
	movq	%rax, 4(%rbx)
	movq	_MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPCREL(%rip), %rax
	movq	_MIPI_DSI_MODE_EOT_PACKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movl	20(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 16(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	16(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_10
LBB0_6:
	movq	%r15, %rdi
	callq	_drm_panel_init
	movq	%r14, 8(%r15)
	movq	_s6d16d0_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_drm_panel_add
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_mipi_dsi_attach
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_10
	.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_CLOCK_NON_CONTINUOUS,4,2 ## @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ## @MIPI_DSI_MODE_EOT_PACKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdd1"

L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"failed to request GPIO (%d)\n"

	.comm	_s6d16d0_drm_funcs,4,2          ## @s6d16d0_drm_funcs
	.no_dead_strip	_s6d16d0_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function s6d16d0_probe
lCPI0_0:
	.long	2                               ; 0x2
	.long	420160000                       ; 0x190b2200
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_s6d16d0_probe:                         ; @s6d16d0_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, #20
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mipi_dsi_set_drvdata
	str	x19, [x21, #24]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh5:
	adrp	x8, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh8:
	adrp	x8, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #63488
	movk	w9, #292, lsl #16
	stp	w9, w8, [x20, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x21, #20]
	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
	b	_PTR_ERR
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	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
LBB0_5:
Lloh19:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	w0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x21, #16]
	bl	_PTR_ERR
	mov	x22, x0
Lloh24:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.7:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	b	LBB0_4
LBB0_8:
	mov	x0, x21
	bl	_drm_panel_init
Lloh29:
	adrp	x8, _s6d16d0_drm_funcs@GOTPAGE
Lloh30:
	ldr	x8, [x8, _s6d16d0_drm_funcs@GOTPAGEOFF]
	stp	x8, x19, [x21]
	mov	x0, x21
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_mipi_dsi_attach
	mov	x22, x0
	tbz	w0, #31, LBB0_4
; %bb.10:
	mov	x0, x21
	bl	_drm_panel_remove
	b	LBB0_4
LBB0_11:
	mov	x22, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.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_CLOCK_NON_CONTINUOUS,4,2 ; @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ; @MIPI_DSI_MODE_EOT_PACKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdd1"

l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"failed to request GPIO (%d)\n"

	.comm	_s6d16d0_drm_funcs,4,2          ; @s6d16d0_drm_funcs
	.no_dead_strip	_s6d16d0_probe
.subsections_via_symbols
