	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_charger_probe
_max77693_charger_probe:                ## @max77693_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_max77693_dt_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	callq	_max77693_reg_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%rbx, -32(%rbp)
	movq	_dev_attr_fast_charge_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_dev_attr_top_off_threshold_current@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movq	_dev_attr_top_off_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movq	_dev_attr_top_off_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	_dev_attr_top_off_threshold_current@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	_dev_attr_fast_charge_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	jmp	LBB0_15
LBB0_11:
	movq	_max77693_charger_desc@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_power_supply_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dev_attr_fast_charge_timer,4,2 ## @dev_attr_fast_charge_timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed: create fast charge timer sysfs entry\n"

	.comm	_dev_attr_top_off_threshold_current,4,2 ## @dev_attr_top_off_threshold_current
L_.str.1:                               ## @.str.1
	.asciz	"failed: create top off current sysfs entry\n"

	.comm	_dev_attr_top_off_timer,4,2     ## @dev_attr_top_off_timer
L_.str.2:                               ## @.str.2
	.asciz	"failed: create top off timer sysfs entry\n"

	.comm	_max77693_charger_desc,4,2      ## @max77693_charger_desc
L_.str.3:                               ## @.str.3
	.asciz	"failed: power supply register\n"

	.no_dead_strip	_max77693_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_charger_probe
_max77693_charger_probe:                ; @max77693_charger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	stp	x21, x19, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_max77693_dt_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_max77693_reg_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	str	x20, [sp, #8]
Lloh3:
	adrp	x1, _dev_attr_fast_charge_timer@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dev_attr_fast_charge_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh10:
	adrp	x1, _dev_attr_top_off_threshold_current@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dev_attr_top_off_threshold_current@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x1, _dev_attr_top_off_timer@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_top_off_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_13
; %bb.10:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh18:
	adrp	x1, _dev_attr_top_off_timer@GOTPAGE
Lloh19:
	ldr	x1, [x1, _dev_attr_top_off_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
Lloh20:
	adrp	x1, _dev_attr_top_off_threshold_current@GOTPAGE
Lloh21:
	ldr	x1, [x1, _dev_attr_top_off_threshold_current@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
Lloh22:
	adrp	x1, _dev_attr_fast_charge_timer@GOTPAGE
Lloh23:
	ldr	x1, [x1, _dev_attr_fast_charge_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	b	LBB0_6
LBB0_13:
Lloh24:
	adrp	x1, _max77693_charger_desc@GOTPAGE
Lloh25:
	ldr	x1, [x1, _max77693_charger_desc@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_12
LBB0_15:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dev_attr_fast_charge_timer,4,2 ; @dev_attr_fast_charge_timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed: create fast charge timer sysfs entry\n"

	.comm	_dev_attr_top_off_threshold_current,4,2 ; @dev_attr_top_off_threshold_current
l_.str.1:                               ; @.str.1
	.asciz	"failed: create top off current sysfs entry\n"

	.comm	_dev_attr_top_off_timer,4,2     ; @dev_attr_top_off_timer
l_.str.2:                               ; @.str.2
	.asciz	"failed: create top off timer sysfs entry\n"

	.comm	_max77693_charger_desc,4,2      ; @max77693_charger_desc
l_.str.3:                               ; @.str.3
	.asciz	"failed: power supply register\n"

	.no_dead_strip	_max77693_charger_probe
.subsections_via_symbols
