	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_fifo_runlist_insert      ## -- Begin function gk104_fifo_runlist_insert
	.p2align	4, 0x90
_gk104_fifo_runlist_insert:             ## @gk104_fifo_runlist_insert
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r15
	callq	_mutex_lock
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movl	8(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r15)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	4(%r15), %rdi
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
LBB0_3:
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rsi
	addq	$8, %rbx
	shlq	$3, %rsi
	addq	8(%r14), %rsi
	movq	%rbx, %rdi
LBB0_5:
	callq	_list_add_tail
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_fifo_runlist_insert      ; -- Begin function gk104_fifo_runlist_insert
	.p2align	2
_gk104_fifo_runlist_insert:             ; @gk104_fifo_runlist_insert
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1, #16]
	bl	_mutex_lock
	cbz	x21, LBB0_4
; %bb.1:
	ldr	w8, [x21, #8]
	add	w9, w8, #1
	str	w9, [x21, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	add	x0, x21, #4
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #3
	add	x1, x8, #4
	bl	_list_add_tail
LBB0_3:
	add	x0, x20, #8
	mov	x1, x21
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x20], #8
	add	x1, x8, x9, lsl #3
	mov	x0, x20
LBB0_5:
	bl	_list_add_tail
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
