	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da903x_led_probe
_da903x_led_probe:                      ## @da903x_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, %rbx
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_dev_get_platdata
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movl	(%rbx), %r15d
	movq	_DA9030_ID_LED_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_3
## %bb.2:
	movq	_DA9030_ID_VIBRA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_6
LBB0_3:
	movq	_DA9034_ID_LED_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_5
## %bb.4:
	movq	_DA9034_ID_VIBRA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_5
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$28, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movl	8(%r13), %ecx
	movq	%rax, %rsi
	addq	$4, %rsi
	movl	%ecx, 16(%rax)
	movl	4(%r13), %ecx
	movl	%ecx, 12(%rax)
	movq	_da903x_led_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	%r15d, (%rax)
	movl	(%r13), %ecx
	movl	%ecx, 24(%rax)
	movl	(%r12), %edi
	movl	%edi, 20(%rax)
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9030_ID_LED_1,4,2            ## @DA9030_ID_LED_1
	.comm	_DA9030_ID_VIBRA,4,2            ## @DA9030_ID_VIBRA
	.comm	_DA9034_ID_LED_1,4,2            ## @DA9034_ID_LED_1
	.comm	_DA9034_ID_VIBRA,4,2            ## @DA9034_ID_VIBRA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid LED ID (%d) specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_da903x_led_set,4,2             ## @da903x_led_set
	.comm	_LED_OFF,4,2                    ## @LED_OFF
L_.str.1:                               ## @.str.1
	.asciz	"failed to register LED %d\n"

	.no_dead_strip	_da903x_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da903x_led_probe
_da903x_led_probe:                      ; @da903x_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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _DA9030_ID_LED_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9030_ID_LED_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DA9030_ID_VIBRA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DA9030_ID_VIBRA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _DA9034_ID_LED_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9034_ID_LED_1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DA9034_ID_VIBRA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DA9034_ID_VIBRA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #0, ge
	b.le	LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #28
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	ldur	d0, [x21, #4]
	stur	d0, [x0, #12]
Lloh19:
	adrp	x8, _da903x_led_set@GOTPAGE
Lloh20:
	ldr	x8, [x8, _da903x_led_set@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh23:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	mov	x1, x0
	str	w9, [x1, #4]!
	str	w8, [x0, #8]
	str	w20, [x0]
	ldr	w9, [x21]
	ldr	w8, [x19]
	stp	w8, w9, [x0, #20]
	mov	x0, x8
	bl	_devm_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.6:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
LBB0_7:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9030_ID_LED_1,4,2            ; @DA9030_ID_LED_1
	.comm	_DA9030_ID_VIBRA,4,2            ; @DA9030_ID_VIBRA
	.comm	_DA9034_ID_LED_1,4,2            ; @DA9034_ID_LED_1
	.comm	_DA9034_ID_VIBRA,4,2            ; @DA9034_ID_VIBRA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid LED ID (%d) specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_da903x_led_set,4,2             ; @da903x_led_set
	.comm	_LED_OFF,4,2                    ; @LED_OFF
l_.str.1:                               ; @.str.1
	.asciz	"failed to register LED %d\n"

	.no_dead_strip	_da903x_led_probe
.subsections_via_symbols
