	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_free_fence             ## -- Begin function context_free_fence
	.p2align	4, 0x90
_context_free_fence:                    ## @context_free_fence
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	addq	$16, %rdi
	callq	_list_remove
	movq	$0, 8(%r14)
	leaq	8(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movq	(%rbx), %rdx
	incq	%rdx
	movl	$4, %ecx
	callq	_wined3d_array_reserve
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	(%r14), %edx
	movl	%edx, (%rcx,%rax,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to grow free list, leaking fence %u in context %p.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_free_fence             ; -- Begin function context_free_fence
	.p2align	2
_context_free_fence:                    ; @context_free_fence
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	add	x0, x0, #16
	bl	_list_remove
	str	xzr, [x20, #8]
	add	x0, x19, #8
	mov	x1, x19
	ldr	x8, [x1], #16
	add	x2, x8, #1
	mov	w3, #4
	bl	_wined3d_array_reserve
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x9, x8, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	ldr	w10, [x20]
	str	w10, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w1, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to grow free list, leaking fence %u in context %p.\n"

.subsections_via_symbols
