	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_give
_rx_give:                               ## @rx_give
	.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	%edx, %ecx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	%edx, %r14d
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movq	_DBG_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14,4), %r15
	leaq	(%rbx,%r15,8), %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx,%r15,8), %rax
	movl	$-1, %r13d
	cmpq	8(%rbx,%r15,8), %rax
	jge	LBB0_2
## %bb.1:
	leaq	(%rbx,%r15,8), %r13
	movq	_DBG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx,%r15,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINTD
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	24(%rbx,%r15,8), %rdi
	movl	%eax, (%rdi)
	incq	(%r13)
	movl	32(%rbx,%r15,8), %edx
	movl	36(%rbx,%r15,8), %esi
	callq	_NEXTQ
	movq	%rax, 24(%rbx,%r15,8)
	movq	_amb_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	callq	_offsetof
	movl	%eax, %r13d
	movq	24(%rbx,%r15,8), %rdi
	callq	_virt_to_bus
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_wr_mem
	xorl	%r13d, %r13d
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	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_RX,4,2                     ## @DBG_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_give %p[%hu]"

L_.str.1:                               ## @.str.1
	.asciz	"RX in slot %p"

	.comm	_amb_mem,4,2                    ## @amb_mem
	.comm	_mb,8,3                         ## @mb
	.no_dead_strip	_rx_give
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_give
_rx_give:                               ; @rx_give
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _DBG_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_FLOW@GOTPAGEOFF]
	mov	w22, w2
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _DBG_RX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DBG_RX@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w0, w9, w8
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_PRINTD
	mov	w8, #40
	umaddl	x24, w20, w8, x23
	add	x20, x24, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x25]
	mov	w8, #40
	madd	x23, x22, x8, x23
	ldr	x2, [x23, #24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PRINTD
	ldr	w8, [x21]
	ldr	x0, [x23, #24]
	str	w8, [x0]
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x24]
	ldp	w2, w1, [x23, #32]
	bl	_NEXTQ
	str	x0, [x23, #24]
Lloh9:
	adrp	x8, _amb_mem@GOTPAGE
Lloh10:
	ldr	x8, [x8, _amb_mem@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _mb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mb@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
	bl	_offsetof
	mov	x21, x0
	ldr	x0, [x23, #24]
	bl	_virt_to_bus
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_wr_mem
	mov	w19, #0
	b	LBB0_3
LBB0_2:
	mov	w19, #-1
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.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_give %p[%hu]"

l_.str.1:                               ; @.str.1
	.asciz	"RX in slot %p"

	.comm	_amb_mem,4,2                    ; @amb_mem
	.comm	_mb,8,3                         ; @mb
	.no_dead_strip	_rx_give
.subsections_via_symbols
