	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscon_led_probe
_syscon_led_probe:                      ## @syscon_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r12
	movq	(%rax), %rdi
	callq	_syscon_node_to_regmap
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.22:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 32(%rax)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	leaq	4(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movslq	(%r12), %rax
LBB0_11:
	movl	%eax, 16(%r14)
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	movq	%rax, 24(%r14)
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%rax, %r12
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	$0, 8(%r14)
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_13:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:
	movl	4(%r14), %eax
	xorl	%ecx, %ecx
	andl	-36(%rbp), %eax
	setne	%cl
	movl	%ecx, 8(%r14)
	jmp	LBB0_19
LBB0_16:
	movl	$1, 8(%r14)
	movl	(%r14), %esi
	movl	4(%r14), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
LBB0_18:
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_21
LBB0_19:
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	_syscon_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	16(%r14), %edx
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no parent for syscon LED\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"no regmap for syscon LED parent\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"offset"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"mask"

L_.str.4:                               ## @.str.4
	.asciz	"label"

L_.str.5:                               ## @.str.5
	.asciz	"linux,default-trigger"

L_.str.6:                               ## @.str.6
	.asciz	"default-state"

L_.str.7:                               ## @.str.7
	.asciz	"keep"

L_.str.8:                               ## @.str.8
	.asciz	"on"

	.comm	_syscon_led_set,4,2             ## @syscon_led_set
L_.str.9:                               ## @.str.9
	.asciz	"registered LED %s\n"

	.no_dead_strip	_syscon_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syscon_led_probe
_syscon_led_probe:                      ; @syscon_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	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x23, [x19]
	ldr	x0, [x8]
	bl	_syscon_node_to_regmap
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	str	x21, [x0, #32]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	bl	_of_property_read_u32
	cbnz	x0, LBB0_7
; %bb.6:
	add	x2, x20, #4
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u32
	cbz	x0, LBB0_11
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_of_get_property
	cbnz	x0, LBB0_13
; %bb.12:
	ldrsw	x0, [x23]
LBB0_13:
	mov	x22, x20
	str	w0, [x22, #16]!
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_of_get_property
	str	x0, [x22, #8]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_21
; %bb.14:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.15:
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.16:
	str	wzr, [x20, #8]
	ldp	w1, w2, [x20]
	mov	x0, x21
	mov	w3, #0
	b	LBB0_20
LBB0_17:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.18:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #4]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x20, #8]
	b	LBB0_21
LBB0_19:
	mov	w8, #1
	str	w8, [x20, #8]
	ldp	w1, w2, [x20]
	mov	x0, x21
	mov	x3, x2
LBB0_20:
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_10
LBB0_21:
Lloh27:
	adrp	x8, _syscon_led_set@GOTPAGE
Lloh28:
	ldr	x8, [x8, _syscon_led_set@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_10
; %bb.22:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w2, [x20, #16]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no parent for syscon LED\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"no regmap for syscon LED parent\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"offset"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"mask"

l_.str.4:                               ; @.str.4
	.asciz	"label"

l_.str.5:                               ; @.str.5
	.asciz	"linux,default-trigger"

l_.str.6:                               ; @.str.6
	.asciz	"default-state"

l_.str.7:                               ; @.str.7
	.asciz	"keep"

l_.str.8:                               ; @.str.8
	.asciz	"on"

	.comm	_syscon_led_set,4,2             ; @syscon_led_set
l_.str.9:                               ; @.str.9
	.asciz	"registered LED %s\n"

	.no_dead_strip	_syscon_led_probe
.subsections_via_symbols
