	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_get_charge_type
_max77693_get_charge_type:              ## @max77693_get_charge_type
	.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
	movq	_MAX77693_CHG_REG_CHG_DETAILS_01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_CHG_DETAILS_01_CHG_MASK@GOTPCREL(%rip), %rcx
	movl	-12(%rbp), %eax
	andl	(%rcx), %eax
	movq	_CHG_DETAILS_01_CHG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.max77693_get_charge_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77693_CHG_REG_CHG_DETAILS_01,4,2 ## @MAX77693_CHG_REG_CHG_DETAILS_01
	.comm	_CHG_DETAILS_01_CHG_MASK,4,2    ## @CHG_DETAILS_01_CHG_MASK
	.comm	_CHG_DETAILS_01_CHG_SHIFT,4,2   ## @CHG_DETAILS_01_CHG_SHIFT
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.no_dead_strip	_max77693_get_charge_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.max77693_get_charge_type
l_switch.table.max77693_get_charge_type:
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_get_charge_type
_max77693_get_charge_type:              ; @max77693_get_charge_type
	.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
Lloh0:
	adrp	x8, _MAX77693_CHG_REG_CHG_DETAILS_01@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_DETAILS_01@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _CHG_DETAILS_01_CHG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHG_DETAILS_01_CHG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _CHG_DETAILS_01_CHG_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHG_DETAILS_01_CHG_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, l_switch.table.max77693_get_charge_type@PAGE
Lloh10:
	add	x9, x9, l_switch.table.max77693_get_charge_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPAGEOFF]
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8]
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77693_CHG_REG_CHG_DETAILS_01,4,2 ; @MAX77693_CHG_REG_CHG_DETAILS_01
	.comm	_CHG_DETAILS_01_CHG_MASK,4,2    ; @CHG_DETAILS_01_CHG_MASK
	.comm	_CHG_DETAILS_01_CHG_SHIFT,4,2   ; @CHG_DETAILS_01_CHG_SHIFT
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.no_dead_strip	_max77693_get_charge_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.max77693_get_charge_type
l_switch.table.max77693_get_charge_type:
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_NONE

.subsections_via_symbols
