	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps8622_probe
_ps8622_probe:                          ## @ps8622_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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r14), %edi
	leaq	72(%rax), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_drm_of_find_panel_or_bridge
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	%r14, 64(%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 56(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	$0, 56(%r12)
LBB0_5:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	48(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_8:
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_19:
	movl	%ebx, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	(%r14), %edi
	leaq	8(%r12), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	8(%r12), %rax
	cmpq	(%r12), %rax
	jle	LBB0_14
## %bb.12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_13:
	movq	(%r12), %rax
	movq	%rax, 8(%r12)
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_find_property
	testl	%eax, %eax
	je	LBB0_15
LBB0_18:
	movq	%r12, %rdi
	addq	$16, %rdi
	movq	_ps8622_bridge_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movl	(%r14), %eax
	movl	%eax, 16(%r12)
	callq	_drm_bridge_add
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	jmp	LBB0_19
LBB0_15:
	leaq	L_.str.9(%rip), %rdi
	movq	_ps8622_backlight_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_backlight_device_register
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.10(%rip), %rdi
	callq	_DRM_ERROR
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movq	$0, 32(%r12)
	jmp	LBB0_20
LBB0_17:
	movq	_PS8622_MAX_BRIGHTNESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, (%rcx)
	jmp	LBB0_18
	.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	"vdd12"

L_.str.1:                               ## @.str.1
	.asciz	"no 1.2v regulator found for PS8622\n"

L_.str.2:                               ## @.str.2
	.asciz	"sleep"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"cannot get gpio_slp %d\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"cannot get gpio_rst %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"lane-count"

L_.str.7:                               ## @.str.7
	.asciz	"lane-count property is too high,using max_lane_count\n"

L_.str.8:                               ## @.str.8
	.asciz	"use-external-pwm"

L_.str.9:                               ## @.str.9
	.asciz	"ps8622-backlight"

	.comm	_ps8622_backlight_ops,4,2       ## @ps8622_backlight_ops
L_.str.10:                              ## @.str.10
	.asciz	"failed to register backlight\n"

	.comm	_PS8622_MAX_BRIGHTNESS,8,3      ## @PS8622_MAX_BRIGHTNESS
	.comm	_ps8622_bridge_funcs,4,2        ## @ps8622_bridge_funcs
	.no_dead_strip	_ps8622_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps8622_probe
_ps8622_probe:                          ; @ps8622_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	add	x3, x20, #72
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_drm_of_find_panel_or_bridge
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.2:
	str	x19, [x20, #64]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	str	xzr, [x20, #56]
LBB0_4:
Lloh7:
	adrp	x22, _GPIOD_OUT_HIGH@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GPIOD_OUT_HIGH@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
	ldr	w2, [x22]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_10:
	mov	x0, x22
LBB0_11:
	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_12:
	ldr	x8, [x21]
	mov	x2, x20
	str	x8, [x2], #8
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_property_read_u32
	cbnz	x0, LBB0_15
; %bb.13:
	ldp	x9, x8, [x20]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.14:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_15:
	ldr	x8, [x20]
	str	x8, [x20, #8]
LBB0_16:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_18
LBB0_17:
Lloh26:
	adrp	x8, _ps8622_bridge_funcs@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ps8622_bridge_funcs@GOTPAGEOFF]
	str	x8, [x20, #24]
	ldr	w8, [x19]
	mov	x0, x20
	str	w8, [x0, #16]!
	bl	_drm_bridge_add
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	w22, #0
	b	LBB0_10
LBB0_18:
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh30:
	adrp	x3, _ps8622_backlight_ops@GOTPAGE
Lloh31:
	ldr	x3, [x3, _ps8622_backlight_ops@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x20
	mov	x4, #0
	bl	_backlight_device_register
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh32:
	adrp	x0, l_.str.10@PAGE
Lloh33:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	str	xzr, [x20, #32]
	b	LBB0_11
LBB0_20:
Lloh34:
	adrp	x8, _PS8622_MAX_BRIGHTNESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PS8622_MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
	stp	x8, x8, [x9]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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	"vdd12"

l_.str.1:                               ; @.str.1
	.asciz	"no 1.2v regulator found for PS8622\n"

l_.str.2:                               ; @.str.2
	.asciz	"sleep"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"cannot get gpio_slp %d\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"cannot get gpio_rst %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"lane-count"

l_.str.7:                               ; @.str.7
	.asciz	"lane-count property is too high,using max_lane_count\n"

l_.str.8:                               ; @.str.8
	.asciz	"use-external-pwm"

l_.str.9:                               ; @.str.9
	.asciz	"ps8622-backlight"

	.comm	_ps8622_backlight_ops,4,2       ; @ps8622_backlight_ops
l_.str.10:                              ; @.str.10
	.asciz	"failed to register backlight\n"

	.comm	_PS8622_MAX_BRIGHTNESS,8,3      ; @PS8622_MAX_BRIGHTNESS
	.comm	_ps8622_bridge_funcs,4,2        ; @ps8622_bridge_funcs
	.no_dead_strip	_ps8622_probe
.subsections_via_symbols
