	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_release
_pt_release:                            ## @pt_release
	.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	(%rsi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %eax
	movq	_PT_WRITING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_pt_write_fm
	movl	(%rbx), %eax
LBB0_4:
	movq	_PT_REWIND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_pt_rewind
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_atomic_inc
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PT_WRITING,4,2                 ## @PT_WRITING
	.comm	_PT_REWIND,4,2                  ## @PT_REWIND
	.no_dead_strip	_pt_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_release
_pt_release:                            ; @pt_release
	.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	x20, [x1]
	add	x19, x20, #4
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _PT_WRITING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PT_WRITING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pt_write_fm
	ldr	w8, [x20]
LBB0_4:
Lloh6:
	adrp	x9, _PT_REWIND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PT_REWIND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_pt_rewind
LBB0_6:
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_atomic_inc
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PT_WRITING,4,2                 ; @PT_WRITING
	.comm	_PT_REWIND,4,2                  ; @PT_REWIND
	.no_dead_strip	_pt_release
.subsections_via_symbols
