	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_charger_battery_charge_type
_da9150_charger_battery_charge_type:    ## @da9150_charger_battery_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
	movl	(%rdi), %edi
	movq	_DA9150_STATUS_J@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9150_reg_read
	movq	_DA9150_CHG_STAT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.da9150_charger_battery_charge_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9150_STATUS_J,4,2            ## @DA9150_STATUS_J
	.comm	_DA9150_CHG_STAT_MASK,4,2       ## @DA9150_CHG_STAT_MASK
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.no_dead_strip	_da9150_charger_battery_charge_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.da9150_charger_battery_charge_type
l_switch.table.da9150_charger_battery_charge_type:
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_charger_battery_charge_type
_da9150_charger_battery_charge_type:    ; @da9150_charger_battery_charge_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, [x0]
Lloh0:
	adrp	x8, _DA9150_STATUS_J@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9150_STATUS_J@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_da9150_reg_read
Lloh3:
	adrp	x8, _DA9150_CHG_STAT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9150_CHG_STAT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.da9150_charger_battery_charge_type@PAGE
Lloh7:
	add	x9, x9, l_switch.table.da9150_charger_battery_charge_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9150_STATUS_J,4,2            ; @DA9150_STATUS_J
	.comm	_DA9150_CHG_STAT_MASK,4,2       ; @DA9150_CHG_STAT_MASK
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.no_dead_strip	_da9150_charger_battery_charge_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.da9150_charger_battery_charge_type
l_switch.table.da9150_charger_battery_charge_type:
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.quad	_POWER_SUPPLY_CHARGE_TYPE_FAST
	.quad	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE

.subsections_via_symbols
