	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
LBB0_2:
	movl	-160(%rbx), %eax
	movq	_ZONEID@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_4:
	movq	-152(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_Com_Error
	movq	-152(%rbx), %rcx
LBB0_6:
	movq	_TAG_STATIC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_18
## %bb.7:
	movslq	-144(%rbx), %rax
	movl	-176(%rbx,%rax,4), %edx
	cmpl	(%r14), %edx
	je	LBB0_9
## %bb.8:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_Com_Error
	movq	-152(%rbx), %rcx
	movl	-144(%rbx), %eax
LBB0_9:
	movq	_TAG_SMALL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.11:
	movq	_smallzone@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_mainzone@GOTPCREL(%rip), %rcx
LBB0_12:
	leaq	-160(%rbx), %rsi
	movq	(%rcx), %rdx
	subl	%eax, 8(%rdx)
	movq	$0, -152(%rbx)
	movq	-136(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_14
## %bb.13:
	movq	-128(%rbx), %rax
	movq	%rsi, %rcx
	jmp	LBB0_16
LBB0_14:
	addl	%eax, 16(%rcx)
	movq	-128(%rbx), %rax
	movq	%rax, 32(%rcx)
	movq	%rcx, 24(%rax)
	cmpq	%rsi, (%rdx)
	jne	LBB0_16
## %bb.15:
	movq	%rcx, (%rdx)
LBB0_16:
	movq	%rcx, (%rdx)
	cmpq	$0, 8(%rax)
	jne	LBB0_18
## %bb.17:
	movl	16(%rax), %edx
	addl	%edx, 16(%rcx)
	movq	32(%rax), %rax
	movq	%rax, 32(%rcx)
	movq	%rcx, 24(%rax)
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Z_Free: NULL pointer"

	.comm	_ZONEID,4,2                     ## @ZONEID
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Z_Free: freed a pointer without ZONEID"

L_.str.2:                               ## @.str.2
	.asciz	"Z_Free: freed a freed pointer"

	.comm	_TAG_STATIC,8,3                 ## @TAG_STATIC
L_.str.3:                               ## @.str.3
	.asciz	"Z_Free: memory block wrote past end"

	.comm	_TAG_SMALL,8,3                  ## @TAG_SMALL
	.comm	_smallzone,8,3                  ## @smallzone
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_2:
	mov	x20, x19
	ldr	w8, [x20, #-160]!
Lloh5:
	adrp	x21, _ZONEID@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ZONEID@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_4:
	ldur	x8, [x19, #-152]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
	ldur	x8, [x19, #-152]
LBB0_6:
Lloh17:
	adrp	x9, _TAG_STATIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TAG_STATIC@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.7:
	ldursw	x10, [x19, #-144]
	add	x9, x20, x10, lsl #2
	ldur	w9, [x9, #-16]
	ldr	w11, [x21]
	cmp	w9, w11
	b.eq	LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Com_Error
	ldur	x8, [x19, #-152]
	ldur	w10, [x19, #-144]
LBB0_9:
Lloh25:
	adrp	x9, _TAG_SMALL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TAG_SMALL@GOTPAGEOFF]
Lloh27:
	adrp	x11, _smallzone@GOTPAGE
Lloh28:
	ldr	x11, [x11, _smallzone@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x12, _mainzone@GOTPAGE
Lloh31:
	ldr	x12, [x12, _mainzone@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, eq
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	sub	w9, w9, w10
	str	w9, [x8, #8]
	stur	xzr, [x19, #-152]
	ldur	x9, [x19, #-136]
	ldr	x11, [x9, #8]
	cbz	x11, LBB0_11
; %bb.10:
	ldur	x10, [x19, #-128]
	mov	x9, x20
	b	LBB0_13
LBB0_11:
	ldr	w11, [x9, #16]
	add	w10, w11, w10
	str	w10, [x9, #16]
	ldur	x10, [x19, #-128]
	str	x10, [x9, #32]
	str	x9, [x10, #24]
	ldr	x11, [x8]
	cmp	x11, x20
	b.ne	LBB0_13
; %bb.12:
	str	x9, [x8]
LBB0_13:
	str	x9, [x8]
	ldr	x8, [x10, #8]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	w8, [x10, #16]
	ldr	w11, [x9, #16]
	add	w8, w11, w8
	str	w8, [x9, #16]
	ldr	x8, [x10, #32]
	str	x8, [x9, #32]
	str	x9, [x8, #24]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Z_Free: NULL pointer"

	.comm	_ZONEID,4,2                     ; @ZONEID
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Z_Free: freed a pointer without ZONEID"

l_.str.2:                               ; @.str.2
	.asciz	"Z_Free: freed a freed pointer"

	.comm	_TAG_STATIC,8,3                 ; @TAG_STATIC
l_.str.3:                               ; @.str.3
	.asciz	"Z_Free: memory block wrote past end"

	.comm	_TAG_SMALL,8,3                  ; @TAG_SMALL
	.comm	_smallzone,8,3                  ; @smallzone
	.comm	_mainzone,8,3                   ; @mainzone
.subsections_via_symbols
