	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_alloc_fmr                ## -- Begin function ipath_alloc_fmr
	.p2align	4, 0x90
_ipath_alloc_fmr:                       ## @ipath_alloc_fmr
	.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	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movq	_IPATH_SEGSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	leal	88(,%rbx,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kmalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	testl	%ebx, %ebx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_2
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	$88, %edi
	callq	_kmalloc
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	16(%r15), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_4
## %bb.6:
	movl	%ebx, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_2:
	xorl	%r13d, %r13d
LBB0_7:
	movl	%ebx, (%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_to_idev
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ipath_alloc_lkey
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movl	64(%r15), %ecx
	movq	%r15, %rax
	addq	$72, %rax
	movl	%ecx, 72(%r15)
	movl	%ecx, 76(%r15)
	movq	%rbx, 56(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movups	%xmm0, 40(%r15)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%r15)
	movl	(%r14), %ecx
	movl	%ecx, 8(%r15)
	movl	4(%r14), %ecx
	movl	%ecx, 80(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.9:
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	-8(%rax,%rbx,8), %rdi
	callq	_kfree
	decq	%rbx
	jne	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_SEGSZ,4,2                ## @IPATH_SEGSZ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_alloc_fmr                ; -- Begin function ipath_alloc_fmr
	.p2align	2
_ipath_alloc_fmr:                       ; @ipath_alloc_fmr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _IPATH_SEGSZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPATH_SEGSZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w23, w8, w9
	lsl	w8, w23, #3
	add	w0, w8, #88
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	w0, #88
	bl	_kmalloc
	ldr	x8, [x19, #16]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_3
; %bb.5:
	mov	x24, x23
	b	LBB0_7
LBB0_6:
	mov	w24, #0
LBB0_7:
	str	w23, [x19]
	ldr	w0, [x22]
	bl	_to_idev
	mov	x1, x19
	bl	_ipath_alloc_lkey
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #64]
	str	w8, [x19, #72]!
	stur	x22, [x19, #-16]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #-48]
	ldp	w9, w10, [x20]
	stp	w21, w9, [x19, #-68]
	stp	w8, w10, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	w24, LBB0_12
; %bb.10:
	mov	w8, w24
	lsl	x8, x8, #3
	sub	x20, x8, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20]
	bl	_kfree
	sub	x20, x20, #8
	cmn	x20, #8
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_kfree
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_SEGSZ,4,2                ; @IPATH_SEGSZ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
