	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_sa_classport_info_rec_query
_ib_sa_classport_info_rec_query:        ## @ib_sa_classport_info_rec_query
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$48, %edi
	movl	%r12d, %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	addq	$8, %r14
	movq	%rbx, 32(%rax)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_rdma_cap_opa_ah
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IB_SA_QUERY_OPA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	orl	%ecx, 24(%r13)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_alloc_mad
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13)
	movq	16(%r13), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_init_mad
	movq	_ib_sa_classport_info_rec_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_ib_sa_classport_info_rec_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_IB_SA_ATTR_CLASS_PORTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_send_mad
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
LBB0_8:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_free_mad
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_SA_QUERY_OPA,4,2            ## @IB_SA_QUERY_OPA
	.comm	_ib_sa_classport_info_rec_callback,4,2 ## @ib_sa_classport_info_rec_callback
	.comm	_ib_sa_classport_info_rec_release,4,2 ## @ib_sa_classport_info_rec_release
	.comm	_IB_MGMT_METHOD_GET,4,2         ## @IB_MGMT_METHOD_GET
	.comm	_IB_SA_ATTR_CLASS_PORTINFO,4,2  ## @IB_SA_ATTR_CLASS_PORTINFO
	.no_dead_strip	_ib_sa_classport_info_rec_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_sa_classport_info_rec_query
_ib_sa_classport_info_rec_query:        ; @ib_sa_classport_info_rec_query
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x25, x3
	mov	x26, x2
	mov	x21, x1
	mov	x27, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w0, #48
	mov	x1, x22
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x23, x0, #8
	str	x27, [x0, #32]
	ldr	x8, [x27, #8]
	ldr	w0, [x8]
	ldr	w1, [x27]
	bl	_rdma_cap_opa_ah
Lloh3:
	adrp	x8, _IB_SA_QUERY_OPA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SA_QUERY_OPA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	mov	x0, x23
	mov	x1, x22
	bl	_alloc_mad
	mov	x27, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_5
LBB0_4:
	str	x26, [x20]
	str	x25, [x20, #40]
	ldr	x8, [x20, #16]
	ldr	x25, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_init_mad
Lloh9:
	adrp	x8, _ib_sa_classport_info_rec_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ib_sa_classport_info_rec_callback@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ib_sa_classport_info_rec_release@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ib_sa_classport_info_rec_release@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
	stp	w9, w8, [x20, #8]
Lloh17:
	ldr	w8, [x10]
	str	w8, [x25, #12]
Lloh18:
	adrp	x8, _IB_SA_ATTR_CLASS_PORTINFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_SA_ATTR_CLASS_PORTINFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [x25, #8]
	str	xzr, [x25]
	str	x23, [x19]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_send_mad
	mov	x27, x0
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	x0, x27
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	str	xzr, [x19]
	mov	x0, x23
	bl	_free_mad
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_SA_QUERY_OPA,4,2            ; @IB_SA_QUERY_OPA
	.comm	_ib_sa_classport_info_rec_callback,4,2 ; @ib_sa_classport_info_rec_callback
	.comm	_ib_sa_classport_info_rec_release,4,2 ; @ib_sa_classport_info_rec_release
	.comm	_IB_MGMT_METHOD_GET,4,2         ; @IB_MGMT_METHOD_GET
	.comm	_IB_SA_ATTR_CLASS_PORTINFO,4,2  ; @IB_SA_ATTR_CLASS_PORTINFO
	.no_dead_strip	_ib_sa_classport_info_rec_query
.subsections_via_symbols
