	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65217_charger_probe
_tps65217_charger_probe:                ## @tps65217_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rsp, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_NUM_CHARGER_IRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r15, 24(%r14)
	movq	%rbx, (%r14)
	movl	(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	%r14, -80(%rbp)
	movq	_tps65217_charger_desc@GOTPCREL(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_devm_power_supply_register
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.5:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	movl	%eax, (%r13)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_platform_get_irq_byname
	movq	%r13, %rcx
	movl	%eax, %r13d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	callq	_tps65217_config_charger
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	testl	%r12d, %r12d
	js	LBB0_17
## %bb.8:
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.9:
	movq	_NUM_CHARGER_IRQS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.10:
	subq	$8, %rsp
	movq	_tps65217_charger_irq@GOTPCREL(%rip), %rcx
	leaq	L_.str.6(%rip), %r9
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	%r14
	callq	_devm_request_threaded_irq
	addq	$16, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	$1, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, %edi
	movq	%r14, %rsi
	callq	_tps65217_charger_irq
	movq	_NUM_CHARGER_IRQS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r12d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movq	_tps65217_charger_irq@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	leaq	L_.str.6(%rip), %r9
	pushq	%r14
	callq	_devm_request_threaded_irq
	addq	$16, %rsp
	incq	%r13
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:
	movl	%eax, %r15d
LBB0_15:
	movq	(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_16:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_17:
	movq	_tps65217_charger_poll_task@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rsi
	callq	_kthread_run
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_19:
	movq	%rbx, 8(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_20:
	xorl	%r15d, %r15d
LBB0_21:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CHARGER_IRQS,4,2           ## @NUM_CHARGER_IRQS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps65217_charger_desc,4,2      ## @tps65217_charger_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed: power supply register\n"

L_.str.1:                               ## @.str.1
	.asciz	"USB"

L_.str.2:                               ## @.str.2
	.asciz	"AC"

L_.str.3:                               ## @.str.3
	.asciz	"charger config failed, err %d\n"

	.comm	_tps65217_charger_poll_task,4,2 ## @tps65217_charger_poll_task
L_.str.4:                               ## @.str.4
	.asciz	"ktps65217charger"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to run kthread err %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"tps65217-charger"

L_.str.7:                               ## @.str.7
	.asciz	"Unable to register irq %d err %d\n"

	.no_dead_strip	_tps65217_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65217_charger_probe
_tps65217_charger_probe:                ; @tps65217_charger_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x25, sp
	stp	xzr, xzr, [x29, #-104]
Lloh3:
	adrp	x26, _NUM_CHARGER_IRQS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NUM_CHARGER_IRQS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x21, [x19, #24]
	str	x20, [x19]
	ldr	w8, [x20]
	stur	w8, [x29, #-96]
	stur	x19, [x29, #-104]
Lloh10:
	adrp	x1, _tps65217_charger_desc@GOTPAGE
Lloh11:
	ldr	x1, [x1, _tps65217_charger_desc@GOTPAGEOFF]
	sub	x2, x29, #104
	mov	x0, x20
	bl	_devm_power_supply_register
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.5:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x21, x0
	str	w0, [x27]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x22, x0
	str	w0, [x27, #4]
	mov	x0, x19
	bl	_tps65217_config_charger
	tbnz	w0, #31, LBB0_16
; %bb.7:
	tbnz	w21, #31, LBB0_17
; %bb.8:
	tbnz	w22, #31, LBB0_17
; %bb.9:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
Lloh24:
	adrp	x3, _tps65217_charger_irq@GOTPAGE
Lloh25:
	ldr	x3, [x3, _tps65217_charger_irq@GOTPAGEOFF]
Lloh26:
	adrp	x5, l_.str.6@PAGE
Lloh27:
	add	x5, x5, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	w4, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.11:
	mov	w28, #1
Lloh28:
	adrp	x23, _tps65217_charger_irq@GOTPAGE
Lloh29:
	ldr	x23, [x23, _tps65217_charger_irq@GOTPAGEOFF]
Lloh30:
	adrp	x24, l_.str.6@PAGE
Lloh31:
	add	x24, x24, l_.str.6@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #-1
	mov	x1, x19
	bl	_tps65217_charger_irq
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w21, [x27, x28, lsl #2]
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	x3, x23
	mov	w4, #0
	mov	x5, x24
	mov	x6, x19
	bl	_devm_request_threaded_irq
	add	x28, x28, #1
	cbz	w0, LBB0_12
; %bb.14:
	mov	x22, x0
LBB0_15:
	ldr	x0, [x19]
	stp	x21, x22, [sp, #-16]!
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	add	sp, sp, #16
	b	LBB0_4
LBB0_16:
	mov	x23, x0
	ldr	x0, [x19]
	str	x23, [sp, #-16]!
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	add	sp, sp, #16
	mov	x22, x23
	b	LBB0_4
LBB0_17:
Lloh36:
	adrp	x8, _tps65217_charger_poll_task@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tps65217_charger_poll_task@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x2, l_.str.4@PAGE
Lloh40:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
	ldr	x0, [x19]
	str	x22, [sp, #-16]!
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	add	sp, sp, #16
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_4
LBB0_19:
	mov	w22, #0
	b	LBB0_4
LBB0_20:
	mov	w22, #0
	str	x20, [x19, #8]
	b	LBB0_4
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CHARGER_IRQS,4,2           ; @NUM_CHARGER_IRQS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps65217_charger_desc,4,2      ; @tps65217_charger_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed: power supply register\n"

l_.str.1:                               ; @.str.1
	.asciz	"USB"

l_.str.2:                               ; @.str.2
	.asciz	"AC"

l_.str.3:                               ; @.str.3
	.asciz	"charger config failed, err %d\n"

	.comm	_tps65217_charger_poll_task,4,2 ; @tps65217_charger_poll_task
l_.str.4:                               ; @.str.4
	.asciz	"ktps65217charger"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to run kthread err %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"tps65217-charger"

l_.str.7:                               ; @.str.7
	.asciz	"Unable to register irq %d err %d\n"

	.no_dead_strip	_tps65217_charger_probe
.subsections_via_symbols
