	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_modify_srq              ## -- Begin function pvrdma_modify_srq
	.p2align	4, 0x90
_pvrdma_modify_srq:                     ## @pvrdma_modify_srq
	.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, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_vsrq
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_vdev
	movq	%rax, %r14
	movq	_IB_SRQ_LIMIT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PVRDMA_CMD_MODIFY_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	%r13d, -56(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pvrdma_cmd_post
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SRQ_LIMIT,4,2               ## @IB_SRQ_LIMIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PVRDMA_CMD_MODIFY_SRQ,4,2      ## @PVRDMA_CMD_MODIFY_SRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not modify shared receive queue, error: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_modify_srq              ; -- Begin function pvrdma_modify_srq
	.p2align	2
_pvrdma_modify_srq:                     ; @pvrdma_modify_srq
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_to_vsrq
	mov	x22, x0
	ldr	w0, [x19]
	bl	_to_vdev
Lloh0:
	adrp	x8, _IB_SRQ_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SRQ_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _PVRDMA_CMD_MODIFY_SRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVRDMA_CMD_MODIFY_SRQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w9, [x22]
	ldr	w8, [x21]
	stp	w8, w9, [sp, #4]
	str	w20, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_pvrdma_cmd_post
	mov	x2, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w2, w8
LBB0_4:
	mov	x0, x2
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SRQ_LIMIT,4,2               ; @IB_SRQ_LIMIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PVRDMA_CMD_MODIFY_SRQ,4,2      ; @PVRDMA_CMD_MODIFY_SRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not modify shared receive queue, error: %d\n"

.subsections_via_symbols
