	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm860x_led_probe
_pm860x_led_probe:                      ## @pm860x_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	%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, %r13
	leaq	4(%rdi), %r15
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movl	28(%rbx), %edi
	movq	_MFD_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movslq	(%r13), %rax
	cmpq	$5, %rax
	ja	LBB0_9
## %bb.8:
	leaq	l_switch.table.pm860x_led_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_reltable.pm860x_led_probe(%rip), %rdx
	movslq	(%rdx,%rax,4), %rsi
	addq	%rdx, %rsi
	movq	(%rcx), %rax
	movq	%rax, 56(%rbx)
	movl	28(%rbx), %edi
	callq	_sprintf
LBB0_9:
	movq	%r14, 48(%rbx)
	movq	(%r14), %rax
	movq	_CHIP_PM8606@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	12(%r14,%rdx,4), %eax
	movl	%eax, 44(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_pm860x_led_dt_init
	testq	%rax, %rax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
LBB0_12:
	movq	$0, 32(%rbx)
	movl	28(%rbx), %eax
	leaq	8(%rbx), %r12
	movl	%eax, 16(%rbx)
	movq	_pm860x_led_set@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	movl	8(%r14), %edi
	movq	%r12, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pm860x_led_set
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_REG,4,2             ## @IORESOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control"

L_.str.1:                               ## @.str.1
	.asciz	"No REG resource for control\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"blink"

L_.str.3:                               ## @.str.3
	.asciz	"No REG resource for blink\n"

	.comm	_MFD_NAME_SIZE,4,2              ## @MFD_NAME_SIZE
	.comm	_LED1_BLINK_EN,8,3              ## @LED1_BLINK_EN
L_.str.4:                               ## @.str.4
	.asciz	"led0-red"

L_.str.5:                               ## @.str.5
	.asciz	"led0-green"

L_.str.6:                               ## @.str.6
	.asciz	"led0-blue"

	.comm	_LED2_BLINK_EN,8,3              ## @LED2_BLINK_EN
L_.str.7:                               ## @.str.7
	.asciz	"led1-red"

L_.str.8:                               ## @.str.8
	.asciz	"led1-green"

L_.str.9:                               ## @.str.9
	.asciz	"led1-blue"

	.comm	_CHIP_PM8606,8,3                ## @CHIP_PM8606
L_.str.10:                              ## @.str.10
	.asciz	"Failed to register LED: %d\n"

	.no_dead_strip	_pm860x_led_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pm860x_led_probe
l_switch.table.pm860x_led_probe:
	.quad	_LED1_BLINK_EN
	.quad	_LED1_BLINK_EN
	.quad	_LED1_BLINK_EN
	.quad	_LED2_BLINK_EN
	.quad	_LED2_BLINK_EN
	.quad	_LED2_BLINK_EN

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.pm860x_led_probe
l_reltable.pm860x_led_probe:
	.long	L_.str.4-l_reltable.pm860x_led_probe
	.long	L_.str.5-l_reltable.pm860x_led_probe
	.long	L_.str.6-l_reltable.pm860x_led_probe
	.long	L_.str.7-l_reltable.pm860x_led_probe
	.long	L_.str.8-l_reltable.pm860x_led_probe
	.long	L_.str.9-l_reltable.pm860x_led_probe

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm860x_led_probe
_pm860x_led_probe:                      ; @pm860x_led_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	x22, x0
	mov	x19, x0
	ldr	w0, [x19, #4]!
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x24, _IORESOURCE_REG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IORESOURCE_REG@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x21, #68]
	ldr	w1, [x24]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w8, [x0]
	str	w8, [x21, #64]
	ldr	w0, [x21, #28]
Lloh9:
	adrp	x8, _MFD_NAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MFD_NAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldrsw	x8, [x22]
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.4:
	lsl	x8, x8, #3
Lloh12:
	adrp	x9, l_switch.table.pm860x_led_probe@PAGE
Lloh13:
	add	x9, x9, l_switch.table.pm860x_led_probe@PAGEOFF
	ldr	x9, [x9, x8]
Lloh14:
	adrp	x10, l_switch.table.pm860x_led_probe.11@PAGE
Lloh15:
	add	x10, x10, l_switch.table.pm860x_led_probe.11@PAGEOFF
	ldr	x1, [x10, x8]
	ldr	x8, [x9]
	str	x8, [x21, #56]
	ldr	w0, [x21, #28]
	bl	_sprintf
LBB0_5:
	str	x20, [x21, #48]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _CHIP_PM8606@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHIP_PM8606@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	mov	w10, #12
	mov	w11, #16
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w8, [x20, x8]
	str	w8, [x21, #44]
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_pm860x_led_dt_init
	cbz	x0, LBB0_8
; %bb.6:
	cbz	x23, LBB0_8
; %bb.7:
	ldr	w8, [x23]
	str	w8, [x21, #40]
LBB0_8:
Lloh19:
	adrp	x8, _pm860x_led_set@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pm860x_led_set@GOTPAGEOFF]
	str	x8, [x21, #8]!
	str	xzr, [x21, #24]
	ldr	w8, [x21, #20]
	str	w8, [x21, #8]
	add	x0, x21, #16
	bl	_mutex_init
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_16
; %bb.9:
	mov	x0, x21
	mov	w1, #0
	bl	_pm860x_led_set
	mov	w20, #0
	b	LBB0_15
LBB0_10:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	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_16:
	mov	x20, x0
	str	x20, [sp]
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_REG,4,2             ; @IORESOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control"

l_.str.1:                               ; @.str.1
	.asciz	"No REG resource for control\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"blink"

l_.str.3:                               ; @.str.3
	.asciz	"No REG resource for blink\n"

	.comm	_MFD_NAME_SIZE,4,2              ; @MFD_NAME_SIZE
	.comm	_LED1_BLINK_EN,8,3              ; @LED1_BLINK_EN
l_.str.4:                               ; @.str.4
	.asciz	"led0-red"

l_.str.5:                               ; @.str.5
	.asciz	"led0-green"

l_.str.6:                               ; @.str.6
	.asciz	"led0-blue"

	.comm	_LED2_BLINK_EN,8,3              ; @LED2_BLINK_EN
l_.str.7:                               ; @.str.7
	.asciz	"led1-red"

l_.str.8:                               ; @.str.8
	.asciz	"led1-green"

l_.str.9:                               ; @.str.9
	.asciz	"led1-blue"

	.comm	_CHIP_PM8606,8,3                ; @CHIP_PM8606
l_.str.10:                              ; @.str.10
	.asciz	"Failed to register LED: %d\n"

	.no_dead_strip	_pm860x_led_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pm860x_led_probe
l_switch.table.pm860x_led_probe:
	.quad	_LED1_BLINK_EN
	.quad	_LED1_BLINK_EN
	.quad	_LED1_BLINK_EN
	.quad	_LED2_BLINK_EN
	.quad	_LED2_BLINK_EN
	.quad	_LED2_BLINK_EN

	.p2align	3                               ; @switch.table.pm860x_led_probe.11
l_switch.table.pm860x_led_probe.11:
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9

.subsections_via_symbols
