	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lt3593_led_probe
_lt3593_led_probe:                      ## @lt3593_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LEDS_GPIO_DEFSTATE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	$0, -56(%rbp)
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_device_get_child_node_count
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_devm_gpiod_get
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.18:
	movl	24(%r14), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_device_get_next_child_node
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_fwnode_property_read_string
	leaq	L_.str.3(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_fwnode_property_read_string
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	-40(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_LEDS_GPIO_DEFSTATE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	_lt3593_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.13:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, -48(%rbp)
	movq	_LED_LT3593_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_devm_led_classdev_register_ext
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	(%r12), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_fwnode_handle_put
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_LEDS_GPIO_DEFSTATE_OFF,4,2     ## @LEDS_GPIO_DEFSTATE_OFF
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device must have exactly one LED sub-node."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"lltc,ctrl"

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

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

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

	.comm	_LEDS_GPIO_DEFSTATE_ON,4,2      ## @LEDS_GPIO_DEFSTATE_ON
	.comm	_lt3593_led_set,4,2             ## @lt3593_led_set
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LED_LT3593_NAME,4,2            ## @LED_LT3593_NAME
L_.str.5:                               ## @.str.5
	.asciz	":"

	.no_dead_strip	_lt3593_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lt3593_led_probe
_lt3593_led_probe:                      ; @lt3593_led_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, _LEDS_GPIO_DEFSTATE_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEDS_GPIO_DEFSTATE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	str	xzr, [sp, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_device_get_child_node_count
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_devm_gpiod_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w0, [x20, #24]
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_5:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x19
	mov	x1, #0
	bl	_device_get_next_child_node
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fwnode_property_read_string
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, sp
	mov	x0, x21
	bl	_fwnode_property_read_string
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x0, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
Lloh22:
	adrp	x8, _LEDS_GPIO_DEFSTATE_ON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LEDS_GPIO_DEFSTATE_ON@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, w8, w22, eq
LBB0_12:
Lloh25:
	adrp	x8, _lt3593_led_set@GOTPAGE
Lloh26:
	ldr	x8, [x8, _lt3593_led_set@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #20]
Lloh28:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh30:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh32:
	adrp	x8, _LED_LT3593_NAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LED_LT3593_NAME@GOTPAGEOFF]
	str	x21, [sp, #24]
Lloh34:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh35:
	adrp	x8, l_.str.5@PAGE
Lloh36:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_devm_led_classdev_register_ext
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_9
LBB0_14:
	mov	x22, x0
	mov	x0, x21
	bl	_fwnode_handle_put
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LEDS_GPIO_DEFSTATE_OFF,4,2     ; @LEDS_GPIO_DEFSTATE_OFF
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device must have exactly one LED sub-node."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"lltc,ctrl"

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

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

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

	.comm	_LEDS_GPIO_DEFSTATE_ON,4,2      ; @LEDS_GPIO_DEFSTATE_ON
	.comm	_lt3593_led_set,4,2             ; @lt3593_led_set
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LED_LT3593_NAME,4,2            ; @LED_LT3593_NAME
l_.str.5:                               ; @.str.5
	.asciz	":"

	.no_dead_strip	_lt3593_led_probe
.subsections_via_symbols
