	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpi_init_descriptors
_mpi_init_descriptors:                  ## @mpi_init_descriptors
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %rdi
	callq	_netif_stop_queue
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_CMD_ALLOCATEAUX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FID_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	40(%r13), %rax
	movq	8(%rax), %rax
	subq	24(%r13), %rax
	movq	%rax, -64(%rbp)
	movq	_MPI_MAX_FIDS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -72(%rbp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_issuecommand
	movl	%eax, %r14d
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_8
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rsi
	movq	8(%rsi,%rbx), %rdi
	addq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy_toio
	incq	%r14
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_CMD_ALLOCATEAUX@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movq	_FID_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	32(%r13), %rsi
	movq	8(%rsi), %rdi
	movq	%rdi, %rax
	subq	24(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	(%r12), %eax
	movl	%eax, -72(%rbp)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movl	$1, (%rsi)
	movl	$4, %edx
	callq	_memcpy_toio
	cmpl	$2, (%r12)
	jl	LBB0_10
## %bb.6:
	movl	$16, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	leaq	(%rax,%r14), %rsi
	movq	8(%rax,%r14), %rdi
	movl	$1, (%rax,%r14)
	movl	$4, %edx
	callq	_memcpy_toio
	movslq	(%r12), %rcx
	leaq	1(%rbx), %rax
	addq	$2, %rbx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_11
LBB0_8:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_9:
	movq	$-1, %rax
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	32(%r13), %rsi
	cltq
	movq	_CMD_ALLOCATEAUX@GOTPCREL(%rip), %r15
LBB0_12:
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
	shlq	$4, %rax
	movl	$1, 4(%rsi,%rax)
	leaq	-72(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	%r13, %rdi
	callq	_issuecommand
	cmpl	(%rbx), %eax
	jne	LBB0_15
## %bb.13:
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movq	_RID_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r13), %rax
	subq	24(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	$1, -72(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_issuecommand
	movl	%eax, %r14d
	cmpl	(%rbx), %eax
	jne	LBB0_16
## %bb.14:
	movq	8(%r13), %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy_toio
	jmp	LBB0_18
LBB0_15:
	movl	%eax, %r14d
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	callq	_airo_print_err
LBB0_18:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_CMD_ALLOCATEAUX,8,3            ## @CMD_ALLOCATEAUX
	.comm	_FID_RX,4,2                     ## @FID_RX
	.comm	_MPI_MAX_FIDS,4,2               ## @MPI_MAX_FIDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate RX FID"

	.comm	_FID_TX,4,2                     ## @FID_TX
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't allocate TX FID"

	.comm	_RID_RW,4,2                     ## @RID_RW
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't allocate RID"

	.no_dead_strip	_mpi_init_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpi_init_descriptors
_mpi_init_descriptors:                  ; @mpi_init_descriptors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_netif_stop_queue
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x21, _CMD_ALLOCATEAUX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CMD_ALLOCATEAUX@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _FID_RX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FID_RX@GOTPAGEOFF]
	str	x8, [sp, #56]
Lloh4:
	ldr	w8, [x9]
	str	w8, [sp, #48]
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #24]
	sub	x8, x8, x9
	str	x8, [sp, #40]
Lloh5:
	adrp	x23, _MPI_MAX_FIDS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MPI_MAX_FIDS@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #32]
	add	x1, sp, #32
	mov	x2, sp
	mov	x0, x19
	bl	_issuecommand
Lloh7:
	adrp	x22, _SUCCESS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	mov	w24, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x1, x8, x24
	ldr	x0, [x1], #-8
	mov	w2, #4
	bl	_memcpy_toio
	add	x20, x20, #1
	ldrsw	x8, [x23]
	add	x24, x24, #16
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x21]
	str	x8, [sp, #56]
Lloh9:
	adrp	x8, _FID_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FID_TX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	ldp	x8, x1, [x19, #24]
	ldr	x0, [x1, #8]
	sub	x8, x0, x8
	str	x8, [sp, #40]
	ldr	w8, [x23]
	str	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w20, #1
	str	w20, [x1]
	mov	w2, #4
	bl	_memcpy_toio
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.6:
	mov	x24, #0
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x24
	str	w20, [x1, #16]!
	ldr	x0, [x1, #8]
	mov	w2, #4
	bl	_memcpy_toio
	ldrsw	x9, [x23]
	add	x8, x25, #1
	add	x10, x25, #2
	add	x24, x24, #16
	mov	x25, x8
	cmp	x10, x9
	b.lt	LBB0_7
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_9:
	mov	x8, #-1
	b	LBB0_12
LBB0_10:
	mov	x8, #0
LBB0_11:
	ldr	x1, [x19, #32]
	sxtw	x8, w8
LBB0_12:
	add	x8, x1, x8, lsl #4
	mov	w23, #1
	str	w23, [x8, #4]
	add	x1, sp, #32
	mov	x2, sp
	mov	x0, x19
	bl	_issuecommand
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.13:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x21]
	str	x8, [sp, #56]
Lloh14:
	adrp	x8, _RID_RW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RID_RW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	sub	x8, x8, x9
	str	x8, [sp, #40]
	str	w23, [sp, #32]
	add	x1, sp, #32
	mov	x2, sp
	mov	x0, x19
	bl	_issuecommand
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	x0, [x19, #8]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy_toio
	b	LBB0_18
LBB0_15:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_airo_print_err
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_CMD_ALLOCATEAUX,8,3            ; @CMD_ALLOCATEAUX
	.comm	_FID_RX,4,2                     ; @FID_RX
	.comm	_MPI_MAX_FIDS,4,2               ; @MPI_MAX_FIDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate RX FID"

	.comm	_FID_TX,4,2                     ; @FID_TX
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't allocate TX FID"

	.comm	_RID_RW,4,2                     ; @RID_RW
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't allocate RID"

	.no_dead_strip	_mpi_init_descriptors
.subsections_via_symbols
