	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pga_event
_pga_event:                             ## @pga_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movl	(%rdi), %ecx
	leal	-2(%rcx), %esi
	cmpl	$2, %esi
	jb	LBB0_3
## %bb.1:
	cmpl	$1, %ecx
	ja	LBB0_10
## %bb.2:
	addq	$8, %rax
LBB0_3:
	xorl	%r14d, %r14d
	cmpl	$128, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.5:
	movq	_WM8350_RAMP_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_6:
	movq	_WM8350_RAMP_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$0, (%rax)
LBB0_7:
	movq	%rbx, %rdi
	callq	_delayed_work_pending
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	callq	_BUG
	movl	$-1, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_RAMP_UP,4,2             ## @WM8350_RAMP_UP
	.comm	_WM8350_RAMP_DOWN,4,2           ## @WM8350_RAMP_DOWN
	.no_dead_strip	_pga_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pga_event
_pga_event:                             ; @pga_event
	.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
	ldr	x19, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	w9, [x0]
	sub	w10, w9, #2
	cmp	w10, #2
	b.lo	LBB0_3
; %bb.1:
	cmp	w9, #1
	b.hi	LBB0_9
; %bb.2:
	add	x8, x8, #8
LBB0_3:
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w2, #129
	b.ne	LBB0_8
; %bb.5:
Lloh0:
	adrp	x9, _WM8350_RAMP_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM8350_RAMP_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #1
	stp	w10, w9, [x8]
	mov	x0, x19
	bl	_delayed_work_pending
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x9, _WM8350_RAMP_DOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WM8350_RAMP_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	wzr, w9, [x8]
	mov	x0, x19
	bl	_delayed_work_pending
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_10
LBB0_7:
	mov	w0, #1
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	bl	_BUG
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_RAMP_UP,4,2             ; @WM8350_RAMP_UP
	.comm	_WM8350_RAMP_DOWN,4,2           ; @WM8350_RAMP_DOWN
	.no_dead_strip	_pga_event
.subsections_via_symbols
