	.file	"extr_parsesolaris.c_setup_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"parse: SETUP_STREAM - setting up stream for q=%x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"NULL q - strange"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"parse: setup_stream - FAILED - no MEMORY for allocb\n"
	.text
	.p2align 4
	.type	setup_stream, @function
setup_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rdi
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	lea	rsi, .LC0[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR DD_OPEN[rip]
	call	pprintf@PLT
	mov	esi, DWORD PTR BPRI_MED[rip]
	mov	edi, 24
	call	allocb@PLT
	test	rax, rax
	je	.L2
	movsx	rcx, DWORD PTR [rax]
	mov	rsi, rax
	mov	eax, DWORD PTR SO_READOPT[rip]
	or	eax, DWORD PTR SO_HIWAT[rip]
	or	eax, DWORD PTR SO_LOWAT[rip]
	or	eax, DWORD PTR SO_ISNTTY[rip]
	cmp	DWORD PTR M_PARSE[rip], ebx
	mov	rdx, rcx
	mov	DWORD PTR [rcx], eax
	mov	edi, DWORD PTR RNORM[rip]
	mov	eax, 256
	jne	.L4
	mov	edi, DWORD PTR RMSGD[rip]
	mov	eax, 4
.L4:
	mov	DWORD PTR 4[rcx], eax
	mov	rax, QWORD PTR 8[rsi]
	add	edx, 24
	mov	DWORD PTR 16[rcx], edi
	mov	QWORD PTR 8[rcx], 0
	mov	ecx, DWORD PTR M_SETOPTS[rip]
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR [rsi], edx
	test	rbp, rbp
	je	.L10
.L5:
	mov	rdi, rbp
	call	putnext@PLT
	cmp	DWORD PTR M_PARSE[rip], ebx
	mov	r12d, DWORD PTR MC_SERVICEDEF[rip]
	jne	.L7
	mov	r12d, DWORD PTR MC_SERVICEIMM[rip]
.L7:
	mov	rdi, rbp
	mov	r13d, DWORD PTR M_CTL[rip]
	call	WR@PLT
	mov	edx, r12d
	mov	edi, DWORD PTR [rax]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	putctl1@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR DD_OPEN[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	pprintf@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], rsi
	call	panic@PLT
	mov	rsi, QWORD PTR 8[rsp]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	setup_stream, .-setup_stream
	.comm	SO_READOPT,4,4
	.comm	SO_LOWAT,4,4
	.comm	SO_ISNTTY,4,4
	.comm	SO_HIWAT,4,4
	.comm	RNORM,4,4
	.comm	RMSGD,4,4
	.comm	M_SETOPTS,4,4
	.comm	M_PARSE,4,4
	.comm	M_CTL,4,4
	.comm	MC_SERVICEIMM,4,4
	.comm	MC_SERVICEDEF,4,4
	.comm	DD_OPEN,4,4
	.comm	BPRI_MED,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_parsesolaris.c_setup_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"parse: SETUP_STREAM - setting up stream for q=%x\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"NULL q - strange\000"
	.align	2
.LC2:
	.ascii	"parse: setup_stream - FAILED - no MEMORY for allocb"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_stream, %function
setup_stream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L11
	mov	r2, r0
	mov	r6, r0
	mov	r5, r1
	ldr	r0, [r7]
	ldr	r1, .L11+4
	bl	pprintf
	ldr	r3, .L11+8
	mov	r0, #16
	ldr	r1, [r3]
	bl	allocb
	subs	r4, r0, #0
	beq	.L2
	ldr	r1, .L11+12
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	ip, [r1]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r7, .L11+24
	orr	ip, ip, r1
	orr	ip, ip, r2
	ldr	r2, [r7]
	mov	r0, #0
	cmp	r2, r5
	moveq	r2, #4
	movne	r2, #256
	ldr	r3, .L11+28
	ldreq	r1, .L11+32
	ldr	r3, [r3]
	ldrne	r1, .L11+36
	orr	ip, ip, r3
	ldr	r3, [r4]
	cmp	r6, r0
	str	ip, [r3]
	ldr	ip, [r1]
	ldr	r1, .L11+40
	str	r2, [r3, #4]
	ldr	r1, [r1]
	ldr	r2, [r4, #4]
	str	ip, [r3, #12]
	str	r0, [r3, #8]
	add	r3, r3, #16
	str	r1, [r2]
	str	r3, [r4]
	beq	.L10
.L5:
	mov	r1, r4
	mov	r0, r6
	bl	putnext
	mov	r0, r6
	bl	WR
	ldr	r2, [r7]
	ldr	r3, .L11+44
	cmp	r2, r5
	ldr	r1, [r3]
	ldreq	r3, .L11+48
	ldrne	r3, .L11+52
	ldr	r0, [r0]
	ldr	r2, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	putctl1
.L2:
	ldr	r0, [r7]
	ldr	r1, .L11+56
	bl	pprintf
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, .L11+60
	bl	panic
	b	.L5
.L12:
	.align	2
.L11:
	.word	DD_OPEN
	.word	.LC0
	.word	BPRI_MED
	.word	SO_READOPT
	.word	SO_HIWAT
	.word	SO_LOWAT
	.word	M_PARSE
	.word	SO_ISNTTY
	.word	RMSGD
	.word	RNORM
	.word	M_SETOPTS
	.word	M_CTL
	.word	MC_SERVICEIMM
	.word	MC_SERVICEDEF
	.word	.LC2
	.word	.LC1
	.size	setup_stream, .-setup_stream
	.comm	SO_READOPT,4,4
	.comm	SO_LOWAT,4,4
	.comm	SO_ISNTTY,4,4
	.comm	SO_HIWAT,4,4
	.comm	RNORM,4,4
	.comm	RMSGD,4,4
	.comm	M_SETOPTS,4,4
	.comm	M_PARSE,4,4
	.comm	M_CTL,4,4
	.comm	MC_SERVICEIMM,4,4
	.comm	MC_SERVICEDEF,4,4
	.comm	DD_OPEN,4,4
	.comm	BPRI_MED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
