	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_fifo_ctor                 ## -- Begin function nvkm_fifo_ctor
	.p2align	4, 0x90
_nvkm_fifo_ctor:                        ## @nvkm_fifo_ctor
	.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	%r8, %rbx
	movl	%ecx, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdi, 32(%r8)
	leaq	28(%r8), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	movl	(%rbx), %eax
	movq	_NVKM_FIFO_CHID_NR@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	setg	%dil
	callq	_WARN_ON
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %r12d
LBB0_2:
	movl	%r12d, (%rbx)
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_bitmap_clear
	leaq	16(%rbx), %r8
	movq	_nvkm_fifo@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_nvkm_engine_ctor
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	leaq	12(%rbx), %rcx
	movq	_nvkm_fifo_uevent_func@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_nvkm_event_init
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	leaq	8(%rbx), %rcx
	movq	_nvkm_fifo_cevent_func@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_nvkm_event_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	addq	$4, %rbx
	movq	_nvkm_fifo_kevent_func@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_event_init                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_FIFO_CHID_NR,4,2          ## @NVKM_FIFO_CHID_NR
	.comm	_nvkm_fifo,4,2                  ## @nvkm_fifo
	.comm	_nvkm_fifo_uevent_func,4,2      ## @nvkm_fifo_uevent_func
	.comm	_nvkm_fifo_cevent_func,4,2      ## @nvkm_fifo_cevent_func
	.comm	_nvkm_fifo_kevent_func,4,2      ## @nvkm_fifo_kevent_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_fifo_ctor                 ; -- Begin function nvkm_fifo_ctor
	.p2align	2
_nvkm_fifo_ctor:                        ; @nvkm_fifo_ctor
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	str	x0, [x4, #32]
	add	x0, x4, #28
	bl	_INIT_LIST_HEAD
	add	x0, x20, #24
	bl	_spin_lock_init
	ldr	w8, [x20]
Lloh0:
	adrp	x24, _NVKM_FIFO_CHID_NR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NVKM_FIFO_CHID_NR@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w2, w19, w8, eq
	str	w2, [x20]
	ldr	w0, [x20, #20]
	mov	w1, #0
	bl	_bitmap_clear
	add	x4, x20, #16
Lloh2:
	adrp	x0, _nvkm_fifo@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nvkm_fifo@GOTPAGEOFF]
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1
	bl	_nvkm_engine_ctor
	cbz	w0, LBB0_2
LBB0_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:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	add	x3, x20, #12
Lloh4:
	adrp	x0, _nvkm_fifo_uevent_func@GOTPAGE
Lloh5:
	ldr	x0, [x0, _nvkm_fifo_uevent_func@GOTPAGEOFF]
	mov	w1, #1
	mov	w2, #1
	bl	_nvkm_event_init
	cbnz	w0, LBB0_1
LBB0_4:
	add	x3, x20, #8
Lloh6:
	adrp	x0, _nvkm_fifo_cevent_func@GOTPAGE
Lloh7:
	ldr	x0, [x0, _nvkm_fifo_cevent_func@GOTPAGEOFF]
	mov	w1, #1
	mov	w2, #1
	bl	_nvkm_event_init
	cbnz	w0, LBB0_1
; %bb.5:
	add	x3, x20, #4
Lloh8:
	adrp	x0, _nvkm_fifo_kevent_func@GOTPAGE
Lloh9:
	ldr	x0, [x0, _nvkm_fifo_kevent_func@GOTPAGEOFF]
	mov	w1, #1
	mov	x2, x19
	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	_nvkm_event_init
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_FIFO_CHID_NR,4,2          ; @NVKM_FIFO_CHID_NR
	.comm	_nvkm_fifo,4,2                  ; @nvkm_fifo
	.comm	_nvkm_fifo_uevent_func,4,2      ; @nvkm_fifo_uevent_func
	.comm	_nvkm_fifo_cevent_func,4,2      ; @nvkm_fifo_cevent_func
	.comm	_nvkm_fifo_kevent_func,4,2      ; @nvkm_fifo_kevent_func
.subsections_via_symbols
