	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetwln_l                      ## -- Begin function fgetwln_l
	.p2align	4, 0x90
_fgetwln_l:                             ## @fgetwln_l
	.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
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	%edx, %edi
	callq	_FIX_LOCALE
	movq	%r12, %rdi
	callq	_FLOCKFILE_CANCELSAFE
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ORIENT
	movl	(%r12), %eax
	movq	___SERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r12)
	xorl	%r14d, %r14d
	movq	_WEOF@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movl	%ebx, (%rax,%r14,4)
	incq	%r14
	cmpl	$10, %ebx
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___fgetwc
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	leaq	(,%r14,4), %rsi
	cmpq	8(%r12), %rsi
	jb	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2048, %rsi                     ## imm = 0x800
	movq	%r12, %rdi
	callq	___slbexpand
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	callq	___sferror
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, (%r12)
	testq	%r14, %r14
	je	LBB0_5
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	16(%r12), %rbx
LBB0_10:
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_WEOF,4,2                       ## @WEOF
	.comm	_GROW,8,3                       ## @GROW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetwln_l                      ; -- Begin function fgetwln_l
	.p2align	2
_fgetwln_l:                             ; @fgetwln_l
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_FIX_LOCALE
	mov	x0, x20
	bl	_FLOCKFILE_CANCELSAFE
	mov	x0, x20
	mov	w1, #1
	bl	_ORIENT
	mov	x25, #0
	ldr	w8, [x20]
Lloh0:
	adrp	x24, ___SERR@GOTPAGE
Lloh1:
	ldr	x24, [x24, ___SERR@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w23, w9, w8
	bic	w8, w8, w9
	str	w8, [x20]
Lloh2:
	adrp	x26, _WEOF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _WEOF@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #16]
	add	x27, x25, #1
	str	w22, [x8, x25, lsl #2]
	mov	x25, x27
	cmp	w22, #10
	b.eq	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	___fgetwc
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	lsl	x8, x25, #2
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.lo	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x8, #2048
	mov	x0, x20
	bl	___slbexpand
	cbz	x0, LBB0_1
; %bb.5:
	ldr	w8, [x24]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_8
LBB0_6:
	mov	x27, x25
LBB0_7:
	mov	x0, x20
	bl	___sferror
	cbz	x0, LBB0_9
LBB0_8:
	mov	x20, #0
	str	xzr, [x19]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	orr	w8, w8, w23
	str	w8, [x20]
	cbz	x27, LBB0_8
; %bb.10:
	str	x27, [x19]
	ldr	x20, [x20, #16]
LBB0_11:
	bl	_FUNLOCKFILE_CANCELSAFE
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_WEOF,4,2                       ; @WEOF
	.comm	_GROW,8,3                       ; @GROW
.subsections_via_symbols
