	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qib_create_agents
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_qib_create_agents
	.p2align	4, 0x90
_qib_create_agents:                     ## @qib_create_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_dd_from_dev
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	incq	%r13
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_send_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_register_mad_agent
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	$0, 32(%rax,%rbx)
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_init_timer
	movq	_xmit_wait_timer_func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	leaq	(%rcx,%rbx), %rdx
	movl	%eax, 24(%rcx,%rbx)
	leaq	(%rcx,%rbx), %rdi
	addq	$8, %rdi
	movq	%rdx, 8(%rcx,%rbx)
	movq	$0, 16(%rcx,%rbx)
	callq	_add_timer
	movq	%r12, (%r14,%rbx)
	movslq	(%r15), %rax
	addq	$40, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%rcx,%rbx)
	callq	_ib_unregister_mad_agent
	movl	(%r15), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_SMI,4,2                 ## @IB_QPT_SMI
	.comm	_send_handler,4,2               ## @send_handler
	.comm	_xmit_wait_timer_func,4,2       ## @xmit_wait_timer_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_create_agents              ; -- Begin function qib_create_agents
	.p2align	2
_qib_create_agents:                     ; @qib_create_agents
	.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	x20, x0
	bl	_dd_from_dev
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x21, #0
Lloh0:
	adrp	x24, _IB_QPT_SMI@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IB_QPT_SMI@GOTPAGEOFF]
Lloh2:
	adrp	x25, _send_handler@GOTPAGE
Lloh3:
	ldr	x25, [x25, _send_handler@GOTPAGEOFF]
Lloh4:
	adrp	x26, _xmit_wait_timer_func@GOTPAGE
Lloh5:
	ldr	x26, [x26, _xmit_wait_timer_func@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	add	x21, x21, #1
	ldr	w2, [x24]
	ldr	w5, [x25]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ib_register_mad_agent
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	str	xzr, [x8, #32]
	add	x0, x8, #8
	bl	_init_timer
	ldr	w8, [x26]
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	str	w8, [x9, #24]
	add	x0, x9, #8
	stp	x9, xzr, [x9, #8]
	bl	_add_timer
	str	x22, [x27, x23]
	ldrsw	x8, [x19]
	add	x23, x23, #40
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w20, #0
LBB0_5:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	add	x21, x21, #40
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x21]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x9, x21]
	bl	_ib_unregister_mad_agent
	ldr	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_SMI,4,2                 ; @IB_QPT_SMI
	.comm	_send_handler,4,2               ; @send_handler
	.comm	_xmit_wait_timer_func,4,2       ; @xmit_wait_timer_func
.subsections_via_symbols
