	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifmp_ring_check_drainage       ## -- Begin function ifmp_ring_check_drainage
	.p2align	4, 0x90
_ifmp_ring_check_drainage:              ## @ifmp_ring_check_drainage
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_STALLED@GOTPCREL(%rip), %rcx
	movq	_ABDICATED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rcx), %rbx
	je	LBB0_2
## %bb.1:
	cmpq	%rax, %rbx
	jne	LBB0_5
LBB0_2:
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	*8(%r15)
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	callq	_MPASS
	movq	_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_atomic_cmpset_acq_64
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drain_ring_lockless            ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STALLED,8,3                    ## @STALLED
	.comm	_ABDICATED,8,3                  ## @ABDICATED
	.comm	_BUSY,8,3                       ## @BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifmp_ring_check_drainage       ; -- Begin function ifmp_ring_check_drainage
	.p2align	2
_ifmp_ring_check_drainage:              ; @ifmp_ring_check_drainage
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _STALLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STALLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _ABDICATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABDICATED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x9
	ccmp	x20, x8, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
	bl	_MPASS
Lloh6:
	adrp	x8, _BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUSY@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_atomic_cmpset_acq_64
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, 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	_drain_ring_lockless
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STALLED,8,3                    ; @STALLED
	.comm	_ABDICATED,8,3                  ; @ABDICATED
	.comm	_BUSY,8,3                       ; @BUSY
.subsections_via_symbols
