	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_as_io_context
_alloc_as_io_context:                   ## @alloc_as_io_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_free_as_io_context@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_exit_as_io_context@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_AS_TASK_RUNNING@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	leaq	64(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	60(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	addq	$56, %rdi
	callq	_spin_lock_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_as_ioc_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elv_ioc_count_inc
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_free_as_io_context,4,2         ## @free_as_io_context
	.comm	_exit_as_io_context,4,2         ## @exit_as_io_context
	.comm	_AS_TASK_RUNNING,4,2            ## @AS_TASK_RUNNING
	.comm	_as_ioc_count,4,2               ## @as_ioc_count
	.no_dead_strip	_alloc_as_io_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_as_io_context
_alloc_as_io_context:                   ; @alloc_as_io_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _free_as_io_context@GOTPAGE
Lloh4:
	ldr	x8, [x8, _free_as_io_context@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _exit_as_io_context@GOTPAGE
Lloh7:
	ldr	x9, [x9, _exit_as_io_context@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _AS_TASK_RUNNING@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AS_TASK_RUNNING@GOTPAGEOFF]
	stp	w9, w8, [x19, #68]
Lloh11:
	ldr	w8, [x10]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19]
	add	x0, x19, #64
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #60
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #56
	bl	_spin_lock_init
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
Lloh12:
	adrp	x8, _as_ioc_count@GOTPAGE
Lloh13:
	ldr	x8, [x8, _as_ioc_count@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_elv_ioc_count_inc
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_free_as_io_context,4,2         ; @free_as_io_context
	.comm	_exit_as_io_context,4,2         ; @exit_as_io_context
	.comm	_AS_TASK_RUNNING,4,2            ; @AS_TASK_RUNNING
	.comm	_as_ioc_count,4,2               ; @as_ioc_count
	.no_dead_strip	_alloc_as_io_context
.subsections_via_symbols
