	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___gthr_win32_recursive_mutex_lock ## -- Begin function __gthr_win32_recursive_mutex_lock
	.p2align	4, 0x90
___gthr_win32_recursive_mutex_lock:     ## @__gthr_win32_recursive_mutex_lock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_GetCurrentThreadId
	movq	%rax, %r14
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_InterlockedIncrement
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_InterlockedDecrement
	incl	(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_1:
	movl	$1, (%rbx)
	movq	%r14, 8(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	20(%rbx), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitForSingleObject
	movq	_WAIT_OBJECT_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, (%rbx)
	movq	%r14, 8(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_InterlockedDecrement
	movl	$1, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_WAIT_OBJECT_0,8,3              ## @WAIT_OBJECT_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___gthr_win32_recursive_mutex_lock ; -- Begin function __gthr_win32_recursive_mutex_lock
	.p2align	2
___gthr_win32_recursive_mutex_lock:     ; @__gthr_win32_recursive_mutex_lock
	.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, x0
	bl	_GetCurrentThreadId
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_InterlockedIncrement
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_InterlockedDecrement
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WaitForSingleObject
Lloh3:
	adrp	x8, _WAIT_OBJECT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAIT_OBJECT_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	str	x20, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_InterlockedDecrement
	mov	w0, #1
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_WAIT_OBJECT_0,8,3              ; @WAIT_OBJECT_0
.subsections_via_symbols
