	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apw_detach_shmem
_apw_detach_shmem:                      ## @apw_detach_shmem
	.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
	movq	_apw_state@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%rbx), %rdi
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_InvalidPid@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdi)
	movq	(%rax), %rcx
LBB0_2:
	cmpq	%rcx, 8(%rdi)
	jne	LBB0_4
## %bb.3:
	movq	_InvalidPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
LBB0_4:
	addq	$16, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_apw_state,8,3                  ## @apw_state
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_InvalidPid,8,3                 ## @InvalidPid
	.no_dead_strip	_apw_detach_shmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apw_detach_shmem
_apw_detach_shmem:                      ; @apw_detach_shmem
	.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
Lloh0:
	adrp	x19, _apw_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _apw_state@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #16
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x19]
	ldr	x12, [x8]
Lloh5:
	adrp	x11, _MyProcPid@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MyProcPid@GOTPAGEOFF]
	ldr	x10, [x11]
Lloh7:
	adrp	x9, _InvalidPid@GOTPAGE
Lloh8:
	ldr	x9, [x9, _InvalidPid@GOTPAGEOFF]
	cmp	x12, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x9]
	str	x10, [x8]
	ldr	x10, [x11]
LBB0_2:
	ldr	x11, [x8, #8]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x9]
	str	x9, [x8, #8]
LBB0_4:
	add	x0, x8, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_apw_state,8,3                  ; @apw_state
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_InvalidPid,8,3                 ; @InvalidPid
	.no_dead_strip	_apw_detach_shmem
.subsections_via_symbols
