	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_led_probe
_da9052_led_probe:                      ## @da9052_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, %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movl	(%rax), %edi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movl	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	4(%rax,%r14,8), %ecx
	leaq	4(%rbx), %r12
	movl	%ecx, 16(%rbx)
	movq	_da9052_led_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_DA9052_MAX_BRIGHTNESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rax,%r14,8), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	callq	_dev_get_drvdata
	movq	%rax, 24(%rbx)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_da9052_set_led_brightness
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %edx
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	24(%rbx), %rdi
	callq	_da9052_configure_leds
	testl	%eax, %eax
	je	LBB0_22
## %bb.17:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	testl	%r14d, %r14d
	jg	LBB0_19
	jmp	LBB0_21
LBB0_11:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_21
LBB0_19:
	movl	%r14d, %eax
	leaq	1(%rax), %r14
	shlq	$5, %rax
	addq	%rax, %rbx
	addq	$-28, %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_led_classdev_unregister
	decq	%r14
	addq	$-32, %rbx
	cmpq	$1, %r14
	ja	LBB0_20
	jmp	LBB0_21
LBB0_22:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data\n"

L_.str.1:                               ## @.str.1
	.asciz	"No platform data for LED\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_da9052_led_set,4,2             ## @da9052_led_set
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_DA9052_MAX_BRIGHTNESS,4,2      ## @DA9052_MAX_BRIGHTNESS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register led %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to init led %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to configure GPIO LED%d\n"

	.no_dead_strip	_da9052_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_led_probe
_da9052_led_probe:                      ; @da9052_led_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	ldr	w0, [x0]
	bl	_dev_get_platdata
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x25, [x0]
	cbz	x25, LBB0_10
; %bb.2:
	ldr	w1, [x25]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #32
	bl	_devm_kcalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x24, #0
Lloh6:
	adrp	x26, _da9052_led_set@GOTPAGE
Lloh7:
	ldr	x26, [x26, _da9052_led_set@GOTPAGEOFF]
Lloh8:
	adrp	x27, _LED_OFF@GOTPAGE
Lloh9:
	ldr	x27, [x27, _LED_OFF@GOTPAGEOFF]
	mov	w28, #4
Lloh10:
	adrp	x20, _DA9052_MAX_BRIGHTNESS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _DA9052_MAX_BRIGHTNESS@GOTPAGEOFF]
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x25]
	add	x22, x22, #32
	add	x28, x28, #8
	cmp	x24, x8
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	add	x8, x8, x28
	ldr	w9, [x8]
	str	w9, [x22, #16]
	ldr	w9, [x26]
	str	w9, [x22, #12]
	ldr	w9, [x27]
	mov	x21, x22
	str	w9, [x21, #4]!
	ldr	w9, [x20]
	str	w9, [x22, #8]
	ldur	w8, [x8, #-4]
	str	w8, [x22]
	ldr	w0, [x19]
	bl	_dev_get_drvdata
	str	x0, [x22, #24]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_led_classdev_register
	cbnz	w0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22, #4]
	mov	x0, x22
	bl	_da9052_set_led_brightness
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_err
	b	LBB0_5
LBB0_9:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_14:
	mov	w24, #0
	b	LBB0_16
LBB0_15:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_16:
	ldr	x0, [x22, #24]
	bl	_da9052_configure_leds
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.17:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	cmp	w24, #1
	b.ge	LBB0_19
	b	LBB0_12
LBB0_18:
	mov	x21, x0
	ldr	w8, [x22]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w24, #1
	b.lt	LBB0_12
LBB0_19:
	mov	w8, w24
	add	x20, x8, #1
	add	x8, x22, x8, lsl #5
	sub	x19, x8, #28
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_led_classdev_unregister
	sub	x20, x20, #1
	sub	x19, x19, #32
	cmp	x20, #1
	b.hi	LBB0_20
	b	LBB0_12
LBB0_21:
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data\n"

l_.str.1:                               ; @.str.1
	.asciz	"No platform data for LED\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_da9052_led_set,4,2             ; @da9052_led_set
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_DA9052_MAX_BRIGHTNESS,4,2      ; @DA9052_MAX_BRIGHTNESS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register led %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to init led %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to configure GPIO LED%d\n"

	.no_dead_strip	_da9052_led_probe
.subsections_via_symbols
