	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blk_free
_blk_free:                              ## @blk_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_printf
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_fs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_dtog
	movl	%eax, %edi
	callq	_cg_lookup
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_dtogd
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_cg_blksfree
	movq	%rax, %r15
	testl	%r14d, %r14d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rdi
	cmpl	%ebx, (%rdi)
	jne	LBB0_4
## %bb.11:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_fragstoblks
	movq	(%r12), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ffs_setblock
	movq	_freeblocks@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_10
LBB0_4:
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.5:
	movl	%ebx, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r12d, %r14d
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_isclr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_freefrags@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_setbit
	jmp	LBB0_9
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing %d frags at blk %jd mask 0x%x\n"

	.comm	_fs,8,3                         ## @fs
	.comm	_freeblocks,4,2                 ## @freeblocks
	.comm	_freefrags,4,2                  ## @freefrags
	.no_dead_strip	_blk_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blk_free
_blk_free:                              ; @blk_free
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	mov	x3, x19
	bl	_printf
LBB0_2:
Lloh5:
	adrp	x25, _fs@GOTPAGE
Lloh6:
	ldr	x25, [x25, _fs@GOTPAGEOFF]
	ldr	x0, [x25]
	mov	x1, x21
	bl	_dtog
	bl	_cg_lookup
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	x0, [x25]
	mov	x1, x21
	bl	_dtogd
	mov	x22, x0
	mov	x0, x24
	bl	_cg_blksfree
	mov	x21, x0
	cbnz	w19, LBB0_5
; %bb.3:
	ldr	x0, [x25]
	ldr	w8, [x0]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.4:
	mov	x1, x22
	bl	_fragstoblks
	mov	x2, x0
	ldr	x0, [x25]
	mov	x1, x21
	bl	_ffs_setblock
Lloh7:
	adrp	x8, _freeblocks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _freeblocks@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_11
LBB0_5:
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x24, #0
	mov	w25, w23
Lloh9:
	adrp	x26, _freefrags@GOTPAGE
Lloh10:
	ldr	x26, [x26, _freefrags@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	cmp	x25, x24
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, w24
	tbnz	w8, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x22, x24
	mov	x0, x21
	mov	x1, x23
	bl	_isclr
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	mov	x0, x21
	mov	x1, x23
	bl	_setbit
	b	LBB0_7
LBB0_11:
	mov	w8, #1
	str	w8, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing %d frags at blk %jd mask 0x%x\n"

	.comm	_fs,8,3                         ; @fs
	.comm	_freeblocks,4,2                 ; @freeblocks
	.comm	_freefrags,4,2                  ; @freefrags
	.no_dead_strip	_blk_free
.subsections_via_symbols
