	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm2_int_reg1
_pm2_int_reg1:                          ## @pm2_int_reg1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PM2XXX_INT2_ITVPWR1PLUG@GOTPCREL(%rip), %r15
	movq	_PM2XXX_INT2_ITVPWR2PLUG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	(%r15), %eax
	testl	%esi, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%r12), %esi
	orl	(%r15), %esi
	andl	%ebx, %esi
	movq	%r14, %rdi
	callq	_pm2xxx_charger_itv_pwr_plug_mngt
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_PM2XXX_INT2_ITVPWR1UNPLUG@GOTPCREL(%rip), %r15
	movq	_PM2XXX_INT2_ITVPWR2UNPLUG@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	testl	%ebx, %ecx
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	(%r12), %esi
	orl	(%r15), %esi
	andl	%ebx, %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm2xxx_charger_itv_pwr_unplug_mngt ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM2XXX_INT2_ITVPWR1PLUG,4,2    ## @PM2XXX_INT2_ITVPWR1PLUG
	.comm	_PM2XXX_INT2_ITVPWR2PLUG,4,2    ## @PM2XXX_INT2_ITVPWR2PLUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Main charger plugged\n"

	.comm	_PM2XXX_INT2_ITVPWR1UNPLUG,4,2  ## @PM2XXX_INT2_ITVPWR1UNPLUG
	.comm	_PM2XXX_INT2_ITVPWR2UNPLUG,4,2  ## @PM2XXX_INT2_ITVPWR2UNPLUG
L_.str.1:                               ## @.str.1
	.asciz	"Main charger unplugged\n"

	.no_dead_strip	_pm2_int_reg1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm2_int_reg1
_pm2_int_reg1:                          ; @pm2_int_reg1
	.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	x21, _PM2XXX_INT2_ITVPWR1PLUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PM2XXX_INT2_ITVPWR1PLUG@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _PM2XXX_INT2_ITVPWR2PLUG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PM2XXX_INT2_ITVPWR2PLUG@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	and	w1, w8, w20
	mov	x0, x19
	bl	_pm2xxx_charger_itv_pwr_plug_mngt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh6:
	adrp	x21, _PM2XXX_INT2_ITVPWR1UNPLUG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PM2XXX_INT2_ITVPWR1UNPLUG@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh8:
	adrp	x22, _PM2XXX_INT2_ITVPWR2UNPLUG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PM2XXX_INT2_ITVPWR2UNPLUG@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	and	w1, w8, w20
	mov	x0, x19
	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
	b	_pm2xxx_charger_itv_pwr_unplug_mngt
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PM2XXX_INT2_ITVPWR1PLUG,4,2    ; @PM2XXX_INT2_ITVPWR1PLUG
	.comm	_PM2XXX_INT2_ITVPWR2PLUG,4,2    ; @PM2XXX_INT2_ITVPWR2PLUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Main charger plugged\n"

	.comm	_PM2XXX_INT2_ITVPWR1UNPLUG,4,2  ; @PM2XXX_INT2_ITVPWR1UNPLUG
	.comm	_PM2XXX_INT2_ITVPWR2UNPLUG,4,2  ; @PM2XXX_INT2_ITVPWR2UNPLUG
l_.str.1:                               ; @.str.1
	.asciz	"Main charger unplugged\n"

	.no_dead_strip	_pm2_int_reg1
.subsections_via_symbols
