	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___srefill                      ## -- Begin function __srefill
	.p2align	4, 0x90
___srefill:                             ## @__srefill
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___sdidinit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	___sinit
LBB0_2:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ORIENT
	movq	$0, (%rbx)
	movl	8(%rbx), %eax
	movq	___SEOF@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_19:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	___SRD@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.20:
	movq	%rbx, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_10
## %bb.21:
	movq	%rbx, %rdi
	callq	_FREEUB
	movq	16(%rbx), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.22:
	movq	48(%rbx), %rax
	movq	%rax, 40(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_4:
	movq	___SRW@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.6:
	movq	___SWR@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	___sflush
	testq	%rax, %rax
	jne	LBB0_19
## %bb.8:
	movl	(%r12), %eax
	notl	%eax
	andl	8(%rbx), %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movl	(%r15), %ecx
LBB0_9:
	orl	%ecx, %eax
	movl	%eax, 8(%rbx)
LBB0_10:
	cmpq	$0, 32(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	___smakebuf
LBB0_12:
	movl	8(%rbx), %eax
	movq	___SLBF@GOTPCREL(%rip), %r15
	movq	___SNBF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.13:
	movq	___SIGN@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	_lflush@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__fwalk
	movl	(%r12), %eax
	notl	%eax
	andl	8(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	___SWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r15), %ecx
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	___sflush
LBB0_15:
	movq	32(%rbx), %rsi
	movq	%rsi, 40(%rbx)
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	callq	__sread
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	movq	___SMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	8(%rbx), %edx
	movl	%edx, 8(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jg	LBB0_23
## %bb.16:
	je	LBB0_18
## %bb.17:
	movq	$0, (%rbx)
	movq	___SERR@GOTPCREL(%rip), %r14
LBB0_18:
	orl	(%r14), %edx
	movl	%edx, 8(%rbx)
	jmp	LBB0_19
LBB0_5:
	movq	_EBADF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	___SERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	%eax, 8(%rbx)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	___sdidinit,4,2                 ## @__sdidinit
	.comm	___SEOF,4,2                     ## @__SEOF
	.comm	_EOF,4,2                        ## @EOF
	.comm	___SRD,4,2                      ## @__SRD
	.comm	___SRW,4,2                      ## @__SRW
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	___SERR,4,2                     ## @__SERR
	.comm	___SWR,4,2                      ## @__SWR
	.comm	___SLBF,4,2                     ## @__SLBF
	.comm	___SNBF,4,2                     ## @__SNBF
	.comm	___SIGN,4,2                     ## @__SIGN
	.comm	_lflush,4,2                     ## @lflush
	.comm	___SMOD,4,2                     ## @__SMOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___srefill                      ; -- Begin function __srefill
	.p2align	2
___srefill:                             ; @__srefill
	.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
Lloh0:
	adrp	x8, ___sdidinit@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___sdidinit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	___sinit
LBB0_2:
	mov	x0, x19
	mov	w1, #-1
	bl	_ORIENT
	str	xzr, [x19]
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, ___SEOF@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___SEOF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	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
LBB0_5:
Lloh9:
	adrp	x20, ___SRD@GOTPAGE
Lloh10:
	ldr	x20, [x20, ___SRD@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_HASUB
	cbz	x0, LBB0_14
; %bb.7:
	mov	x0, x19
	bl	_FREEUB
	ldr	x8, [x19, #16]
	str	x8, [x19]
	cbz	x8, LBB0_14
; %bb.8:
	mov	w0, #0
	ldr	x8, [x19, #48]
	str	x8, [x19, #40]
	b	LBB0_4
LBB0_9:
Lloh11:
	adrp	x10, ___SRW@GOTPAGE
Lloh12:
	ldr	x10, [x10, ___SRW@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_23
; %bb.10:
Lloh14:
	adrp	x21, ___SWR@GOTPAGE
Lloh15:
	ldr	x21, [x21, ___SWR@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w8
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	___sflush
	cbnz	x0, LBB0_3
; %bb.12:
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	stp	xzr, xzr, [x19, #56]
	ldr	w9, [x20]
LBB0_13:
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_14:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	___smakebuf
LBB0_16:
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x20, ___SLBF@GOTPAGE
Lloh17:
	ldr	x20, [x20, ___SLBF@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh18:
	adrp	x10, ___SNBF@GOTPAGE
Lloh19:
	ldr	x10, [x10, ___SNBF@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_19
; %bb.17:
Lloh21:
	adrp	x21, ___SIGN@GOTPAGE
Lloh22:
	ldr	x21, [x21, ___SIGN@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh23:
	adrp	x8, _lflush@GOTPAGE
Lloh24:
	ldr	x8, [x8, _lflush@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	__fwalk
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w9, [x20]
Lloh26:
	adrp	x10, ___SWR@GOTPAGE
Lloh27:
	ldr	x10, [x10, ___SWR@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	___sflush
LBB0_19:
	ldr	x1, [x19, #32]
	str	x1, [x19, #40]
	ldr	w2, [x19, #24]
	mov	x0, x19
	bl	__sread
Lloh29:
	adrp	x8, ___SMOD@GOTPAGE
Lloh30:
	ldr	x8, [x8, ___SMOD@GOTPAGEOFF]
	str	x0, [x19]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	cmp	x0, #0
	b.le	LBB0_21
; %bb.20:
	mov	w0, #0
	b	LBB0_4
LBB0_21:
	cbz	x0, LBB0_25
; %bb.22:
	str	xzr, [x19]
	b	LBB0_24
LBB0_23:
Lloh32:
	adrp	x9, _EBADF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EBADF@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _errno@GOTPAGE
Lloh36:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh37:
	str	w9, [x10]
LBB0_24:
Lloh38:
	adrp	x9, ___SERR@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___SERR@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh40:
	adrp	x9, ___SEOF@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___SEOF@GOTPAGEOFF]
LBB0_26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	___sdidinit,4,2                 ; @__sdidinit
	.comm	___SEOF,4,2                     ; @__SEOF
	.comm	_EOF,4,2                        ; @EOF
	.comm	___SRD,4,2                      ; @__SRD
	.comm	___SRW,4,2                      ; @__SRW
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	___SERR,4,2                     ; @__SERR
	.comm	___SWR,4,2                      ; @__SWR
	.comm	___SLBF,4,2                     ; @__SLBF
	.comm	___SNBF,4,2                     ; @__SNBF
	.comm	___SIGN,4,2                     ; @__SIGN
	.comm	_lflush,4,2                     ; @lflush
	.comm	___SMOD,4,2                     ; @__SMOD
.subsections_via_symbols
