	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preadfd
_preadfd:                               ## @preadfd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_parsefile@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	8(%rcx), %eax
	movq	_parsenextc@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_BUFSIZ@GOTPCREL(%rip), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_el@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_preadfd.rl_cp(%rip), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_el_resize
	movq	_el@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	_preadfd.el_len(%rip), %rsi
	callq	_el_gets
	movq	%rax, _preadfd.rl_cp(%rip)
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rsi
	movq	(%r12), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	_preadfd.el_len(%rip), %eax
	movl	(%r14), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	8(%rcx), %edi
	movl	%ebx, %edx
	callq	_memcpy
	movl	_preadfd.el_len(%rip), %eax
	subl	%ebx, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, _preadfd.rl_cp(%rip)
	testl	%ebx, %ebx
	jle	LBB0_11
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rcx), %esi
	movl	(%r14), %edx
	callq	_read
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, _preadfd.el_len(%rip)
	movslq	%ebx, %rax
	addq	%rax, _preadfd.rl_cp(%rip)
	testl	%ebx, %ebx
	jle	LBB0_11
	jmp	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpl	_preadfd.el_len(%rip), %eax
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	movl	$-1, %ebx
	testl	%eax, %eax
	jns	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	notl	%edx
	andl	%eax, %edx
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_fcntl
	testq	%rax, %rax
	js	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_out2fmt_flush
	movq	(%r12), %rcx
	jmp	LBB0_1
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parsefile,8,3                  ## @parsefile
	.comm	_parsenextc,4,2                 ## @parsenextc
	.comm	_el,8,3                         ## @el
.zerofill __DATA,__bss,_preadfd.rl_cp,8,3 ## @preadfd.rl_cp
.zerofill __DATA,__bss,_preadfd.el_len,4,2 ## @preadfd.el_len
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh: turning off NDELAY mode\n"

	.no_dead_strip	_preadfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preadfd
_preadfd:                               ; @preadfd
	.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	x22, _parsefile@GOTPAGE
Lloh1:
	ldr	x22, [x22, _parsefile@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x8, _parsenextc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _parsenextc@GOTPAGEOFF]
	ldr	w10, [x9, #8]
Lloh4:
	str	w10, [x8]
Lloh5:
	adrp	x23, _el@GOTPAGE
Lloh6:
	ldr	x23, [x23, _el@GOTPAGEOFF]
Lloh7:
	adrp	x24, _BUFSIZ@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BUFSIZ@GOTPAGEOFF]
Lloh9:
	adrp	x25, _errno@GOTPAGE
Lloh10:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh11:
	adrp	x26, _EINTR@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
Lloh13:
	adrp	x27, _EWOULDBLOCK@GOTPAGE
Lloh14:
	ldr	x27, [x27, _EWOULDBLOCK@GOTPAGEOFF]
Lloh15:
	adrp	x28, _F_GETFL@GOTPAGE
Lloh16:
	ldr	x28, [x28, _F_GETFL@GOTPAGEOFF]
	adrp	x19, _preadfd.rl_cp@PAGE
	adrp	x20, _preadfd.el_len@PAGE
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9]
	ldr	x0, [x23]
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x9, #8]
	ldr	w2, [x24]
	mov	x0, x8
	bl	_read
	mov	x21, x0
	cmp	w21, #0
	b.le	LBB0_9
	b	LBB0_19
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, _preadfd.rl_cp@PAGEOFF]
	cbnz	x1, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_el_resize
	ldr	x0, [x23]
Lloh17:
	adrp	x1, _preadfd.el_len@PAGE
Lloh18:
	add	x1, x1, _preadfd.el_len@PAGEOFF
	bl	_el_gets
	str	x0, [x19, _preadfd.rl_cp@PAGEOFF]
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	ldr	x9, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, _preadfd.el_len@PAGEOFF]
	ldr	w10, [x24]
	cmp	w8, w10
	csel	w21, w8, w10, lt
	ldr	w0, [x9, #8]
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x20, _preadfd.el_len@PAGEOFF]
	subs	w8, w8, w21
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x19, _preadfd.rl_cp@PAGEOFF]
	cmp	w21, #0
	b.gt	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w21, #31, LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x10, [x27]
	cmp	x9, #0
	ccmp	x8, x10, #0, eq
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	mov	w0, #0
	mov	w2, #0
	bl	_fcntl
	tbnz	w0, #31, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	bic	w2, w0, w8
Lloh22:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_fcntl
	tbnz	x0, #63, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_out2fmt_flush
	ldr	x9, [x22]
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x20, _preadfd.el_len@PAGEOFF]
	ldr	x8, [x19, _preadfd.rl_cp@PAGEOFF]
	add	x8, x8, w21, sxtw
	str	x8, [x19, _preadfd.rl_cp@PAGEOFF]
	cmp	w21, #0
	b.le	LBB0_9
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, _preadfd.el_len@PAGEOFF]
	cmp	w8, #0
	csetm	w21, ne
	tbnz	w21, #31, LBB0_10
LBB0_18:
	mov	w21, #-1
LBB0_19:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_parsefile,8,3                  ; @parsefile
	.comm	_parsenextc,4,2                 ; @parsenextc
	.comm	_el,8,3                         ; @el
.zerofill __DATA,__bss,_preadfd.rl_cp,8,3 ; @preadfd.rl_cp
.zerofill __DATA,__bss,_preadfd.el_len,4,2 ; @preadfd.el_len
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh: turning off NDELAY mode\n"

	.no_dead_strip	_preadfd
.subsections_via_symbols
