	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rvt_create_mad_agents
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rvt_create_mad_agents
	.p2align	4, 0x90
_rvt_create_mad_agents:                 ## @rvt_create_mad_agents
	.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
	cmpl	$0, 24(%rdi)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	leaq	28(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	24(%r15), %rax
	movq	%r13, %r12
	cmpq	%rax, %r13
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %r14
	leaq	1(%r12), %r13
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rvt_send_mad_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$0, 16(%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_register_mad_agent
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%r14)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*%rax
	jmp	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	cmpl	$0, 24(%r15)
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	24(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rax)
	callq	_ib_unregister_mad_agent
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*%rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_SMI,4,2                 ## @IB_QPT_SMI
	.comm	_rvt_send_mad_handler,4,2       ## @rvt_send_mad_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_create_mad_agents          ; -- Begin function rvt_create_mad_agents
	.p2align	2
_rvt_create_mad_agents:                 ; @rvt_create_mad_agents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	w8, [x0, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x20, x0, #28
Lloh0:
	adrp	x24, _IB_QPT_SMI@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IB_QPT_SMI@GOTPAGEOFF]
Lloh2:
	adrp	x25, _rvt_send_mad_handler@GOTPAGE
Lloh3:
	ldr	x25, [x25, _rvt_send_mad_handler@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x19, #24]
	mov	x21, x22
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x26, [x8, x21, lsl #3]
	add	x22, x21, #1
	ldr	w2, [x24]
	ldr	w5, [x25]
	str	wzr, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ib_register_mad_agent
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x23, [x26]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	blr	x8
	b	LBB0_2
LBB0_6:
	mov	w20, #0
LBB0_7:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #24]
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	xzr, [x8]
	bl	_ib_unregister_mad_agent
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x21
	blr	x8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_SMI,4,2                 ; @IB_QPT_SMI
	.comm	_rvt_send_mad_handler,4,2       ; @rvt_send_mad_handler
.subsections_via_symbols
