	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drain_rx_pool
_drain_rx_pool:                         ## @drain_rx_pool
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movq	_DBG_POOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_PRINTD
	movq	_dead@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movzbl	%r14b, %r14d
	movq	%r14, %rax
	shlq	$4, %rax
	movq	(%r15,%rax), %rcx
	cmpq	8(%r15,%rax), %rcx
	jle	LBB0_8
## %bb.2:
	leaq	(%r15,%rax), %r12
	leaq	(%r15,%rax), %r13
	addq	$8, %r13
	movq	_SRB_FLUSH_BUFFER_Q@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	_SRB_POOL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	shll	%cl, %eax
	movzbl	%al, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_command_do
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_command_do
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rx_take
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_schedule
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jg	LBB0_6
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_FLOW,4,2                   ## @DBG_FLOW
	.comm	_DBG_POOL,4,2                   ## @DBG_POOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drain_rx_pool %p %hu"

	.comm	_dead,4,2                       ## @dead
	.comm	_SRB_FLUSH_BUFFER_Q,1,0         ## @SRB_FLUSH_BUFFER_Q
	.comm	_SRB_POOL_SHIFT,1,0             ## @SRB_POOL_SHIFT
	.no_dead_strip	_drain_rx_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drain_rx_pool
_drain_rx_pool:                         ; @drain_rx_pool
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DBG_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_FLOW@GOTPAGEOFF]
	ldr	x21, [x0, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DBG_POOL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DBG_POOL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_PRINTD
Lloh8:
	adrp	x8, _dead@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dead@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.1:
	add	x21, x21, w19, uxtw #4
	ldr	x8, [x21]
	mov	x22, x21
	ldr	x9, [x22, #8]!
	cmp	x8, x9
	b.le	LBB0_8
; %bb.2:
Lloh11:
	adrp	x8, _SRB_FLUSH_BUFFER_Q@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SRB_FLUSH_BUFFER_Q@GOTPAGEOFF]
	ldrb	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #8]
Lloh13:
	adrp	x8, _SRB_POOL_SHIFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SRB_POOL_SHIFT@GOTPAGEOFF]
	ldrb	w8, [x8]
	lsl	w8, w19, w8
	and	w0, w8, #0xff
	bl	_cpu_to_be32
	str	x0, [sp]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_command_do
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_schedule
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_rx_take
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_schedule
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.gt	LBB0_5
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_FLOW,4,2                   ; @DBG_FLOW
	.comm	_DBG_POOL,4,2                   ; @DBG_POOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drain_rx_pool %p %hu"

	.comm	_dead,4,2                       ; @dead
	.comm	_SRB_FLUSH_BUFFER_Q,1,0         ; @SRB_FLUSH_BUFFER_Q
	.comm	_SRB_POOL_SHIFT,1,0             ; @SRB_POOL_SHIFT
	.no_dead_strip	_drain_rx_pool
.subsections_via_symbols
