	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_resource_released      ## -- Begin function context_resource_released
	.p2align	4, 0x90
_context_resource_released:             ## @context_resource_released
	.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
	andl	$-2, %edx
	cmpl	$128, %edx
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	je	LBB0_14
## %bb.2:
	movq	%rsi, %rdi
	callq	_texture_from_resource
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.3:
	movq	8(%rbx), %rdx
	cmpq	$1, %rcx
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
LBB0_11:
	testb	$1, %cl
	je	LBB0_14
## %bb.12:
	movq	(%rdx,%rsi,8), %rcx
	cmpq	%rax, 8(%rcx)
	jne	LBB0_14
## %bb.13:
	movq	$0, 8(%rcx)
	movl	$0, (%rcx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	cmpq	%rax, 8(%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 8(%rbx)
	movl	$0, (%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdx,%rsi,8), %rbx
	cmpq	%rax, 8(%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 8(%rbx)
	movl	$0, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_resource_released      ; -- Begin function context_resource_released
	.p2align	2
_context_resource_released:             ; @context_resource_released
	.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
	ldr	w8, [x0, #16]
	and	w9, w2, #0xfffffffe
	cmp	w9, #128
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x1
	bl	_texture_from_resource
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x19, #8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x11, [x10, #8]
	cmp	x11, x0
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x10, #8]
	str	wzr, [x10]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
