	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6e3ha2_probe
_s6e3ha2_probe:                         ## @s6e3ha2_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
	pushq	%rax
	.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	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r14, 56(%r12)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 48(%r12)
	movl	$4, (%r15)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	40(%r12), %rdi
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_ARRAY_SIZE
	movq	40(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r12), %rdi
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r12), %rdi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.7(%rip), %rdi
	movq	_s6e3ha2_bl_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_backlight_device_register
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rdi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	_S6E3HA2_MAX_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	movq	_S6E3HA2_DEFAULT_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_FB_BLANK_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	%r12, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_drm_panel_init
	movq	%r14, 16(%r12)
	movq	_s6e3ha2_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r13, %rdi
	callq	_drm_panel_add
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	callq	_mipi_dsi_attach
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
LBB0_15:
	movq	(%r12), %rdi
	callq	_backlight_device_unregister
	jmp	LBB0_16
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdd3"

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

L_.str.2:                               ## @.str.2
	.asciz	"failed to get regulators: %d\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"cannot get reset-gpios %ld\n"

L_.str.5:                               ## @.str.5
	.asciz	"enable"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.6:                               ## @.str.6
	.asciz	"cannot get enable-gpios %ld\n"

L_.str.7:                               ## @.str.7
	.asciz	"s6e3ha2"

	.comm	_s6e3ha2_bl_ops,4,2             ## @s6e3ha2_bl_ops
L_.str.8:                               ## @.str.8
	.asciz	"failed to register backlight device\n"

	.comm	_S6E3HA2_MAX_BRIGHTNESS,4,2     ## @S6E3HA2_MAX_BRIGHTNESS
	.comm	_S6E3HA2_DEFAULT_BRIGHTNESS,4,2 ## @S6E3HA2_DEFAULT_BRIGHTNESS
	.comm	_FB_BLANK_POWERDOWN,4,2         ## @FB_BLANK_POWERDOWN
	.comm	_s6e3ha2_drm_funcs,4,2          ## @s6e3ha2_drm_funcs
	.no_dead_strip	_s6e3ha2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6e3ha2_probe
_s6e3ha2_probe:                         ; @s6e3ha2_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	x20, x0, #12
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mipi_dsi_set_drvdata
	str	x20, [x19, #56]
	mov	x0, x20
	bl	_of_device_get_match_data
	str	w0, [x19, #48]
	mov	w8, #4
	str	w8, [x21]
Lloh3:
	adrp	x8, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	ldr	x0, [x19, #40]
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x19, #40]
	mov	x0, x20
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh13:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #32]
	b	LBB0_11
LBB0_4:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_5:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	mov	x0, x22
	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_7:
Lloh25:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #24]
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh34:
	adrp	x3, _s6e3ha2_bl_ops@GOTPAGE
Lloh35:
	ldr	x3, [x3, _s6e3ha2_bl_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x19
	mov	x4, #0
	bl	_backlight_device_register
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
LBB0_11:
	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_12:
Lloh38:
	adrp	x8, _S6E3HA2_MAX_BRIGHTNESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _S6E3HA2_MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh41:
	adrp	x8, _S6E3HA2_DEFAULT_BRIGHTNESS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _S6E3HA2_DEFAULT_BRIGHTNESS@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x10, _FB_BLANK_POWERDOWN@GOTPAGE
Lloh45:
	ldr	x10, [x10, _FB_BLANK_POWERDOWN@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	add	x23, x19, #8
	mov	x0, x23
	bl	_drm_panel_init
Lloh47:
	adrp	x8, _s6e3ha2_drm_funcs@GOTPAGE
Lloh48:
	ldr	x8, [x8, _s6e3ha2_drm_funcs@GOTPAGEOFF]
	stp	x8, x20, [x19, #8]
	mov	x0, x23
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_mipi_dsi_attach
	mov	x22, x0
	tbz	w0, #31, LBB0_6
; %bb.14:
	mov	x0, x23
	bl	_drm_panel_remove
	b	LBB0_16
LBB0_15:
	mov	x22, x0
LBB0_16:
	ldr	x0, [x19]
	bl	_backlight_device_unregister
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdd3"

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

l_.str.2:                               ; @.str.2
	.asciz	"failed to get regulators: %d\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"cannot get reset-gpios %ld\n"

l_.str.5:                               ; @.str.5
	.asciz	"enable"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.6:                               ; @.str.6
	.asciz	"cannot get enable-gpios %ld\n"

l_.str.7:                               ; @.str.7
	.asciz	"s6e3ha2"

	.comm	_s6e3ha2_bl_ops,4,2             ; @s6e3ha2_bl_ops
l_.str.8:                               ; @.str.8
	.asciz	"failed to register backlight device\n"

	.comm	_S6E3HA2_MAX_BRIGHTNESS,4,2     ; @S6E3HA2_MAX_BRIGHTNESS
	.comm	_S6E3HA2_DEFAULT_BRIGHTNESS,4,2 ; @S6E3HA2_DEFAULT_BRIGHTNESS
	.comm	_FB_BLANK_POWERDOWN,4,2         ; @FB_BLANK_POWERDOWN
	.comm	_s6e3ha2_drm_funcs,4,2          ; @s6e3ha2_drm_funcs
	.no_dead_strip	_s6e3ha2_probe
.subsections_via_symbols
