	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm2_int_reg3
_pm2_int_reg3:                          ## @pm2_int_reg3
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PM2XXX_INT4_ITCHARGINGON@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movq	_PM2XXX_INT4_ITVRESUME@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	movq	_PM2XXX_INT4_ITBATTFULL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movq	_PM2XXX_INT4_ITCVPHASE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
LBB0_8:
	movq	_PM2XXX_INT4_ITVPWR2OVV@GOTPCREL(%rip), %rax
	movq	_PM2XXX_INT4_ITVPWR1OVV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	andl	%ebx, %esi
	je	LBB0_9
## %bb.10:
	movq	_VPWR_OVV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_pm2xxx_charger_ovv_mngt
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_PM2XXX_INT4_S_ITBATTEMPCOLD@GOTPCREL(%rip), %rax
	movq	_PM2XXX_INT4_S_ITBATTEMPHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	andl	%ebx, %esi
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_pm2xxx_charger_batt_therm_mngt
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_13:
	movl	%r15d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM2XXX_INT4_ITCHARGINGON,4,2   ## @PM2XXX_INT4_ITCHARGINGON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chargind operation has started\n"

	.comm	_PM2XXX_INT4_ITVRESUME,4,2      ## @PM2XXX_INT4_ITVRESUME
L_.str.1:                               ## @.str.1
	.asciz	"battery discharged down to VResume threshold\n"

	.comm	_PM2XXX_INT4_ITBATTFULL,4,2     ## @PM2XXX_INT4_ITBATTFULL
L_.str.2:                               ## @.str.2
	.asciz	"battery fully detected\n"

	.comm	_PM2XXX_INT4_ITCVPHASE,4,2      ## @PM2XXX_INT4_ITCVPHASE
L_.str.3:                               ## @.str.3
	.asciz	"CV phase enter with 0.5C charging\n"

	.comm	_PM2XXX_INT4_ITVPWR2OVV,4,2     ## @PM2XXX_INT4_ITVPWR2OVV
	.comm	_PM2XXX_INT4_ITVPWR1OVV,4,2     ## @PM2XXX_INT4_ITVPWR1OVV
	.comm	_VPWR_OVV,4,2                   ## @VPWR_OVV
L_.str.4:                               ## @.str.4
	.asciz	"VPWR/VSYSTEM overvoltage detected\n"

	.comm	_PM2XXX_INT4_S_ITBATTEMPCOLD,4,2 ## @PM2XXX_INT4_S_ITBATTEMPCOLD
	.comm	_PM2XXX_INT4_S_ITBATTEMPHOT,4,2 ## @PM2XXX_INT4_S_ITBATTEMPHOT
L_.str.5:                               ## @.str.5
	.asciz	"BTEMP is too Low/High\n"

	.no_dead_strip	_pm2_int_reg3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm2_int_reg3
_pm2_int_reg3:                          ; @pm2_int_reg3
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PM2XXX_INT4_ITCHARGINGON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM2XXX_INT4_ITCHARGINGON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh5:
	adrp	x8, _PM2XXX_INT4_ITVRESUME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PM2XXX_INT4_ITVRESUME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
Lloh10:
	adrp	x8, _PM2XXX_INT4_ITBATTFULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PM2XXX_INT4_ITBATTFULL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_6:
Lloh15:
	adrp	x8, _PM2XXX_INT4_ITCVPHASE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PM2XXX_INT4_ITCVPHASE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_8:
Lloh20:
	adrp	x8, _PM2XXX_INT4_ITVPWR2OVV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PM2XXX_INT4_ITVPWR2OVV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _PM2XXX_INT4_ITVPWR1OVV@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PM2XXX_INT4_ITVPWR1OVV@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ands	w1, w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh26:
	adrp	x8, _VPWR_OVV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VPWR_OVV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_pm2xxx_charger_ovv_mngt
	mov	x21, x0
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	b	LBB0_11
LBB0_10:
	mov	w21, #0
LBB0_11:
Lloh31:
	adrp	x8, _PM2XXX_INT4_S_ITBATTEMPCOLD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PM2XXX_INT4_S_ITBATTEMPCOLD@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PM2XXX_INT4_S_ITBATTEMPHOT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PM2XXX_INT4_S_ITBATTEMPHOT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ands	w1, w8, w20
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_pm2xxx_charger_batt_therm_mngt
	mov	x20, x0
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	b	LBB0_14
LBB0_13:
	mov	x0, x21
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PM2XXX_INT4_ITCHARGINGON,4,2   ; @PM2XXX_INT4_ITCHARGINGON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chargind operation has started\n"

	.comm	_PM2XXX_INT4_ITVRESUME,4,2      ; @PM2XXX_INT4_ITVRESUME
l_.str.1:                               ; @.str.1
	.asciz	"battery discharged down to VResume threshold\n"

	.comm	_PM2XXX_INT4_ITBATTFULL,4,2     ; @PM2XXX_INT4_ITBATTFULL
l_.str.2:                               ; @.str.2
	.asciz	"battery fully detected\n"

	.comm	_PM2XXX_INT4_ITCVPHASE,4,2      ; @PM2XXX_INT4_ITCVPHASE
l_.str.3:                               ; @.str.3
	.asciz	"CV phase enter with 0.5C charging\n"

	.comm	_PM2XXX_INT4_ITVPWR2OVV,4,2     ; @PM2XXX_INT4_ITVPWR2OVV
	.comm	_PM2XXX_INT4_ITVPWR1OVV,4,2     ; @PM2XXX_INT4_ITVPWR1OVV
	.comm	_VPWR_OVV,4,2                   ; @VPWR_OVV
l_.str.4:                               ; @.str.4
	.asciz	"VPWR/VSYSTEM overvoltage detected\n"

	.comm	_PM2XXX_INT4_S_ITBATTEMPCOLD,4,2 ; @PM2XXX_INT4_S_ITBATTEMPCOLD
	.comm	_PM2XXX_INT4_S_ITBATTEMPHOT,4,2 ; @PM2XXX_INT4_S_ITBATTEMPHOT
l_.str.5:                               ; @.str.5
	.asciz	"BTEMP is too Low/High\n"

	.no_dead_strip	_pm2_int_reg3
.subsections_via_symbols
