	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcrdma_buffer_put             ## -- Begin function rpcrdma_buffer_put
	.p2align	4, 0x90
_rpcrdma_buffer_put:                    ## @rpcrdma_buffer_put
	.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
	movq	%rdi, %r14
	movq	32(%rdi), %r13
	movq	%r13, %rdi
	callq	_rdmab_to_ia
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_BUG_ON
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%r13)
	movq	%r14, -8(%rcx,%rax,8)
	movq	$0, 24(%r14)
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r13), %rcx
	movq	24(%r13), %rdx
	leaq	-1(%rcx), %rsi
	movq	%rsi, 8(%r13)
	movq	%rax, -8(%rdx,%rcx,8)
	movq	16(%r14), %rdi
	addq	$8, %rdi
	callq	_init_waitqueue_head
	movq	16(%r14), %rax
	movq	$0, (%rax)
	movq	$0, 16(%r14)
LBB0_2:
	movl	(%r12), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$20, %r13
	movl	$1, %ebx
	movq	_RPCRDMA_MAX_SEGS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movq	(%r15,%rbx,8), %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	$0, (%r15,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	8(%r14), %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RPCRDMA_MAX_SEGS,4,2           ## @RPCRDMA_MAX_SEGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcrdma_buffer_put             ; -- Begin function rpcrdma_buffer_put
	.p2align	2
_rpcrdma_buffer_put:                    ; @rpcrdma_buffer_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x21, [x0, #32]
	mov	x0, x21
	bl	_rdmab_to_ia
	mov	x22, x0
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_BUG_ON
	add	x20, x21, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #32]
	ldr	x9, [x21]
	sub	x9, x9, #1
	str	x9, [x21]
	str	x19, [x8, x9, lsl #3]
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x21, #24]
	ldr	x10, [x21, #8]
	sub	x10, x10, #1
	str	x10, [x21, #8]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	bl	_init_waitqueue_head
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	str	xzr, [x19, #16]
LBB0_2:
	ldr	w8, [x22]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	add	x21, x21, #20
	mov	w22, #1
Lloh0:
	adrp	x23, _RPCRDMA_MAX_SEGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RPCRDMA_MAX_SEGS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	lsl	x25, x22, #3
	ldr	x0, [x24, x25]
	mov	x1, x21
	bl	_list_add_tail
	str	xzr, [x24, x25]
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_4
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_list_add_tail
	ldr	x8, [x19, #8]
	str	xzr, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RPCRDMA_MAX_SEGS,4,2           ; @RPCRDMA_MAX_SEGS
.subsections_via_symbols
