	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fifo_enqueue
_fifo_enqueue:                          ## @fifo_enqueue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_FIFOBARTOHANDLE
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movl	8(%rbx), %ecx
	leal	1(%rcx), %esi
	movl	12(%rbx), %edx
	andl	%edx, %esi
	movslq	%esi, %rsi
	movq	_ENTRY_MASK_O@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	xorl	%r12d, %r12d
	testl	%edi, (%rax,%rsi,4)
	jne	LBB0_2
## %bb.1:
	movq	_ENTRY_MASK_NOSTATE@GOTPCREL(%rip), %rsi
	andl	(%rsi), %r15d
	orl	16(%rbx), %r15d
	andl	%ecx, %edx
	movslq	%edx, %rcx
	orl	%r15d, (%rax,%rcx,4)
	incl	8(%rbx)
	movl	$1, %r12d
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_MASK_O,4,2               ## @ENTRY_MASK_O
	.comm	_ENTRY_MASK_NOSTATE,4,2         ## @ENTRY_MASK_NOSTATE
	.no_dead_strip	_fifo_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fifo_enqueue
_fifo_enqueue:                          ; @fifo_enqueue
	.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	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_FIFOBARTOHANDLE
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldp	w9, w10, [x20, #8]
	add	w11, w9, #1
	and	w11, w11, w10
	ldr	w11, [x8, w11, sxtw #2]
Lloh0:
	adrp	x12, _ENTRY_MASK_O@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ENTRY_MASK_O@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x11, _ENTRY_MASK_NOSTATE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ENTRY_MASK_NOSTATE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	w11, w11, w21
	ldr	w12, [x20, #16]
	orr	w11, w11, w12
	and	w9, w10, w9
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w20, #1
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_MASK_O,4,2               ; @ENTRY_MASK_O
	.comm	_ENTRY_MASK_NOSTATE,4,2         ; @ENTRY_MASK_NOSTATE
	.no_dead_strip	_fifo_enqueue
.subsections_via_symbols
