	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___buf_free                     ## -- Begin function __buf_free
	.p2align	4, 0x90
___buf_free:                            ## @__buf_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
	movq	_LRU@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	leaq	8(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rbx
	je	LBB0_17
## %bb.2:
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rbx
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_11
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_IS_BUCKET
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	_BUF_MOD@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %r13
	movl	%r15d, %r12d
	movq	24(%rbx), %r15
	callq	_IS_BUCKET
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	_LRU@GOTPCREL(%rip), %r13
	movq	%r15, %rdx
	movl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	___put_page
	testq	%rax, %rax
	jne	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	16(%rbx), %rdi
	callq	_free
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_BUF_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r13, %rbx
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movl	$-1, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRU,8,3                        ## @LRU
	.comm	_BUF_MOD,4,2                    ## @BUF_MOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___buf_free                     ; -- Begin function __buf_free
	.p2align	2
___buf_free:                            ; @__buf_free
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _LRU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRU@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_15
; %bb.1:
	mov	x21, x0
	add	x25, x0, #8
	cmp	x22, x25
	b.eq	LBB0_15
; %bb.2:
	mov	x19, x2
	mov	x20, x1
Lloh3:
	adrp	x26, _BUF_MOD@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BUF_MOD@GOTPAGEOFF]
Lloh5:
	adrp	x27, _LRU@GOTPAGE
Lloh6:
	ldr	x27, [x27, _LRU@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x22, #8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x8]
	cmp	x22, x25
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_9
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	bl	_IS_BUCKET
	cbz	w19, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x0, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x23, x24, [x22, #16]
	bl	_IS_BUCKET
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	w4, #0
	bl	___put_page
	cbnz	x0, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22, #16]
	bl	_free
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_BUF_REMOVE
	mov	x0, x22
	bl	_free
	mov	x8, x27
	b	LBB0_4
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #-1
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LRU,8,3                        ; @LRU
	.comm	_BUF_MOD,4,2                    ; @BUF_MOD
.subsections_via_symbols
