	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Z_Free                         ## -- Begin function Z_Free
	.p2align	4, 0x90
_Z_Free:                                ## @Z_Free
	.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	%rdi, %rbx
	movq	-192(%rdi), %rax
	movq	_ZONEID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
LBB0_2:
	leaq	-192(%rbx), %rdx
	movq	-184(%rbx), %rax
	cmpq	$257, %rax                      ## imm = 0x101
	jb	LBB0_4
## %bb.3:
	movq	$0, (%rax)
LBB0_4:
	movq	$0, -152(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	movq	-176(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	-168(%rbx), %rcx
	movq	%rdx, %rax
	cmpq	$0, 8(%rcx)
	jne	LBB0_11
	jmp	LBB0_9
LBB0_6:
	movq	-160(%rbx), %rcx
	addq	%rcx, 32(%rax)
	movq	-168(%rbx), %rcx
	movq	%rcx, 24(%rax)
	movq	%rax, 16(%rcx)
	movq	_mainzone@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%rcx)
	jne	LBB0_11
LBB0_9:
	movq	32(%rcx), %rdx
	addq	%rdx, 32(%rax)
	movq	24(%rcx), %rdx
	movq	%rdx, 24(%rax)
	movq	%rax, 16(%rdx)
	movq	_mainzone@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movq	%rax, (%rdx)
	jmp	LBB0_11
LBB0_7:
	movq	%rax, (%rsi)
	cmpq	$0, 8(%rcx)
	je	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZONEID,8,3                     ## @ZONEID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Z_Free: freed a pointer without ZONEID"

	.comm	_mainzone,8,3                   ## @mainzone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Z_Free                         ; -- Begin function Z_Free
	.p2align	2
_Z_Free:                                ; @Z_Free
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #-192]!
Lloh0:
	adrp	x9, _ZONEID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZONEID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
LBB0_2:
	ldur	x8, [x19, #-184]
	cmp	x8, #257
	b.lo	LBB0_4
; %bb.3:
	str	xzr, [x8]
LBB0_4:
	stur	xzr, [x19, #-152]
	stp	xzr, xzr, [x20]
	ldur	x8, [x19, #-176]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.5:
	ldur	x9, [x19, #-168]
	mov	x8, x20
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_11
	b	LBB0_8
LBB0_6:
	ldr	x10, [x8, #32]
	ldp	x9, x11, [x19, #-168]
	add	x10, x10, x11
	stp	x9, x10, [x8, #24]
	str	x8, [x9, #16]
Lloh5:
	adrp	x10, _mainzone@GOTPAGE
Lloh6:
	ldr	x10, [x10, _mainzone@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	x11, [x10]
	cmp	x11, x20
	b.eq	LBB0_10
; %bb.7:
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_11
LBB0_8:
	ldr	x10, [x8, #32]
	ldp	x12, x11, [x9, #24]
	add	x10, x10, x11
	stp	x12, x10, [x8, #24]
	str	x8, [x12, #16]
Lloh8:
	adrp	x10, _mainzone@GOTPAGE
Lloh9:
	ldr	x10, [x10, _mainzone@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	x11, [x10]
	cmp	x9, x11
	b.ne	LBB0_11
; %bb.9:
	str	x8, [x10]
	b	LBB0_11
LBB0_10:
	str	x8, [x10]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_8
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ZONEID,8,3                     ; @ZONEID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Z_Free: freed a pointer without ZONEID"

	.comm	_mainzone,8,3                   ; @mainzone
.subsections_via_symbols
