	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freopen                        ## -- Begin function freopen
	.p2align	4, 0x90
_freopen:                               ## @freopen
	.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, %r15
	movq	%rsi, %rax
	movq	%rdi, %r13
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	___sflags
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_FLOCKFILE_CANCELSAFE
	movq	___sdidinit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	___sinit
LBB0_4:
	movl	(%r15), %eax
	testq	%r13, %r13
	je	LBB0_5
## %bb.25:
	testl	%eax, %eax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_26
## %bb.27:
	movq	___SWR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	___sflush
LBB0_29:
	movq	16(%r15), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	setne	%r14b
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_33
## %bb.30:
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.31:
	movq	40(%r15), %rdi
	callq	*%rcx
	jmp	LBB0_32
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_fclose
	movl	%ebx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_63
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	4(%r15), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	__fcntl
	movq	%rax, %r12
	testl	%r12d, %r12d
	js	LBB0_9
## %bb.10:
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%r12d, %ecx
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_13
## %bb.11:
	movq	_O_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	%r12d, %ecx
	andl	-44(%rbp), %eax
	cmpl	%eax, %ecx
	jne	LBB0_12
LBB0_13:
	movq	___SWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	___sflush
LBB0_15:
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	xorl	%r12d, %edx
	movq	_O_APPEND@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %edx
	je	LBB0_18
## %bb.16:
	andl	%ecx, %edx
	xorl	%r12d, %edx
	movl	4(%r15), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	__fcntl
	testq	%rax, %rax
	js	LBB0_9
## %bb.17:
	movl	-44(%rbp), %eax
LBB0_18:
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movl	4(%r15), %edi
	xorl	%esi, %esi
	callq	_ftruncate
	movl	-44(%rbp), %eax
LBB0_20:
	testl	%eax, (%r14)
	jne	LBB0_22
## %bb.21:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__sseek
	movl	-44(%rbp), %eax
LBB0_22:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:
	movl	4(%r15), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	callq	__fcntl
LBB0_24:
	movl	4(%r15), %r12d
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
                                        ## implicit-def: $r13d
	jmp	LBB0_40
LBB0_26:
	movq	___SEOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
LBB0_32:
	xorl	%r14d, %r14d
LBB0_33:
	movl	-44(%rbp), %esi
	movq	_DEFFILEMODE@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	__open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_39
## %bb.34:
	testl	%r14d, %r14d
	je	LBB0_39
## %bb.35:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jle	LBB0_39
## %bb.36:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENFILE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.37:
	movq	_EMFILE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_39
LBB0_38:
	movq	40(%r15), %rdi
	callq	*16(%r15)
	movl	-44(%rbp), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	__open
	movl	%eax, %r12d
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
LBB0_39:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_40:
	movq	___SMBF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_42
## %bb.41:
	movq	96(%r15), %rdi
	callq	_free
LBB0_42:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 112(%r15)
	movups	%xmm0, 96(%r15)
	movups	%xmm0, 80(%r15)
	movq	%r15, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:
	movq	%r15, %rdi
	callq	_FREEUB
LBB0_44:
	movq	$0, 72(%r15)
	movq	%r15, %rdi
	callq	_HASLB
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	movq	%r15, %rdi
	callq	_FREELB
LBB0_46:
	leaq	48(%r15), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$0, 8(%r15)
	testl	%r12d, %r12d
	js	LBB0_47
## %bb.50:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	js	LBB0_58
## %bb.51:
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_53
## %bb.52:
	movq	_F_DUP2FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	__fcntl
	testq	%rax, %rax
	js	LBB0_56
LBB0_55:
	movl	%r12d, %edi
	movl	%r14d, %r12d
	jmp	LBB0_57
LBB0_47:
	testl	%r14d, %r14d
	je	LBB0_49
## %bb.48:
	movq	40(%r15), %rdi
	callq	*16(%r15)
LBB0_49:
	movl	$0, (%r15)
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_62
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_fclose
	movl	%ebx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_62
LBB0_53:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	__dup2
	testq	%rax, %rax
	jns	LBB0_55
LBB0_56:
	movl	4(%r15), %edi
LBB0_57:
	callq	__close
LBB0_58:
	movq	_SHRT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_60
## %bb.59:
	movl	$0, (%r15)
	movq	_EMFILE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_62
LBB0_60:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	%r12d, 4(%r15)
	movq	%r15, 40(%r15)
	movq	___sread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	___swrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	___sseek@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	___sclose@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_62
## %bb.61:
	movq	___S2OAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__sseek
LBB0_62:
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
LBB0_63:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	callq	_fclose
	movq	_EBADF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	___sdidinit,4,2                 ## @__sdidinit
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_EXEC,4,2                     ## @O_EXEC
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	___SWR,4,2                      ## @__SWR
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	___SEOF,4,2                     ## @__SEOF
	.comm	_DEFFILEMODE,4,2                ## @DEFFILEMODE
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_ENFILE,4,2                     ## @ENFILE
	.comm	_EMFILE,4,2                     ## @EMFILE
	.comm	___SMBF,4,2                     ## @__SMBF
	.comm	_F_DUP2FD_CLOEXEC,4,2           ## @F_DUP2FD_CLOEXEC
	.comm	_SHRT_MAX,4,2                   ## @SHRT_MAX
	.comm	___sread,4,2                    ## @__sread
	.comm	___swrite,4,2                   ## @__swrite
	.comm	___sseek,4,2                    ## @__sseek
	.comm	___S2OAP,4,2                    ## @__S2OAP
	.comm	_SEEK_END,4,2                   ## @SEEK_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freopen                        ; -- Begin function freopen
	.p2align	2
