	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_pool_alloc                 ## -- Begin function i2o_pool_alloc
	.p2align	4, 0x90
_i2o_pool_alloc:                        ## @i2o_pool_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	leaq	1(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movl	(%r12), %edi
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, 4(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_mempool_create_slab_pool
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	4(%r12), %edi
	callq	_kmem_cache_destroy
LBB0_4:
	movl	(%r12), %edi
	callq	_kfree
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_pool_alloc                 ; -- Begin function i2o_pool_alloc
	.p2align	2
_i2o_pool_alloc:                        ; @i2o_pool_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	add	x0, x0, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.1:
	mov	x1, x22
	bl	_strcpy
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x21
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_mempool_create_slab_pool
	str	w0, [x19, #8]
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_kmem_cache_destroy
LBB0_5:
	ldr	w0, [x19]
	bl	_kfree
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
