	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm2_int_reg4
_pm2_int_reg4:                          ## @pm2_int_reg4
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_PM2XXX_INT5_ITVSYSTEMOVV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r14d, %esi
	je	LBB0_1
## %bb.2:
	movq	_VSYSTEM_OVV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_pm2xxx_charger_ovv_mngt
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_PM2XXX_INT5_ITTHERMALWARNINGFALL@GOTPCREL(%rip), %rcx
	movq	_PM2XXX_INT5_ITTHERMALWARNINGRISE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%rcx), %eax
	movq	_PM2XXX_INT5_ITTHERMALSHUTDOWNFALL@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	_PM2XXX_INT5_ITTHERMALSHUTDOWNRISE@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	testl	%r14d, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	(%r13), %esi
	movq	_PM2XXX_INT5_ITTHERMALWARNINGFALL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r15), %esi
	orl	(%r12), %esi
	andl	%r14d, %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm2xxx_charger_die_therm_mngt  ## TAILCALL
LBB0_4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM2XXX_INT5_ITVSYSTEMOVV,4,2   ## @PM2XXX_INT5_ITVSYSTEMOVV
	.comm	_VSYSTEM_OVV,4,2                ## @VSYSTEM_OVV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VSYSTEM overvoltage detected\n"

	.comm	_PM2XXX_INT5_ITTHERMALWARNINGFALL,4,2 ## @PM2XXX_INT5_ITTHERMALWARNINGFALL
	.comm	_PM2XXX_INT5_ITTHERMALWARNINGRISE,4,2 ## @PM2XXX_INT5_ITTHERMALWARNINGRISE
	.comm	_PM2XXX_INT5_ITTHERMALSHUTDOWNFALL,4,2 ## @PM2XXX_INT5_ITTHERMALSHUTDOWNFALL
	.comm	_PM2XXX_INT5_ITTHERMALSHUTDOWNRISE,4,2 ## @PM2XXX_INT5_ITTHERMALSHUTDOWNRISE
L_.str.1:                               ## @.str.1
	.asciz	"BTEMP die temperature is too Low/High\n"

	.no_dead_strip	_pm2_int_reg4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm2_int_reg4
_pm2_int_reg4:                          ; @pm2_int_reg4
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PM2XXX_INT5_ITVSYSTEMOVV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM2XXX_INT5_ITVSYSTEMOVV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w1, w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VSYSTEM_OVV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSYSTEM_OVV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_pm2xxx_charger_ovv_mngt
	mov	x21, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh8:
	adrp	x22, _PM2XXX_INT5_ITTHERMALWARNINGFALL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PM2XXX_INT5_ITTHERMALWARNINGFALL@GOTPAGEOFF]
Lloh10:
	adrp	x23, _PM2XXX_INT5_ITTHERMALWARNINGRISE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _PM2XXX_INT5_ITTHERMALWARNINGRISE@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh12:
	adrp	x24, _PM2XXX_INT5_ITTHERMALSHUTDOWNFALL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PM2XXX_INT5_ITTHERMALSHUTDOWNFALL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh14:
	adrp	x25, _PM2XXX_INT5_ITTHERMALSHUTDOWNRISE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PM2XXX_INT5_ITTHERMALSHUTDOWNRISE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	and	w1, w8, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pm2xxx_charger_die_therm_mngt
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PM2XXX_INT5_ITVSYSTEMOVV,4,2   ; @PM2XXX_INT5_ITVSYSTEMOVV
	.comm	_VSYSTEM_OVV,4,2                ; @VSYSTEM_OVV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VSYSTEM overvoltage detected\n"

	.comm	_PM2XXX_INT5_ITTHERMALWARNINGFALL,4,2 ; @PM2XXX_INT5_ITTHERMALWARNINGFALL
	.comm	_PM2XXX_INT5_ITTHERMALWARNINGRISE,4,2 ; @PM2XXX_INT5_ITTHERMALWARNINGRISE
	.comm	_PM2XXX_INT5_ITTHERMALSHUTDOWNFALL,4,2 ; @PM2XXX_INT5_ITTHERMALSHUTDOWNFALL
	.comm	_PM2XXX_INT5_ITTHERMALSHUTDOWNRISE,4,2 ; @PM2XXX_INT5_ITTHERMALSHUTDOWNRISE
l_.str.1:                               ; @.str.1
	.asciz	"BTEMP die temperature is too Low/High\n"

	.no_dead_strip	_pm2_int_reg4
.subsections_via_symbols
