	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id_map_alloc
_id_map_alloc:                          ## @id_map_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_to_mdev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r13d, 32(%rax)
	movl	%r12d, (%rax)
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_to_mdev
	movq	%rax, 16(%rbx)
	leaq	12(%rbx), %rdi
	movq	_id_map_ent_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	12(%r15), %rdi
	leaq	8(%rbx), %rsi
	movq	_xa_limit_32b@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	8(%r15), %r8
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdx
	callq	_xa_alloc_cyclic
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sl_id_map_add
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_mlx4_ib_warn
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_id_map_ent_timeout,4,2         ## @id_map_ent_timeout
	.comm	_xa_limit_32b,4,2               ## @xa_limit_32b
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocation failed (err:0x%x)\n"

	.no_dead_strip	_id_map_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id_map_alloc
_id_map_alloc:                          ; @id_map_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_to_mdev
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	w23, [x0, #32]
	str	w22, [x0]
	str	xzr, [x0, #24]
	mov	x0, x19
	bl	_to_mdev
	str	x0, [x21, #16]
	add	x0, x21, #12
Lloh2:
	adrp	x8, _id_map_ent_timeout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _id_map_ent_timeout@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #12
	add	x1, x21, #8
Lloh5:
	adrp	x8, _xa_limit_32b@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xa_limit_32b@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, x20, #8
	ldr	w5, [x24]
	mov	x2, x21
	bl	_xa_alloc_cyclic
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x21
	bl	_sl_id_map_add
	add	x0, x21, #4
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_mlx4_ib_warn
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_id_map_ent_timeout,4,2         ; @id_map_ent_timeout
	.comm	_xa_limit_32b,4,2               ; @xa_limit_32b
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocation failed (err:0x%x)\n"

	.no_dead_strip	_id_map_alloc
.subsections_via_symbols
