	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_query_srq
_ib_uverbs_query_srq:                   ## @ib_uverbs_query_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	movl	$4, %edx
	callq	_uverbs_request
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_UVERBS_OBJECT_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %edx
	movq	%r14, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ib_query_srq
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_uobj_put_obj_read
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-40(%rbp), %eax
	movl	%eax, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_uverbs_response
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_UVERBS_OBJECT_SRQ,4,2          ## @UVERBS_OBJECT_SRQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ib_uverbs_query_srq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_uverbs_query_srq
_ib_uverbs_query_srq:                   ; @ib_uverbs_query_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	add	x1, sp, #40
	mov	w2, #4
	bl	_uverbs_request
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_2:
Lloh0:
	adrp	x8, _UVERBS_OBJECT_SRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVERBS_OBJECT_SRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [sp, #40]
	mov	x3, x19
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	add	x1, sp, #8
	bl	_ib_query_srq
	mov	x20, x0
	mov	x0, x21
	bl	_uobj_put_obj_read
	cbnz	w20, LBB0_1
; %bb.4:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [sp, #16]
	str	w8, [sp, #32]
	ldr	d0, [sp, #8]
	str	d0, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #12
	bl	_uverbs_response
	mov	x20, x0
	b	LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UVERBS_OBJECT_SRQ,4,2          ; @UVERBS_OBJECT_SRQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ib_uverbs_query_srq
.subsections_via_symbols
