	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_as_io_context
_free_as_io_context:                    ## @free_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_kfree
	movq	_as_ioc_count@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_elv_ioc_count_dec
	movq	_ioc_gone@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_ioc_gone_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	callq	_elv_ioc_count_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	callq	_complete
	movq	$0, (%rbx)
LBB0_4:
	movq	_ioc_gone_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_as_ioc_count,4,2               ## @as_ioc_count
	.comm	_ioc_gone,8,3                   ## @ioc_gone
	.comm	_ioc_gone_lock,4,2              ## @ioc_gone_lock
	.no_dead_strip	_free_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 free_as_io_context
_free_as_io_context:                    ; @free_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
	bl	_kfree
Lloh0:
	adrp	x20, _as_ioc_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _as_ioc_count@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_elv_ioc_count_dec
Lloh2:
	adrp	x19, _ioc_gone@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ioc_gone@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
Lloh4:
	adrp	x0, _ioc_gone_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ioc_gone_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_elv_ioc_count_read
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_complete
	str	xzr, [x19]
LBB0_4:
Lloh6:
	adrp	x0, _ioc_gone_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ioc_gone_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_as_ioc_count,4,2               ; @as_ioc_count
	.comm	_ioc_gone,8,3                   ; @ioc_gone
	.comm	_ioc_gone_lock,4,2              ; @ioc_gone_lock
	.no_dead_strip	_free_as_io_context
.subsections_via_symbols
