	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77650_charger_check_status
_max77650_charger_check_status:         ## @max77650_charger_check_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	4(%rsi), %edi
	movq	_MAX77650_REG_STAT_CHG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movl	-12(%rbp), %edi
	callq	_MAX77650_CHGIN_DETAILS_BITS
	cmpl	$130, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	_max77650_charger_enable
	jmp	LBB0_9
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_max77650_charger_disable
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77650_REG_STAT_CHG_B,4,2    ## @MAX77650_REG_STAT_CHG_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read the charger status: %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"undervoltage lockout detected, disabling charger\n"

L_.str.2:                               ## @.str.2
	.asciz	"overvoltage lockout detected, disabling charger\n"

	.no_dead_strip	_max77650_charger_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77650_charger_check_status
_max77650_charger_check_status:         ; @max77650_charger_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x8, _MAX77650_REG_STAT_CHG_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77650_REG_STAT_CHG_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
	b	LBB0_9
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHGIN_DETAILS_BITS
	cmp	w0, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #128
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_max77650_charger_enable
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_dev_err
	mov	x0, x19
	bl	_max77650_charger_disable
LBB0_9:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77650_REG_STAT_CHG_B,4,2    ; @MAX77650_REG_STAT_CHG_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read the charger status: %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"undervoltage lockout detected, disabling charger\n"

l_.str.2:                               ; @.str.2
	.asciz	"overvoltage lockout detected, disabling charger\n"

	.no_dead_strip	_max77650_charger_check_status
.subsections_via_symbols
