	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_device_suspend          ## -- Begin function wm831x_device_suspend
	.p2align	4, 0x90
_wm831x_device_suspend:                 ## @wm831x_device_suspend
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	_WM831X_INTERRUPT_STATUS_2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wm831x_reg_read
	movq	_WM831X_CHG_BATT_HOT_EINT@GOTPCREL(%rip), %rcx
	movq	_WM831X_CHG_BATT_COLD_EINT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_BATT_FAIL_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_OV_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_END_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_TO_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_MODE_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_WM831X_CHG_START_EINT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	testl	%eax, %ebx
	je	LBB0_4
## %bb.2:
	movq	_WM831X_INTERRUPT_STATUS_2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_wm831x_reg_read
	movl	%eax, %r14d
	andl	%ebx, %r14d
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wm831x_reg_write
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_INTERRUPT_STATUS_2_MASK,4,2 ## @WM831X_INTERRUPT_STATUS_2_MASK
	.comm	_WM831X_CHG_BATT_HOT_EINT,4,2   ## @WM831X_CHG_BATT_HOT_EINT
	.comm	_WM831X_CHG_BATT_COLD_EINT,4,2  ## @WM831X_CHG_BATT_COLD_EINT
	.comm	_WM831X_CHG_BATT_FAIL_EINT,4,2  ## @WM831X_CHG_BATT_FAIL_EINT
	.comm	_WM831X_CHG_OV_EINT,4,2         ## @WM831X_CHG_OV_EINT
	.comm	_WM831X_CHG_END_EINT,4,2        ## @WM831X_CHG_END_EINT
	.comm	_WM831X_CHG_TO_EINT,4,2         ## @WM831X_CHG_TO_EINT
	.comm	_WM831X_CHG_MODE_EINT,4,2       ## @WM831X_CHG_MODE_EINT
	.comm	_WM831X_CHG_START_EINT,4,2      ## @WM831X_CHG_START_EINT
	.comm	_WM831X_INTERRUPT_STATUS_2,4,2  ## @WM831X_INTERRUPT_STATUS_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Acknowledging masked charger IRQs: %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_device_suspend          ; -- Begin function wm831x_device_suspend
	.p2align	2
_wm831x_device_suspend:                 ; @wm831x_device_suspend
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _WM831X_INTERRUPT_STATUS_2_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_INTERRUPT_STATUS_2_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wm831x_reg_read
Lloh3:
	adrp	x8, _WM831X_CHG_BATT_HOT_EINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_CHG_BATT_HOT_EINT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WM831X_CHG_BATT_COLD_EINT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM831X_CHG_BATT_COLD_EINT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _WM831X_CHG_BATT_FAIL_EINT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WM831X_CHG_BATT_FAIL_EINT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _WM831X_CHG_OV_EINT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WM831X_CHG_OV_EINT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _WM831X_CHG_END_EINT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WM831X_CHG_END_EINT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _WM831X_CHG_TO_EINT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WM831X_CHG_TO_EINT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _WM831X_CHG_MODE_EINT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WM831X_CHG_MODE_EINT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _WM831X_CHG_START_EINT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WM831X_CHG_START_EINT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w20, w8, w9
	tst	w20, w0
	b.eq	LBB0_4
; %bb.2:
Lloh27:
	adrp	x21, _WM831X_INTERRUPT_STATUS_2@GOTPAGE
Lloh28:
	ldr	x21, [x21, _WM831X_INTERRUPT_STATUS_2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wm831x_reg_read
	ands	w20, w0, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_wm831x_reg_write
LBB0_4:
	mov	w0, #0
	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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_INTERRUPT_STATUS_2_MASK,4,2 ; @WM831X_INTERRUPT_STATUS_2_MASK
	.comm	_WM831X_CHG_BATT_HOT_EINT,4,2   ; @WM831X_CHG_BATT_HOT_EINT
	.comm	_WM831X_CHG_BATT_COLD_EINT,4,2  ; @WM831X_CHG_BATT_COLD_EINT
	.comm	_WM831X_CHG_BATT_FAIL_EINT,4,2  ; @WM831X_CHG_BATT_FAIL_EINT
	.comm	_WM831X_CHG_OV_EINT,4,2         ; @WM831X_CHG_OV_EINT
	.comm	_WM831X_CHG_END_EINT,4,2        ; @WM831X_CHG_END_EINT
	.comm	_WM831X_CHG_TO_EINT,4,2         ; @WM831X_CHG_TO_EINT
	.comm	_WM831X_CHG_MODE_EINT,4,2       ; @WM831X_CHG_MODE_EINT
	.comm	_WM831X_CHG_START_EINT,4,2      ; @WM831X_CHG_START_EINT
	.comm	_WM831X_INTERRUPT_STATUS_2,4,2  ; @WM831X_INTERRUPT_STATUS_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Acknowledging masked charger IRQs: %x\n"

.subsections_via_symbols
