	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lt3651_charger_probe
_lt3651_charger_probe:                  ## @lt3651_charger_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GPIOD_IN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_5:
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_9:
	movq	%rbx, %r15
	addq	$32, %r15
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_POWER_SUPPLY_TYPE_MAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_lt3651_charger_properties@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 40(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 36(%rbx)
	movq	_lt3651_charger_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_power_supply_register
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.12:
	callq	_gpiod_to_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	movq	_lt3651_charger_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	jns	LBB0_15
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_15:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.16:
	callq	_gpiod_to_irq
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	movq	_lt3651_charger_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	jns	LBB0_19
LBB0_18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_19:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.20:
	callq	_gpiod_to_irq
	testl	%eax, %eax
	js	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	movq	_lt3651_charger_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	jns	LBB0_23
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lltc,acpr"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to acquire acpr GPIO: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"lltc,fault"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to acquire fault GPIO: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"lltc,chrg"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to acquire chrg GPIO: %d\n"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ## @POWER_SUPPLY_TYPE_MAINS
	.comm	_lt3651_charger_properties,4,2  ## @lt3651_charger_properties
	.comm	_lt3651_charger_get_property,4,2 ## @lt3651_charger_get_property
L_.str.6:                               ## @.str.6
	.asciz	"Failed to register power supply: %d\n"

	.comm	_lt3651_charger_irq,4,2         ## @lt3651_charger_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.7:                               ## @.str.7
	.asciz	"Failed to request acpr irq\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to request fault irq\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to request chrg irq\n"

	.no_dead_strip	_lt3651_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lt3651_charger_probe
_lt3651_charger_probe:                  ; @lt3651_charger_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, _GPIOD_IN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_4:
	ldr	w2, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w2, [x21]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh20:
	adrp	x8, _POWER_SUPPLY_TYPE_MAINS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_MAINS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _lt3651_charger_properties@GOTPAGE
Lloh24:
	ldr	x9, [x9, _lt3651_charger_properties@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #40]
	bl	_ARRAY_SIZE
	str	w0, [x20, #36]
Lloh26:
	adrp	x8, _lt3651_charger_get_property@GOTPAGE
Lloh27:
	ldr	x8, [x8, _lt3651_charger_get_property@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #32]!
	ldr	x8, [x19]
	stp	x20, x8, [sp]
	mov	x2, sp
	mov	x0, x19
	bl	_devm_power_supply_register
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x20, x0
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_11:
	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_12:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_16
; %bb.13:
	bl	_gpiod_to_irq
	tbnz	w0, #31, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh31:
	adrp	x8, _lt3651_charger_irq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _lt3651_charger_irq@GOTPAGEOFF]
Lloh33:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
Lloh36:
	ldr	w8, [x9]
Lloh37:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	ldr	x5, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_devm_request_any_context_irq
	tbz	w0, #31, LBB0_16
LBB0_15:
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_16:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_20
; %bb.17:
	bl	_gpiod_to_irq
	tbnz	w0, #31, LBB0_19
; %bb.18:
	mov	x21, x0
Lloh42:
	adrp	x8, _lt3651_charger_irq@GOTPAGE
Lloh43:
	ldr	x8, [x8, _lt3651_charger_irq@GOTPAGEOFF]
Lloh44:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh46:
	ldr	w22, [x8]
Lloh47:
	ldr	w8, [x9]
Lloh48:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	ldr	x5, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_devm_request_any_context_irq
	tbz	w0, #31, LBB0_20
LBB0_19:
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_20:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_24
; %bb.21:
	bl	_gpiod_to_irq
	tbnz	w0, #31, LBB0_23
; %bb.22:
	mov	x21, x0
Lloh53:
	adrp	x8, _lt3651_charger_irq@GOTPAGE
Lloh54:
	ldr	x8, [x8, _lt3651_charger_irq@GOTPAGEOFF]
Lloh55:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh56:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh57:
	ldr	w22, [x8]
Lloh58:
	ldr	w8, [x9]
Lloh59:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	ldr	x5, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_devm_request_any_context_irq
	tbz	w0, #31, LBB0_24
LBB0_23:
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w20, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh57
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lltc,acpr"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to acquire acpr GPIO: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"lltc,fault"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to acquire fault GPIO: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"lltc,chrg"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to acquire chrg GPIO: %d\n"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ; @POWER_SUPPLY_TYPE_MAINS
	.comm	_lt3651_charger_properties,4,2  ; @lt3651_charger_properties
	.comm	_lt3651_charger_get_property,4,2 ; @lt3651_charger_get_property
l_.str.6:                               ; @.str.6
	.asciz	"Failed to register power supply: %d\n"

	.comm	_lt3651_charger_irq,4,2         ; @lt3651_charger_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.7:                               ; @.str.7
	.asciz	"Failed to request acpr irq\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to request fault irq\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to request chrg irq\n"

	.no_dead_strip	_lt3651_charger_probe
.subsections_via_symbols
