	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___get_buf                      ## -- Begin function __get_buf
	.p2align	4, 0x90
___get_buf:                             ## @__get_buf
	.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	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	cmpl	%r14d, (%rbx)
	je	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	xorl	%edx, %edx
	movl	$0, %esi
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_BUF_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:
	xorl	%r15d, %r15d
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_16:
	movq	%rbx, %rdi
	callq	_BUF_REMOVE
	movq	%rbx, %rdi
	callq	_MRU_INSERT
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movslq	(%r13), %r15
	decq	%r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rax
	andq	%rax, %r15
	movb	4(%r13), %cl
	sarl	%cl, %eax
	movq	16(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %r14
	movq	(%r14,%r15,8), %rdi
	callq	_PTROF
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14,%r15,8), %rdi
	callq	_ISDISK
	movl	$1, %esi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	cmpl	$0, 8(%r13)
	sete	%sil
LBB0_9:
	movslq	%eax, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_16
LBB0_11:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_newbuf
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	%r14d, %edx
	movq	%rax, %r14
	xorl	%ecx, %ecx
	testq	%r12, %r12
	sete	%cl
	movl	4(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	___get_page
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	jne	LBB0_17
## %bb.14:
	testq	%r12, %r12
	jne	LBB0_17
## %bb.15:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orq	%r14, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax,%r15,8)
	movq	%r14, %rbx
	jmp	LBB0_17
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_DISK,4,2                   ## @BUF_DISK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___get_buf                      ; -- Begin function __get_buf
	.p2align	2
___get_buf:                             ; @__get_buf
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	cbz	x2, LBB0_7
; %bb.1:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x26, #0
	mov	x24, #0
Lloh0:
	adrp	x8, _BUF_DISK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUF_DISK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w3, #0
	csel	w23, w8, wzr, eq
                                        ; implicit-def: $x25
	cbz	x21, LBB0_11
LBB0_5:
	mov	x0, x21
	bl	_BUF_REMOVE
	mov	x0, x21
	bl	_MRU_INSERT
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	ldp	w8, w9, [x22]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x8, x8, #1
	sxtw	x10, w20
	and	x24, x8, x10
	ldr	x8, [x22, #16]
	asr	w9, w20, w9
	ldr	x25, [x8, w9, sxtw #3]
	lsl	x23, x24, #3
	ldr	x0, [x25, x23]
	bl	_PTROF
	mov	x21, x0
	ldr	x0, [x25, x23]
	bl	_ISDISK
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	w23, #1
	b	LBB0_10
LBB0_9:
	ldr	w8, [x22, #8]
	cmp	w8, #0
	cset	w23, eq
LBB0_10:
	sxtw	x26, w0
	cbnz	x21, LBB0_5
LBB0_11:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_newbuf
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.12:
	cmp	x19, #0
	cset	w3, eq
	ldr	w1, [x21, #4]
	mov	x0, x22
	mov	x2, x20
	mov	x4, x23
	mov	w5, #0
	bl	___get_page
	cmp	x0, #0
	csel	x8, xzr, x21, ne
	ccmp	x19, #0, #0, eq
	b.eq	LBB0_14
; %bb.13:
	mov	x21, x8
	b	LBB0_6
LBB0_14:
	orr	x8, x26, x21
	str	x8, [x25, x24, lsl #3]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_DISK,4,2                   ; @BUF_DISK
.subsections_via_symbols
