	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8860_probe
_lp8860_probe:                          ## @lp8860_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_get_next_available_child
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	movl	%eax, 4(%r12)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	48(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	$0, 40(%r12)
LBB0_8:
	movq	%r14, 32(%r12)
	movq	_lp8860_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	_lp8860_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	16(%r12), %rdi
	jmp	LBB0_12
LBB0_10:
	movq	_lp8860_eeprom_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	8(%r12), %rdi
LBB0_12:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r12, %rdi
	callq	_lp8860_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.17:
	movq	%r15, %rdi
	callq	_of_fwnode_handle
	movl	%eax, -36(%rbp)
	movq	_LP8860_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devm_led_classdev_register_ext
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linux,default-trigger"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get enable gpio: %d\n"

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

	.comm	_lp8860_brightness_set,4,2      ## @lp8860_brightness_set
	.comm	_lp8860_regmap_config,4,2       ## @lp8860_regmap_config
L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_lp8860_eeprom_regmap_config,4,2 ## @lp8860_eeprom_regmap_config
	.comm	_LP8860_NAME,4,2                ## @LP8860_NAME
L_.str.5:                               ## @.str.5
	.asciz	":display_cluster"

L_.str.6:                               ## @.str.6
	.asciz	"led register err: %d\n"

	.no_dead_strip	_lp8860_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8860_probe
_lp8860_probe:                          ; @lp8860_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	bl	_of_get_next_available_child
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	str	w0, [x20, #4]
Lloh5:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_7:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	str	xzr, [x20, #40]
LBB0_9:
	str	x19, [x20, #32]
Lloh18:
	adrp	x8, _lp8860_brightness_set@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lp8860_brightness_set@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	add	x0, x20, #24
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh21:
	adrp	x1, _lp8860_regmap_config@GOTPAGE
Lloh22:
	ldr	x1, [x1, _lp8860_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #16]
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x1, _lp8860_eeprom_regmap_config@GOTPAGE
Lloh24:
	ldr	x1, [x1, _lp8860_eeprom_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.12:
	ldr	x0, [x20, #8]
LBB0_13:
	bl	_PTR_ERR
	mov	x22, x0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	mov	x0, x20
	bl	_lp8860_init
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.17:
	mov	x0, x21
	bl	_of_fwnode_handle
Lloh27:
	adrp	x8, _LP8860_NAME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LP8860_NAME@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #8]
Lloh30:
	adrp	x8, l_.str.5@PAGE
Lloh31:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_devm_led_classdev_register_ext
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.18:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linux,default-trigger"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get enable gpio: %d\n"

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

	.comm	_lp8860_brightness_set,4,2      ; @lp8860_brightness_set
	.comm	_lp8860_regmap_config,4,2       ; @lp8860_regmap_config
l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_lp8860_eeprom_regmap_config,4,2 ; @lp8860_eeprom_regmap_config
	.comm	_LP8860_NAME,4,2                ; @LP8860_NAME
l_.str.5:                               ; @.str.5
	.asciz	":display_cluster"

l_.str.6:                               ; @.str.6
	.asciz	"led register err: %d\n"

	.no_dead_strip	_lp8860_probe
.subsections_via_symbols
