	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14577_get_online
_max14577_get_online:                   ## @max14577_get_online
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rdi
	movq	_MAX14577_MUIC_REG_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_max14577_read_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_STATUS2_CHGTYP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-20(%rbp), %esi
	movq	_STATUS2_CHGTYP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movl	%esi, -20(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_maxim_get_charger_type
	movl	%eax, %ecx
	addl	$-128, %ecx
	xorl	%eax, %eax
	movl	$0, %edx
	cmpl	$9, %ecx
	ja	LBB0_3
## %bb.2:
	movslq	%ecx, %rcx
	leaq	l_switch.table.max14577_get_online(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
LBB0_3:
	movl	%edx, (%r14)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX14577_MUIC_REG_STATUS2,4,2  ## @MAX14577_MUIC_REG_STATUS2
	.comm	_STATUS2_CHGTYP_MASK,4,2        ## @STATUS2_CHGTYP_MASK
	.comm	_STATUS2_CHGTYP_SHIFT,4,2       ## @STATUS2_CHGTYP_SHIFT
	.no_dead_strip	_max14577_get_online
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.max14577_get_online
l_switch.table.max14577_get_online:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14577_get_online
_max14577_get_online:                   ; @max14577_get_online
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
Lloh0:
	adrp	x8, _MAX14577_MUIC_REG_STATUS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX14577_MUIC_REG_STATUS2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max14577_read_reg
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _STATUS2_CHGTYP_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS2_CHGTYP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _STATUS2_CHGTYP_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STATUS2_CHGTYP_SHIFT@GOTPAGEOFF]
	and	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	asr	w1, w8, w9
	str	w1, [sp, #12]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_maxim_get_charger_type
	sub	w8, w0, #128
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, l_switch.table.max14577_get_online@PAGE
Lloh10:
	add	x9, x9, l_switch.table.max14577_get_online@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX14577_MUIC_REG_STATUS2,4,2  ; @MAX14577_MUIC_REG_STATUS2
	.comm	_STATUS2_CHGTYP_MASK,4,2        ; @STATUS2_CHGTYP_MASK
	.comm	_STATUS2_CHGTYP_SHIFT,4,2       ; @STATUS2_CHGTYP_SHIFT
	.no_dead_strip	_max14577_get_online
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.max14577_get_online
l_switch.table.max14577_get_online:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
