	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_event_enable_locked    ## -- Begin function nouveau_event_enable_locked
	.p2align	4, 0x90
_nouveau_event_enable_locked:           ## @nouveau_event_enable_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	16(%rdi), %r8
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%r8,%rcx,4)
	testl	%edx, %edx
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_event_enable_locked    ; -- Begin function nouveau_event_enable_locked
	.p2align	2
_nouveau_event_enable_locked:           ; @nouveau_event_enable_locked
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	sbfiz	x9, x1, #2, #32
	ldr	w10, [x8, x9]
	add	w11, w10, #1
	str	w11, [x8, x9]
	cbz	w10, LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldr	x2, [x0, #8]
	cbz	x2, LBB0_2
; %bb.4:
                                        ; kill: def $w1 killed $w1 killed $x1
	br	x2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
