	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_charger_get_charge_type
_bq24190_charger_get_charge_type:       ## @bq24190_charger_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_BQ24190_REG_POC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	callq	_bq24190_read_mask
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	cmpq	$0, -24(%rbp)
	je	LBB0_2
## %bb.3:
	movq	_BQ24190_REG_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	movq	%rbx, %rdi
	callq	_bq24190_read_mask
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	cmpq	$0, -24(%rbp)
	jne	LBB0_5
## %bb.6:
	movq	_POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ24190_REG_POC,4,2            ## @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_CHG_CONFIG_MASK,4,2 ## @BQ24190_REG_POC_CHG_CONFIG_MASK
	.comm	_BQ24190_REG_POC_CHG_CONFIG_SHIFT,4,2 ## @BQ24190_REG_POC_CHG_CONFIG_SHIFT
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_BQ24190_REG_CCC,4,2            ## @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_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
	.no_dead_strip	_bq24190_charger_get_charge_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24190_charger_get_charge_type
_bq24190_charger_get_charge_type:       ; @bq24190_charger_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
	mov	x20, x0
Lloh0:
	adrp	x8, _BQ24190_REG_POC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ24190_REG_POC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_bq24190_read_mask
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _BQ24190_REG_CCC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BQ24190_REG_CCC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x20
	bl	_bq24190_read_mask
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh18:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGEOFF]
	ldr	x9, [sp, #8]
Lloh20:
	adrp	x10, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGE
Lloh21:
	ldr	x10, [x10, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	mov	w0, #0
	str	w8, [x19]
LBB0_6:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ24190_REG_POC,4,2            ; @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_CHG_CONFIG_MASK,4,2 ; @BQ24190_REG_POC_CHG_CONFIG_MASK
	.comm	_BQ24190_REG_POC_CHG_CONFIG_SHIFT,4,2 ; @BQ24190_REG_POC_CHG_CONFIG_SHIFT
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_BQ24190_REG_CCC,4,2            ; @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_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
	.no_dead_strip	_bq24190_charger_get_charge_type
.subsections_via_symbols
