	.file	"extr_wsetup.c___swsetup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__swsetup
	.type	__swsetup, @function
__swsetup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR __sdidinit[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	test	eax, eax
	je	.L19
.L2:
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR __SWR[rip]
	test	eax, edx
	je	.L3
	mov	rcx, QWORD PTR 16[rbx]
	test	rcx, rcx
	je	.L20
.L10:
	mov	eax, DWORD PTR [rbx]
	mov	r8d, eax
	and	r8d, DWORD PTR __SLBF[rip]
	jne	.L21
.L11:
	xor	edx, edx
	test	DWORD PTR __SNBF[rip], eax
	jne	.L12
	mov	rdx, QWORD PTR 8[rbx]
.L12:
	mov	QWORD PTR 24[rbx], rdx
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	DWORD PTR __SRW[rip], eax
	je	.L22
	test	DWORD PTR __SRD[rip], eax
	jne	.L7
	mov	rcx, QWORD PTR 16[rbx]
.L8:
	or	eax, edx
	mov	DWORD PTR [rbx], eax
	test	rcx, rcx
	jne	.L10
.L20:
	mov	rdi, rbx
	call	__smakebuf@PLT
	mov	eax, DWORD PTR [rbx]
	mov	r8d, eax
	and	r8d, DWORD PTR __SLBF[rip]
	je	.L11
.L21:
	mov	rax, QWORD PTR 8[rbx]
	xor	r8d, r8d
	mov	QWORD PTR 24[rbx], 0
	neg	rax
	mov	QWORD PTR 32[rbx], rax
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	xor	eax, eax
	call	__sinit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR EBADF[rip]
	mov	r8d, DWORD PTR EOF[rip]
	or	eax, DWORD PTR __SERR[rip]
	mov	DWORD PTR errno[rip], edx
	mov	DWORD PTR [rbx], eax
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	call	HASUB@PLT
	test	rax, rax
	jne	.L23
.L9:
	mov	rcx, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR __SRD[rip]
	mov	QWORD PTR 48[rbx], 0
	or	eax, DWORD PTR __SEOF[rip]
	mov	edx, DWORD PTR __SWR[rip]
	not	eax
	mov	QWORD PTR 40[rbx], rcx
	and	eax, DWORD PTR [rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbx
	call	FREEUB@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	__swsetup, .-__swsetup
	.comm	errno,4,4
	.comm	__sdidinit,4,4
	.comm	__SWR,4,4
	.comm	__SRW,4,4
	.comm	__SRD,4,4
	.comm	__SNBF,4,4
	.comm	__SLBF,4,4
	.comm	__SERR,4,4
	.comm	__SEOF,4,4
	.comm	EOF,4,4
	.comm	EBADF,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_wsetup.c___swsetup.c"
	.text
	.align	2
	.global	__swsetup
	.syntax unified
	.arm
	.fpu softvfp
	.type	__swsetup, %function
__swsetup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #0
	beq	.L19
.L2:
	ldr	r5, .L23+4
	ldr	r3, [r4]
	ldr	r2, [r5]
	tst	r3, r2
	beq	.L3
	ldr	r1, [r4, #8]
	cmp	r1, #0
	beq	.L20
.L10:
	ldr	r2, .L23+8
	ldr	r3, [r4]
	ldr	r0, [r2]
	ands	r0, r3, r0
	beq	.L11
	mov	r0, #0
	ldr	r3, [r4, #4]
	str	r0, [r4, #12]
	rsb	r3, r3, #0
	str	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r1, .L23+12
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L21
	ldr	r6, .L23+16
	ldr	r1, [r6]
	tst	r3, r1
	bne	.L7
	ldr	r1, [r4, #8]
.L8:
	orr	r3, r3, r2
	cmp	r1, #0
	str	r3, [r4]
	bne	.L10
.L20:
	mov	r0, r4
	bl	__smakebuf
	b	.L10
.L11:
	ldr	r2, .L23+20
	ldr	r2, [r2]
	tst	r3, r2
	movne	r3, r0
	ldreq	r3, [r4, #4]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L19:
	bl	__sinit
	b	.L2
.L21:
	ldr	r2, .L23+24
	ldr	r1, .L23+28
	ldr	r2, [r2]
	ldr	ip, [r1]
	ldr	r0, .L23+32
	ldr	r1, .L23+36
	orr	r3, r2, r3
	str	ip, [r0]
	ldr	r0, [r1]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r4
	bl	HASUB
	cmp	r0, #0
	bne	.L22
.L9:
	mov	r0, #0
	ldr	r2, .L23+40
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	ip, [r4]
	orr	r3, r3, r1
	ldr	r1, [r4, #8]
	ldr	r2, [r5]
	bic	r3, ip, r3
	str	r0, [r4, #24]
	str	r1, [r4, #20]
	b	.L8
.L22:
	mov	r0, r4
	bl	FREEUB
	b	.L9
.L24:
	.align	2
.L23:
	.word	__sdidinit
	.word	__SWR
	.word	__SLBF
	.word	__SRW
	.word	__SRD
	.word	__SNBF
	.word	__SERR
	.word	EBADF
	.word	errno
	.word	EOF
	.word	__SEOF
	.size	__swsetup, .-__swsetup
	.comm	errno,4,4
	.comm	__sdidinit,4,4
	.comm	__SWR,4,4
	.comm	__SRW,4,4
	.comm	__SRD,4,4
	.comm	__SNBF,4,4
	.comm	__SLBF,4,4
	.comm	__SERR,4,4
	.comm	__SEOF,4,4
	.comm	EOF,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