_freopen:                               ; @freopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x23, x0
	add	x1, sp, #12
	mov	x0, x8
	bl	___sflags
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_FLOCKFILE_CANCELSAFE
Lloh0:
	adrp	x8, ___sdidinit@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___sdidinit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cbz	x23, LBB0_11
LBB0_3:
	cbz	w8, LBB0_27
; %bb.4:
Lloh3:
	adrp	x9, ___SWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___SWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	___sflush
LBB0_6:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w24, ne
	ldr	w21, [x19, #4]
	tbz	w21, #31, LBB0_28
; %bb.7:
	cbz	x8, LBB0_28
; %bb.8:
	ldr	x0, [x19, #40]
	blr	x8
	mov	w24, #0
	b	LBB0_28
LBB0_9:
Lloh6:
	adrp	x20, _errno@GOTPAGE
Lloh7:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_fclose
	mov	x19, #0
	str	w21, [x20]
	b	LBB0_62
LBB0_10:
	bl	___sinit
	ldr	w8, [x19]
	cbnz	x23, LBB0_3
LBB0_11:
	cbz	w8, LBB0_34
; %bb.12:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	__fcntl
	mov	x21, x0
	tbnz	w21, #31, LBB0_35
; %bb.13:
Lloh11:
	adrp	x8, _O_ACCMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_ACCMODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w9, w8, w21
Lloh14:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_15
; %bb.14:
Lloh17:
	adrp	x9, _O_EXEC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_EXEC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w9, w9, w8
	and	w9, w9, w21
	ldr	w10, [sp, #12]
	and	w8, w10, w8
	cmp	w9, w8
	b.ne	LBB0_59
LBB0_15:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, ___SWR@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___SWR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	___sflush
LBB0_17:
	ldr	w8, [sp, #12]
	eor	w10, w8, w21
Lloh23:
	adrp	x22, _O_APPEND@GOTPAGE
Lloh24:
	ldr	x22, [x22, _O_APPEND@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.18:
	bic	w10, w21, w9
	and	w8, w9, w8
	orr	w8, w10, w8
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x9, _F_SETFL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _F_SETFL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	str	x8, [sp]
	bl	__fcntl
	tbnz	x0, #63, LBB0_35
; %bb.19:
	ldr	w8, [sp, #12]
LBB0_20:
Lloh28:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_ftruncate
	ldr	w8, [sp, #12]
LBB0_22:
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_24
; %bb.23:
Lloh31:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	__sseek
	ldr	w8, [sp, #12]
LBB0_24:
Lloh34:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	ldr	w0, [x19, #4]
Lloh37:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	__fcntl
LBB0_26:
	mov	w24, #0
	ldr	w22, [x19, #4]
	mov	w21, #-1
                                        ; implicit-def: $w23
	b	LBB0_38
LBB0_27:
	mov	w24, #0
Lloh43:
	adrp	x8, ___SEOF@GOTPAGE
Lloh44:
	ldr	x8, [x8, ___SEOF@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w21, #-1
LBB0_28:
	ldr	w1, [sp, #12]
Lloh46:
	adrp	x26, _DEFFILEMODE@GOTPAGE
Lloh47:
	ldr	x26, [x26, _DEFFILEMODE@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x23
	bl	__open
	mov	x22, x0
Lloh48:
	adrp	x25, _errno@GOTPAGE
Lloh49:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	tbz	w0, #31, LBB0_37
; %bb.29:
	cbz	w24, LBB0_37
; %bb.30:
Lloh50:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_33
; %bb.31:
	ldr	w8, [x25]
Lloh53:
	adrp	x9, _ENFILE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ENFILE@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_36
; %bb.32:
Lloh56:
	adrp	x9, _EMFILE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _EMFILE@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_36
LBB0_33:
	mov	w24, #1
	b	LBB0_37
LBB0_34:
	mov	x19, #0
Lloh59:
	adrp	x8, _EINVAL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_60
LBB0_35:
Lloh61:
	adrp	x20, _errno@GOTPAGE
Lloh62:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_fclose
	mov	x19, #0
	str	w21, [x20]
	b	LBB0_61
LBB0_36:
	ldr	x8, [x19, #16]
	ldr	x0, [x19, #40]
	blr	x8
	ldr	w1, [sp, #12]
	ldr	w2, [x26]
	mov	x0, x23
	bl	__open
	mov	x22, x0
	mov	w24, #0
	mov	w21, #-1
LBB0_37:
	ldr	w23, [x25]
LBB0_38:
	ldr	w8, [x19]
Lloh63:
	adrp	x9, ___SMBF@GOTPAGE
Lloh64:
	ldr	x9, [x9, ___SMBF@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.39:
	ldr	x0, [x19, #96]
	bl	_free
LBB0_40:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #96]
	str	q0, [x19, #80]
	mov	x0, x19
	bl	_HASUB
	cbz	x0, LBB0_42
; %bb.41:
	mov	x0, x19
	bl	_FREEUB
LBB0_42:
	str	xzr, [x19, #72]
	mov	x0, x19
	bl	_HASLB
	cbz	x0, LBB0_44
; %bb.43:
	mov	x0, x19
	bl	_FREELB
LBB0_44:
	add	x0, x19, #48
	stp	xzr, xzr, [x19, #56]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	wzr, [x19, #8]
	tbnz	w22, #31, LBB0_49
; %bb.45:
	tbnz	w21, #31, LBB0_55
; %bb.46:
	ldr	w8, [sp, #12]
Lloh66:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh67:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_52
; %bb.47:
Lloh69:
	adrp	x8, _F_DUP2FD_CLOEXEC@GOTPAGE
Lloh70:
	ldr	x8, [x8, _F_DUP2FD_CLOEXEC@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	str	x21, [sp]
	mov	x0, x22
	bl	__fcntl
	tbnz	x0, #63, LBB0_53
LBB0_48:
	mov	x0, x22
	mov	x22, x21
	b	LBB0_54
LBB0_49:
	cbz	w24, LBB0_51
; %bb.50:
	ldr	x8, [x19, #16]
	ldr	x0, [x19, #40]
	blr	x8
LBB0_51:
	str	wzr, [x19]
Lloh72:
	adrp	x8, _errno@GOTPAGE
Lloh73:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh74:
	str	w23, [x8]
	mov	x19, #0
	b	LBB0_61
LBB0_52:
	mov	x0, x22
	mov	x1, x21
	bl	__dup2
	tbz	x0, #63, LBB0_48
LBB0_53:
	ldr	w0, [x19, #4]
LBB0_54:
	bl	__close
LBB0_55:
Lloh75:
	adrp	x8, _SHRT_MAX@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SHRT_MAX@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_57
; %bb.56:
Lloh78:
	adrp	x8, _EMFILE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _EMFILE@GOTPAGEOFF]
	str	wzr, [x19]
Lloh80:
	ldr	w8, [x8]
Lloh81:
	adrp	x9, _errno@GOTPAGE
Lloh82:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh83:
	str	w8, [x9]
	mov	x19, #0
	b	LBB0_61
LBB0_57:
	stp	w20, w22, [x19]
	str	x19, [x19, #40]
Lloh84:
	adrp	x8, ___sread@GOTPAGE
Lloh85:
	ldr	x8, [x8, ___sread@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh87:
	adrp	x8, ___swrite@GOTPAGE
Lloh88:
	ldr	x8, [x8, ___swrite@GOTPAGEOFF]
Lloh89:
	adrp	x9, ___sseek@GOTPAGE
Lloh90:
	ldr	x9, [x9, ___sseek@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
Lloh92:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh93:
	adrp	x8, ___sclose@GOTPAGE
Lloh94:
	ldr	x8, [x8, ___sclose@GOTPAGEOFF]
	str	x8, [x19, #16]
	ldr	w8, [sp, #12]
Lloh95:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh96:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_61
; %bb.58:
Lloh98:
	adrp	x8, ___S2OAP@GOTPAGE
Lloh99:
	ldr	x8, [x8, ___S2OAP@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh101:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh102:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	__sseek
	b	LBB0_61
LBB0_59:
	mov	x0, x19
	bl	_fclose
	mov	x19, #0
Lloh104:
	adrp	x8, _EBADF@GOTPAGE
Lloh105:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_60:
	ldr	w8, [x8]
Lloh106:
	adrp	x9, _errno@GOTPAGE
Lloh107:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh108:
	str	w8, [x9]
LBB0_61:
	bl	_FUNLOCKFILE_CANCELSAFE
LBB0_62:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotStr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotStr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh91
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotStr	Lloh106, Lloh107, Lloh108
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	___sdidinit,4,2                 ; @__sdidinit
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_EXEC,4,2                     ; @O_EXEC
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	___SWR,4,2                      ; @__SWR
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	___SEOF,4,2                     ; @__SEOF
	.comm	_DEFFILEMODE,4,2                ; @DEFFILEMODE
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_ENFILE,4,2                     ; @ENFILE
	.comm	_EMFILE,4,2                     ; @EMFILE
	.comm	___SMBF,4,2                     ; @__SMBF
	.comm	_F_DUP2FD_CLOEXEC,4,2           ; @F_DUP2FD_CLOEXEC
	.comm	_SHRT_MAX,4,2                   ; @SHRT_MAX
	.comm	___sread,4,2                    ; @__sread
	.comm	___swrite,4,2                   ; @__swrite
	.comm	___sseek,4,2                    ; @__sseek
	.comm	___S2OAP,4,2                    ; @__S2OAP
	.comm	_SEEK_END,4,2                   ; @SEEK_END
.subsections_via_symbols
