	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_take
_rx_take:                               ## @rx_take
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	%esi, %ebx
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movq	_DBG_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_PRINTD
	leaq	(%rbx,%rbx,2), %rbx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r12,%rbx)
	je	LBB0_7
## %bb.1:
	movq	40(%r12,%rbx), %rsi
	cmpq	$0, 8(%rsi)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, (%rsi)
	je	LBB0_3
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx), %r13
	leaq	(%r12,%rbx), %r14
	addq	$40, %r14
	movq	%r15, %rdi
	callq	_rx_complete
	movq	(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	decq	(%r13)
	movl	32(%r12,%rbx), %edx
	movl	36(%r12,%rbx), %esi
	callq	_NEXTQ
	movq	%rax, (%r14)
	movq	(%r13), %rax
	xorl	%r15d, %r15d
	cmpq	8(%r12,%rbx), %rax
	jge	LBB0_5
## %bb.6:
	leaq	(%r12,%rbx), %rcx
	addq	$8, %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %r15d
	cmpq	$0, 24(%r12,%rbx)
	je	LBB0_9
## %bb.8:
	incl	20(%r12,%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_3:
	movl	$-1, %r15d
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$8, %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_RX,4,2                     ## @DBG_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_take %p[%hu]"

	.no_dead_strip	_rx_take
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_take
_rx_take:                               ; @rx_take
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _DBG_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_FLOW@GOTPAGEOFF]
	mov	w22, w1
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DBG_RX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DBG_RX@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
	mov	w8, #48
	umaddl	x23, w19, w8, x21
	add	x19, x23, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w8, #48
	madd	x24, x22, x8, x21
	ldr	x1, [x24, #40]!
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x1]
	cbz	x8, LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_rx_complete
	ldr	x0, [x24]
	stp	xzr, xzr, [x0]
	ldr	x8, [x23]
	sub	x8, x8, #1
	str	x8, [x23]
	mov	w8, #48
	madd	x21, x22, x8, x21
	ldp	w2, w1, [x21, #32]
	bl	_NEXTQ
	str	x0, [x24]
	ldr	x8, [x23]
	ldr	x9, [x21, #8]!
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.4:
	mov	w20, #0
	str	x8, [x21]
	b	LBB0_9
LBB0_5:
	mov	w8, #48
	madd	x8, x22, x8, x21
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w8, #48
	madd	x8, x22, x8, x21
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
LBB0_7:
	mov	w20, #-1
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_FLOW,4,2                   ; @DBG_FLOW
	.comm	_DBG_RX,4,2                     ; @DBG_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_take %p[%hu]"

	.no_dead_strip	_rx_take
.subsections_via_symbols
