	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_led_probe
_lp8788_led_probe:                      ## @lp8788_led_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, 24(%rax)
	movq	_MAX_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_lp8788_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	_DEFAULT_LED_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	movq	%rax, (%r15)
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_lp8788_led_init_device
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_BRIGHTNESS,4,2             ## @MAX_BRIGHTNESS
	.comm	_lp8788_brightness_set,4,2      ## @lp8788_brightness_set
	.comm	_DEFAULT_LED_NAME,8,3           ## @DEFAULT_LED_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led init device err: %d\n"

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

	.no_dead_strip	_lp8788_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_led_probe
_lp8788_led_probe:                      ; @lp8788_led_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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
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_4
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #24]
Lloh3:
	adrp	x8, _MAX_BRIGHTNESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _lp8788_brightness_set@GOTPAGE
Lloh7:
	ldr	x9, [x9, _lp8788_brightness_set@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x21, [x8]
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbnz	x8, LBB0_7
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_5:
	mov	x21, #0
LBB0_6:
Lloh12:
	adrp	x8, _DEFAULT_LED_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFAULT_LED_NAME@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_7:
	mov	x0, x20
	str	x8, [x0], #16
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x21
	bl	_lp8788_led_init_device
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.10:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_12:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_BRIGHTNESS,4,2             ; @MAX_BRIGHTNESS
	.comm	_lp8788_brightness_set,4,2      ; @lp8788_brightness_set
	.comm	_DEFAULT_LED_NAME,8,3           ; @DEFAULT_LED_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led init device err: %d\n"

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

	.no_dead_strip	_lp8788_led_probe
.subsections_via_symbols
