	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bufio_new
___bufio_new:                           ## @__bufio_new
	.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	%r8, %r12
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	$0, (%rcx)
	callq	___find
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_NF_PREFETCH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_NF_GET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_B_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rcx), %rsi
	movq	%rcx, %rbx
	callq	_test_bit
	movq	%rax, %rdi
	callq	_unlikely
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_8:
	incl	(%rcx)
	movq	_B_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rcx), %r14
	movq	%r14, %rsi
	movq	%rcx, %rbx
	callq	_test_bit
	movl	$1, %esi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_B_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
LBB0_10:
	movq	%rbx, %rdi
	callq	___relink_lru
	movq	%rbx, %rax
	jmp	LBB0_18
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_NF_GET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.11:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___alloc_buffer_wait
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, %r12d
	movl	%ebx, %esi
	callq	___find
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	___free_buffer_wake
	movq	%rbx, %rcx
	jmp	LBB0_1
LBB0_4:
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___check_watermark
	movl	$1, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	_LIST_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___link_buffer
	movq	%r14, %rax
	movq	_NF_FRESH@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_17
## %bb.16:
	movl	$0, 4(%rax)
	jmp	LBB0_18
LBB0_17:
	movq	_B_READING@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 4(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_GET,4,2                     ## @NF_GET
	.comm	_LIST_CLEAN,4,2                 ## @LIST_CLEAN
	.comm	_NF_FRESH,4,2                   ## @NF_FRESH
	.comm	_B_READING,4,2                  ## @B_READING
	.comm	_NF_PREFETCH,4,2                ## @NF_PREFETCH
	.comm	_B_DIRTY,4,2                    ## @B_DIRTY
	.comm	_B_WRITING,4,2                  ## @B_WRITING
	.no_dead_strip	___bufio_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bufio_new
___bufio_new:                           ; @__bufio_new
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	str	wzr, [x3]
	bl	___find
	mov	x19, x0
	cbz	x0, LBB0_6
LBB0_1:
Lloh0:
	adrp	x8, _NF_PREFETCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NF_PREFETCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _NF_GET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NF_GET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _B_READING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_READING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_4:
	ldr	w8, [x19]
	add	w8, w8, #1
	mov	x20, x19
	str	w8, [x20], #4
Lloh9:
	adrp	x8, _B_DIRTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B_DIRTY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.5:
	mov	w1, #1
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _NF_GET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NF_GET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
LBB0_7:
	mov	x19, #0
	b	LBB0_13
LBB0_8:
	mov	x0, x24
	mov	x1, x20
	bl	___alloc_buffer_wait
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x24
	mov	x1, x22
	bl	___find
	cbz	x0, LBB0_14
; %bb.10:
	mov	x25, x0
	mov	x0, x19
	bl	___free_buffer_wake
	mov	x19, x25
	b	LBB0_1
LBB0_11:
Lloh15:
	adrp	x8, _B_WRITING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B_WRITING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	cset	w1, ne
LBB0_12:
	mov	x0, x19
	bl	___relink_lru
LBB0_13:
	mov	x0, x19
	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_14:
	mov	x0, x24
	mov	x1, x23
	bl	___check_watermark
	mov	w23, #1
	str	w23, [x19]
	stp	xzr, xzr, [x19, #8]
Lloh18:
	adrp	x8, _LIST_CLEAN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LIST_CLEAN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	___link_buffer
Lloh21:
	adrp	x8, _NF_FRESH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NF_FRESH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.15:
	str	wzr, [x19, #4]
	b	LBB0_13
LBB0_16:
Lloh24:
	adrp	x8, _B_READING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _B_READING@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	lsl	w8, w23, w8
	str	w8, [x19, #4]
	str	w23, [x21]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_GET,4,2                     ; @NF_GET
	.comm	_LIST_CLEAN,4,2                 ; @LIST_CLEAN
	.comm	_NF_FRESH,4,2                   ; @NF_FRESH
	.comm	_B_READING,4,2                  ; @B_READING
	.comm	_NF_PREFETCH,4,2                ; @NF_PREFETCH
	.comm	_B_DIRTY,4,2                    ; @B_DIRTY
	.comm	_B_WRITING,4,2                  ; @B_WRITING
	.no_dead_strip	___bufio_new
.subsections_via_symbols
