	.file	"extr_file.c_msvcrt_free_fd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	":fd (%d) freed\n"
	.text
	.p2align 4
	.type	msvcrt_free_fd, @function
msvcrt_free_fd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	get_ioinfo@PLT
	mov	rbp, rax
	lea	rax, __badioinfo[rip]
	cmp	rbp, rax
	je	.L2
	mov	eax, DWORD PTR INVALID_HANDLE_VALUE[rip]
	mov	QWORD PTR 0[rbp], 0
	mov	DWORD PTR 8[rbp], eax
.L2:
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	cmp	ebx, 2
	jg	.L3
	cmp	ebx, 1
	je	.L4
	cmp	ebx, 2
	je	.L5
	test	ebx, ebx
	je	.L8
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	release_ioinfo@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR STD_INPUT_HANDLE[rip]
	xor	esi, esi
	call	SetStdHandle@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	release_ioinfo@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR STD_ERROR_HANDLE[rip]
	xor	esi, esi
	call	SetStdHandle@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	release_ioinfo@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR STD_OUTPUT_HANDLE[rip]
	xor	esi, esi
	call	SetStdHandle@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	release_ioinfo@PLT
	.cfi_endproc
.LFE0:
	.size	msvcrt_free_fd, .-msvcrt_free_fd
	.comm	__badioinfo,16,16
	.comm	STD_OUTPUT_HANDLE,4,4
	.comm	STD_INPUT_HANDLE,4,4
	.comm	STD_ERROR_HANDLE,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_file.c_msvcrt_free_fd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	":fd (%d) freed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msvcrt_free_fd, %function
msvcrt_free_fd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	get_ioinfo
	ldr	r3, .L9
	mov	r5, r0
	cmp	r0, r3
	movne	r2, #0
	ldrne	r3, .L9+4
	mov	r1, r4
	ldrne	r3, [r3]
	stmne	r0, {r2, r3}
	ldr	r0, .L9+8
	bl	TRACE
	cmp	r4, #2
	bgt	.L3
	cmp	r4, #1
	beq	.L4
	cmp	r4, #2
	beq	.L5
	cmp	r4, #0
	beq	.L8
.L3:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	release_ioinfo
.L8:
	ldr	r3, .L9+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	SetStdHandle
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	release_ioinfo
.L5:
	ldr	r3, .L9+16
	mov	r1, #0
	ldr	r0, [r3]
	bl	SetStdHandle
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	release_ioinfo
.L4:
	ldr	r3, .L9+20
	mov	r1, #0
	ldr	r0, [r3]
	bl	SetStdHandle
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	release_ioinfo
.L10:
	.align	2
.L9:
	.word	__badioinfo
	.word	INVALID_HANDLE_VALUE
	.word	.LC0
	.word	STD_INPUT_HANDLE
	.word	STD_ERROR_HANDLE
	.word	STD_OUTPUT_HANDLE
	.size	msvcrt_free_fd, .-msvcrt_free_fd
	.comm	__badioinfo,8,4
	.comm	STD_OUTPUT_HANDLE,4,4
	.comm	STD_INPUT_HANDLE,4,4
	.comm	STD_ERROR_HANDLE,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
