	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5061_get_chg_type
_adp5061_get_chg_type:                  ## @adp5061_get_chg_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_adp5061_get_status
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_adp5061_chg_type@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-28(%rbp), %edi
	callq	_ADP5061_CHG_STATUS_1_CHG_STATUS
	movl	(%r15,%rax,4), %eax
	movq	_ADP5061_CHG_FAST_CV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.2:
	movq	_POWER_SUPPLY_STATUS_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adp5061_chg_type,8,3           ## @adp5061_chg_type
	.comm	_ADP5061_CHG_FAST_CV,4,2        ## @ADP5061_CHG_FAST_CV
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,4,2 ## @POWER_SUPPLY_STATUS_UNKNOWN
	.no_dead_strip	_adp5061_get_chg_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5061_get_chg_type
_adp5061_get_chg_type:                  ; @adp5061_get_chg_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_adp5061_get_status
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _adp5061_chg_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adp5061_chg_type@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w0, [sp, #12]
	bl	_ADP5061_CHG_STATUS_1_CHG_STATUS
	ldr	w8, [x21, x0, lsl #2]
Lloh3:
	adrp	x9, _ADP5061_CHG_FAST_CV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADP5061_CHG_FAST_CV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, w8, gt
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_adp5061_chg_type,8,3           ; @adp5061_chg_type
	.comm	_ADP5061_CHG_FAST_CV,4,2        ; @ADP5061_CHG_FAST_CV
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,4,2 ; @POWER_SUPPLY_STATUS_UNKNOWN
	.no_dead_strip	_adp5061_get_chg_type
.subsections_via_symbols
