	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_reacquire              ## -- Begin function context_reacquire
	.p2align	4, 0x90
_context_reacquire:                     ## @context_reacquire
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_wined3d_from_cs
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %r15
	xorl	%eax, %eax
	callq	_GetCurrentThreadId
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_context_activate
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_context_acquire
	cmpq	%rbx, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_ERR
	movq	%r14, %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Acquired context %p instead of %p.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_reacquire              ; -- Begin function context_reacquire
	.p2align	2
_context_reacquire:                     ; @context_reacquire
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_wined3d_from_cs
	cbz	x19, LBB0_7
; %bb.1:
	ldr	x21, [x19]
	bl	_GetCurrentThreadId
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.2:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_5
; %bb.3:
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_context_activate
	b	LBB0_7
LBB0_4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w2, #0
	bl	_context_acquire
	cmp	x0, x19
	b.eq	LBB0_7
; %bb.6:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_ERR
	mov	x19, x20
LBB0_7:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Acquired context %p instead of %p.\n"

.subsections_via_symbols
