	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_mcmember_rec_query       ## -- Begin function ib_sa_mcmember_rec_query
	.p2align	4, 0x90
_ib_sa_mcmember_rec_query:              ## @ib_sa_mcmember_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
	movl	%r9d, %r12d
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_sa_client@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_ib_get_client_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r12d
	movq	8(%rax), %r15
	subq	(%rax), %rbx
	movq	(%r15,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$56, %edi
	movl	%r12d, %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	leaq	(%r15,%rbx,8), %rax
	movq	%r13, %rbx
	addq	$8, %rbx
	movq	%rax, 40(%r13)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_alloc_mad
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	48(%rbp), %r12
	movq	32(%rbp), %r15
	movq	%r14, %rdi
	callq	_ib_sa_client_get
	movq	%r14, 8(%r13)
	movq	%r15, (%r13)
	movq	40(%rbp), %rax
	movq	%rax, 48(%r13)
	movq	32(%r13), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_init_mad
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	_ib_sa_mcmember_rec_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_8:
	movq	%r15, 24(%r13)
	movq	_ib_sa_mcmember_rec_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	_IB_SA_ATTR_MC_MEMBER_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 16(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	_mcmember_rec_table@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_ib_pack
	movq	%rbx, (%r12)
	movq	%rbx, %rdi
	movl	16(%rbp), %esi
	movl	24(%rbp), %edx
	callq	_send_mad
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_11
## %bb.9:
	movq	$0, (%r12)
	movq	(%rbx), %rdi
	callq	_ib_sa_client_put
	movq	%rbx, %rdi
	callq	_free_mad
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ib_sa_mcmember_rec_callback,8,3 ## @ib_sa_mcmember_rec_callback
	.comm	_ib_sa_mcmember_rec_release,4,2 ## @ib_sa_mcmember_rec_release
	.comm	_IB_SA_ATTR_MC_MEMBER_REC,4,2   ## @IB_SA_ATTR_MC_MEMBER_REC
	.comm	_mcmember_rec_table,4,2         ## @mcmember_rec_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_mcmember_rec_query       ; -- Begin function ib_sa_mcmember_rec_query
	.p2align	2
_ib_sa_mcmember_rec_query:              ; @ib_sa_mcmember_rec_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x7
	mov	x20, x6
	mov	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x21, x2
	mov	x8, x1
	mov	x26, x0
Lloh0:
	adrp	x1, _sa_client@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sa_client@GOTPAGEOFF]
	mov	x0, x8
	bl	_ib_get_client_data
	cbz	x0, LBB0_4
; %bb.1:
	ldp	x9, x8, [x0]
	sub	x9, x21, x9
	add	x28, x8, x9, lsl #3
	ldr	x27, [x28]
	mov	w0, #56
	mov	x1, x19
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x23, x0, #8
	str	x28, [x0, #40]
	mov	x0, x23
	mov	x1, x19
	bl	_alloc_mad
	mov	x28, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_kfree
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_7:
	mov	x0, x28
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x8, [x29, #32]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x29, #24]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x28, [x29, #16]
	mov	x0, x26
	bl	_ib_sa_client_get
	stp	x28, x26, [x21]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x8, [x21, #48]
	ldr	x8, [x21, #32]
	ldr	x26, [x8]
	mov	x0, x26
	mov	x1, x27
	bl	_init_mad
Lloh6:
	adrp	x8, _ib_sa_mcmember_rec_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ib_sa_mcmember_rec_callback@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x28, #0
	csel	x8, xzr, x8, eq
	str	x8, [x21, #24]
Lloh9:
	adrp	x8, _ib_sa_mcmember_rec_release@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ib_sa_mcmember_rec_release@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x25, [x26, #8]
Lloh12:
	adrp	x8, _IB_SA_ATTR_MC_MEMBER_REC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_SA_ATTR_MC_MEMBER_REC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [x26, #16]
	str	w24, [x26, #4]
Lloh15:
	adrp	x8, _mcmember_rec_table@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mcmember_rec_table@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w3, [x26]
	mov	x0, x24
	mov	x2, x22
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	bl	_ib_pack
	str	x23, [x22]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_send_mad
	mov	x28, x0
	tbz	w0, #31, LBB0_7
; %bb.9:
	str	xzr, [x22]
	ldr	x0, [x23]
	bl	_ib_sa_client_put
	mov	x0, x23
	bl	_free_mad
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ib_sa_mcmember_rec_callback,8,3 ; @ib_sa_mcmember_rec_callback
	.comm	_ib_sa_mcmember_rec_release,4,2 ; @ib_sa_mcmember_rec_release
	.comm	_IB_SA_ATTR_MC_MEMBER_REC,4,2   ; @IB_SA_ATTR_MC_MEMBER_REC
	.comm	_mcmember_rec_table,4,2         ; @mcmember_rec_table
.subsections_via_symbols
