	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fifo_dequeue
_fifo_dequeue:                          ## @fifo_dequeue
	.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	%rdx, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_FIFOBARTOHANDLE
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	andq	%rax, %rdx
	movl	(%rcx,%rdx,4), %esi
	movq	_ENTRY_MASK_C@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_ENTRY_MASK_NOSTATE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%esi, %edi
	movl	%edi, (%r15)
LBB0_4:
	movq	_ENTRY_MASK@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	incl	%esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rax
	movq	%rax, 8(%rbx)
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_MASK_C,4,2               ## @ENTRY_MASK_C
	.comm	_ENTRY_MASK_NOSTATE,4,2         ## @ENTRY_MASK_NOSTATE
	.comm	_ENTRY_MASK,4,2                 ## @ENTRY_MASK
	.no_dead_strip	_fifo_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fifo_dequeue
_fifo_dequeue:                          ; @fifo_dequeue
	.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
	ldp	x8, x9, [x20]
	ldr	x10, [x20, #16]
	and	x10, x10, x9
	ldr	w11, [x8, x10, lsl #2]
Lloh0:
	adrp	x12, _ENTRY_MASK_C@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ENTRY_MASK_C@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_4
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
Lloh3:
	adrp	x12, _ENTRY_MASK_NOSTATE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _ENTRY_MASK_NOSTATE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	and	w12, w12, w11
	str	w12, [x21]
LBB0_3:
Lloh6:
	adrp	x12, _ENTRY_MASK@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ENTRY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w11, w12, w11
	add	w11, w11, #1
	str	w11, [x8, x10, lsl #2]
	add	x8, x9, #1
	str	x8, [x20, #8]
	mov	w20, #1
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_MASK_C,4,2               ; @ENTRY_MASK_C
	.comm	_ENTRY_MASK_NOSTATE,4,2         ; @ENTRY_MASK_NOSTATE
	.comm	_ENTRY_MASK,4,2                 ; @ENTRY_MASK
	.no_dead_strip	_fifo_dequeue
.subsections_via_symbols
