	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_resume                     ## -- Begin function pmu_resume
	.p2align	4, 0x90
_pmu_resume:                            ## @pmu_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_pmu_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_uninitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_pmu_suspended@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.2:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.7:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_adb_int_pending@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_gpio_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.4:
	callq	_enable_irq
LBB0_5:
	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_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_out_8
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pmu_poll                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_state,8,3                  ## @pmu_state
	.comm	_uninitialized,8,3              ## @uninitialized
	.comm	_pmu_suspended,4,2              ## @pmu_suspended
	.comm	_pmu_lock,4,2                   ## @pmu_lock
	.comm	_adb_int_pending,4,2            ## @adb_int_pending
	.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_SET,4,2                    ## @IER_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_resume                     ; -- Begin function pmu_resume
	.p2align	2
_pmu_resume:                            ; @pmu_resume
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _pmu_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmu_state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _uninitialized@GOTPAGE
Lloh4:
	ldr	x9, [x9, _uninitialized@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x19, _pmu_suspended@GOTPAGE
Lloh7:
	ldr	x19, [x19, _pmu_suspended@GOTPAGEOFF]
	ldr	w10, [x19]
	cmp	x8, x9
	ccmp	w10, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	sub	w9, w8, #1
	str	w9, [x19]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
Lloh12:
	adrp	x8, _adb_int_pending@GOTPAGE
Lloh13:
	ldr	x8, [x8, _adb_int_pending@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
Lloh15:
	adrp	x8, _gpio_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _gpio_irq@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_6
; %bb.5:
	bl	_enable_irq
LBB0_6:
Lloh18:
	adrp	x8, _via1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _via1@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _IER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IER@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _CB1_INT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CB1_INT@GOTPAGEOFF]
	add	x0, x8, x9, lsl #2
Lloh26:
	ldr	w8, [x10]
Lloh27:
	adrp	x9, _IER_SET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IER_SET@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_out_8
Lloh30:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pmu_poll
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_state,8,3                  ; @pmu_state
	.comm	_uninitialized,8,3              ; @uninitialized
	.comm	_pmu_suspended,4,2              ; @pmu_suspended
	.comm	_pmu_lock,4,2                   ; @pmu_lock
	.comm	_adb_int_pending,4,2            ; @adb_int_pending
	.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_SET,4,2                    ; @IER_SET
.subsections_via_symbols
