	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_mutex_isowned_np      ## -- Begin function _pthread_mutex_isowned_np
	.p2align	4, 0x90
__pthread_mutex_isowned_np:             ## @_pthread_mutex_isowned_np
	.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	_THR_PSHARED_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_1
## %bb.3:
	movq	_THR_MUTEX_DESTROYED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r14
	ja	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	___thr_pshared_offpage
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_shared_mutex_init
LBB0_4:
	movq	%r14, %rdi
	callq	_PMUTEX_OWNER_ID
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	__get_curthread
	movl	%eax, %edi
	callq	_TID
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	sete	%bl
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THR_PSHARED_PTR,8,3            ## @THR_PSHARED_PTR
	.comm	_THR_MUTEX_DESTROYED,8,3        ## @THR_MUTEX_DESTROYED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_mutex_isowned_np      ; -- Begin function _pthread_mutex_isowned_np
	.p2align	2
__pthread_mutex_isowned_np:             ; @_pthread_mutex_isowned_np
	.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	x19, [x0]
Lloh0:
	adrp	x8, _THR_PSHARED_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THR_PSHARED_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _THR_MUTEX_DESTROYED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THR_MUTEX_DESTROYED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	b.hi	LBB0_5
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	w1, #0
	bl	___thr_pshared_offpage
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
	mov	x1, #0
	bl	_shared_mutex_init
LBB0_5:
	mov	x0, x19
	bl	_PMUTEX_OWNER_ID
	mov	x19, x0
	bl	__get_curthread
	bl	_TID
	cmp	x19, x0
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_THR_PSHARED_PTR,8,3            ; @THR_PSHARED_PTR
	.comm	_THR_MUTEX_DESTROYED,8,3        ; @THR_MUTEX_DESTROYED
.subsections_via_symbols
