	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77650_charger_probe
_max77650_charger_probe:                ## @max77650_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, %r15
	movq	$0, -56(%rbp)
	movq	8(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, (%r14)
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	%r14, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_max77650_charger_check_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movq	_max77650_charger_check_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %r9
	callq	_devm_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movq	_max77650_battery_desc@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	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
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movl	%r12d, %ebx
	jmp	LBB0_17
LBB0_11:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_max77650_charger_set_ichgin_lim
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	callq	_max77650_charger_enable
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_max77650_charger_set_vchgin_min
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CHG"

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

	.comm	_max77650_charger_check_status,4,2 ## @max77650_charger_check_status
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"chg"

L_.str.3:                               ## @.str.3
	.asciz	"chgin"

	.comm	_max77650_battery_desc,4,2      ## @max77650_battery_desc
L_.str.4:                               ## @.str.4
	.asciz	"input-voltage-min-microvolt"

L_.str.5:                               ## @.str.5
	.asciz	"input-current-limit-microamp"

	.no_dead_strip	_max77650_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77650_charger_probe
_max77650_charger_probe:                ; @max77650_charger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	str	xzr, [sp, #24]
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x21
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x19, #8]
	cbz	w0, LBB0_9
; %bb.2:
	str	x20, [x19]
	ldr	w8, [x20]
	str	w8, [sp, #24]
	str	x19, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
Lloh7:
	adrp	x23, _max77650_charger_check_status@GOTPAGE
Lloh8:
	ldr	x23, [x23, _max77650_charger_check_status@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh9:
	adrp	x24, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh11:
	adrp	x4, l_.str.2@PAGE
Lloh12:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_17
; %bb.5:
	ldr	w2, [x23]
	ldr	w3, [x24]
Lloh13:
	adrp	x4, l_.str.3@PAGE
Lloh14:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x5, x19
	bl	_devm_request_any_context_irq
	tbnz	w0, #31, LBB0_17
; %bb.6:
Lloh15:
	adrp	x1, _max77650_battery_desc@GOTPAGE
Lloh16:
	ldr	x1, [x1, _max77650_battery_desc@GOTPAGEOFF]
	add	x2, sp, #16
	mov	x0, x20
	bl	_devm_power_supply_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_17
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x21, x22
	b	LBB0_11
LBB0_13:
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_18
LBB0_14:
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_max77650_charger_set_ichgin_lim
	mov	x21, x0
	cbnz	w0, LBB0_11
LBB0_16:
	mov	x0, x19
	bl	_max77650_charger_enable
LBB0_17:
	mov	x21, x0
	b	LBB0_11
LBB0_18:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_max77650_charger_set_vchgin_min
	mov	x21, x0
	cbnz	w0, LBB0_11
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHG"

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

	.comm	_max77650_charger_check_status,4,2 ; @max77650_charger_check_status
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"chg"

l_.str.3:                               ; @.str.3
	.asciz	"chgin"

	.comm	_max77650_battery_desc,4,2      ; @max77650_battery_desc
l_.str.4:                               ; @.str.4
	.asciz	"input-voltage-min-microvolt"

l_.str.5:                               ; @.str.5
	.asciz	"input-current-limit-microamp"

	.no_dead_strip	_max77650_charger_probe
.subsections_via_symbols
