	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_modify_srq                 ## -- Begin function siw_modify_srq
	.p2align	4, 0x90
_siw_modify_srq:                        ## @siw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	callq	_to_siw_srq
	movq	%rax, %r15
	leaq	24(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_IB_SRQ_MAX_WR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IB_SRQ_LIMIT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.4:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movl	$0, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$1, 8(%r15)
	movq	(%r12), %rax
LBB0_9:
	movq	%rax, 16(%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SRQ_MAX_WR,4,2              ## @IB_SRQ_MAX_WR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IB_SRQ_LIMIT,4,2               ## @IB_SRQ_LIMIT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_modify_srq                 ; -- Begin function siw_modify_srq
	.p2align	2
_siw_modify_srq:                        ; @siw_modify_srq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x21, x1
	bl	_to_siw_srq
	mov	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _IB_SRQ_MAX_WR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SRQ_MAX_WR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _IB_SRQ_LIMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_SRQ_LIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	mov	w21, #0
	b	LBB0_3
LBB0_9:
	str	wzr, [x20, #8]
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x21]
LBB0_11:
	mov	w21, #0
	str	x8, [x20, #16]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SRQ_MAX_WR,4,2              ; @IB_SRQ_MAX_WR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IB_SRQ_LIMIT,4,2               ; @IB_SRQ_LIMIT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
