	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_suspend                    ## -- Begin function pmu_suspend
	.p2align	4, 0x90
_pmu_suspend:                           ## @pmu_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	%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
	movq	_pmu_state@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_uninitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_pmu_suspended@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jg	LBB0_11
## %bb.2:
	movq	_pmu_lock@GOTPCREL(%rip), %rbx
	movq	_req_awaiting_reply@GOTPCREL(%rip), %r15
	movq	_adb_int_pending@GOTPCREL(%rip), %r12
	movq	_idle@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_via_pmu_interrupt
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.8:
	movq	_gpio_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_10
## %bb.9:
	callq	_disable_irq_nosync
LBB0_10:
	movq	_via1@GOTPCREL(%rip), %rax
	movq	_IER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	_CB1_INT@GOTPCREL(%rip), %rax
	movq	_IER_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_out_8
LBB0_11:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_state,8,3                  ## @pmu_state
	.comm	_uninitialized,8,3              ## @uninitialized
	.comm	_pmu_lock,4,2                   ## @pmu_lock
	.comm	_pmu_suspended,4,2              ## @pmu_suspended
	.comm	_req_awaiting_reply,8,3         ## @req_awaiting_reply
	.comm	_adb_int_pending,4,2            ## @adb_int_pending
	.comm	_idle,8,3                       ## @idle
	.comm	_gpio_irq,8,3                   ## @gpio_irq
	.comm	_via1,8,3                       ## @via1
	.comm	_IER,8,3                        ## @IER
	.comm	_CB1_INT,4,2                    ## @CB1_INT
	.comm	_IER_CLR,4,2                    ## @IER_CLR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_suspend                    ; -- Begin function pmu_suspend
	.p2align	2
_pmu_suspend:                           ; @pmu_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _pmu_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pmu_state@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _uninitialized@GOTPAGE
Lloh3:
	ldr	x9, [x9, _uninitialized@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x8, _pmu_suspended@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pmu_suspended@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cmp	w9, #0
	b.gt	LBB0_11
; %bb.3:
Lloh9:
	adrp	x19, _pmu_lock@GOTPAGE
Lloh10:
	ldr	x19, [x19, _pmu_lock@GOTPAGEOFF]
Lloh11:
	adrp	x21, _req_awaiting_reply@GOTPAGE
Lloh12:
	ldr	x21, [x21, _req_awaiting_reply@GOTPAGEOFF]
Lloh13:
	adrp	x22, _adb_int_pending@GOTPAGE
Lloh14:
	ldr	x22, [x22, _adb_int_pending@GOTPAGEOFF]
	mov	w23, #1
Lloh15:
	adrp	x24, _idle@GOTPAGE
Lloh16:
	ldr	x24, [x24, _idle@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	mov	x1, #0
	bl	_via_pmu_interrupt
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
	cbnz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x24]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x10, #0, #0, eq
	b.ne	LBB0_4
; %bb.8:
Lloh17:
	adrp	x8, _gpio_irq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _gpio_irq@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_10
; %bb.9:
	bl	_disable_irq_nosync
LBB0_10:
Lloh20:
	adrp	x8, _via1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _via1@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _IER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IER@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _CB1_INT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _CB1_INT@GOTPAGEOFF]
	add	x0, x8, x9, lsl #2
Lloh28:
	ldr	w8, [x10]
Lloh29:
	adrp	x9, _IER_CLR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IER_CLR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_out_8
LBB0_11:
Lloh32:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh33:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_state,8,3                  ; @pmu_state
	.comm	_uninitialized,8,3              ; @uninitialized
	.comm	_pmu_lock,4,2                   ; @pmu_lock
	.comm	_pmu_suspended,4,2              ; @pmu_suspended
	.comm	_req_awaiting_reply,8,3         ; @req_awaiting_reply
	.comm	_adb_int_pending,4,2            ; @adb_int_pending
	.comm	_idle,8,3                       ; @idle
	.comm	_gpio_irq,8,3                   ; @gpio_irq
	.comm	_via1,8,3                       ; @via1
	.comm	_IER,8,3                        ; @IER
	.comm	_CB1_INT,4,2                    ; @CB1_INT
	.comm	_IER_CLR,4,2                    ; @IER_CLR
.subsections_via_symbols
