	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlock_acquire                  ## -- Begin function wlock_acquire
	.p2align	4, 0x90
_wlock_acquire:                         ## @wlock_acquire
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_thread_mask_set
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	_RTLD_LOCK_UNLOCKED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_lockinfo@GOTPCREL(%rip), %rax
	movl	4(%rbx), %edi
	callq	*(%rax)
	movq	_RTLD_LOCK_WLOCKED@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wlock_acquire: recursed"

	.comm	_RTLD_LOCK_UNLOCKED,4,2         ## @RTLD_LOCK_UNLOCKED
	.comm	_lockinfo,8,3                   ## @lockinfo
	.comm	_RTLD_LOCK_WLOCKED,4,2          ## @RTLD_LOCK_WLOCKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlock_acquire                  ; -- Begin function wlock_acquire
	.p2align	2
_wlock_acquire:                         ; @wlock_acquire
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_5
; %bb.1:
	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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_thread_mask_set
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh2:
	adrp	x8, _RTLD_LOCK_UNLOCKED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTLD_LOCK_UNLOCKED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _lockinfo@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lockinfo@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w0, [x20, #4]
	blr	x8
Lloh7:
	adrp	x8, _RTLD_LOCK_WLOCKED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTLD_LOCK_WLOCKED@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wlock_acquire: recursed"

	.comm	_RTLD_LOCK_UNLOCKED,4,2         ; @RTLD_LOCK_UNLOCKED
	.comm	_lockinfo,8,3                   ; @lockinfo
	.comm	_RTLD_LOCK_WLOCKED,4,2          ; @RTLD_LOCK_WLOCKED
.subsections_via_symbols
