	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_uverbs_query_qp
_ib_uverbs_query_qp:                    ## @ib_uverbs_query_qp
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_uverbs_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$120, %edi
	callq	_kmalloc
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$120, %edi
	callq	_kmalloc
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	movq	_UVERBS_OBJECT_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rcx
	callq	_uobj_get_obj_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movl	-48(%rbp), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_ib_query_qp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_uobj_put_obj_read
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	leaq	-168(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$116, %edx
	callq	_memset
	movl	116(%r14), %eax
	movl	%eax, -56(%rbp)
	movups	100(%r14), %xmm0
	movups	%xmm0, -72(%rbp)
	movups	84(%r14), %xmm0
	movups	%xmm0, -88(%rbp)
	movups	68(%r14), %xmm0
	movups	%xmm0, -104(%rbp)
	movups	52(%r14), %xmm0
	movups	%xmm0, -120(%rbp)
	movups	36(%r14), %xmm0
	movups	%xmm0, -136(%rbp)
	leaq	-140(%rbp), %rdi
	leaq	32(%r14), %rsi
	callq	_copy_ah_attr_to_uverbs
	leaq	-144(%rbp), %rdi
	movq	%r14, %rsi
	addq	$28, %rsi
	callq	_copy_ah_attr_to_uverbs
	movl	24(%r15), %eax
	movl	%eax, -148(%rbp)
	movups	8(%r15), %xmm0
	movups	%xmm0, -164(%rbp)
	movq	(%r15), %rax
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -168(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$116, %edx
	callq	_uverbs_response
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVERBS_OBJECT_QP,4,2           ## @UVERBS_OBJECT_QP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_SIGNAL_ALL_WR,8,3           ## @IB_SIGNAL_ALL_WR
	.no_dead_strip	_ib_uverbs_query_qp
.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_qp
_ib_uverbs_query_qp:                    ; @ib_uverbs_query_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x0
	sub	x1, x29, #56
	mov	w2, #8
	bl	_uverbs_request
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #120
	bl	_kmalloc
	mov	x19, x0
	ldr	w1, [x21]
	mov	w0, #120
	bl	_kmalloc
	mov	x21, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _UVERBS_OBJECT_QP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UVERBS_OBJECT_QP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldur	w2, [x29, #-52]
	mov	x3, x20
	bl	_uobj_get_obj_read
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	ldur	w2, [x29, #-56]
	mov	x1, x19
	mov	x3, x21
	bl	_ib_query_qp
	mov	x22, x0
	mov	x0, x23
	bl	_uobj_put_obj_read
	cbnz	w22, LBB0_8
; %bb.5:
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #116
	bl	_memset
	ldr	w8, [x19, #116]
	str	w8, [sp, #112]
	ldur	q0, [x19, #100]
	str	q0, [sp, #96]
	ldur	q0, [x19, #84]
	str	q0, [sp, #80]
	ldur	q0, [x19, #68]
	str	q0, [sp, #64]
	ldur	q0, [x19, #52]
	str	q0, [sp, #48]
	ldur	q0, [x19, #36]
	str	q0, [sp, #32]
	add	x0, x22, #28
	add	x1, x19, #32
	bl	_copy_ah_attr_to_uverbs
	add	x0, x22, #24
	add	x1, x19, #28
	bl	_copy_ah_attr_to_uverbs
	ldr	w8, [x21, #24]
	str	w8, [sp, #20]
	ldur	q0, [x21, #8]
	stur	q0, [sp, #4]
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #116
	bl	_uverbs_response
	mov	x22, x0
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	bl	_kfree
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVERBS_OBJECT_QP,4,2           ; @UVERBS_OBJECT_QP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_SIGNAL_ALL_WR,8,3           ; @IB_SIGNAL_ALL_WR
	.no_dead_strip	_ib_uverbs_query_qp
.subsections_via_symbols
