	.file	"extr_buf.c_open_sbuf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/tmp/ed.XXXXXX"
.LC1:
	.string	"w+"
.LC2:
	.string	"cannot open temp file"
	.text
	.p2align 4
	.globl	open_sbuf
	.type	open_sbuf, @function
open_sbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, 63
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR newline_added[rip], 0
	mov	QWORD PTR isbinary[rip], 0
	call	umask@PLT
	mov	edi, DWORD PTR sfn[rip]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	strcpy@PLT
	mov	edi, DWORD PTR sfn[rip]
	call	mkstemp@PLT
	cmp	eax, -1
	je	.L2
	lea	rsi, .LC1[rip]
	mov	edi, eax
	mov	ebp, eax
	call	fdopen@PLT
	mov	QWORD PTR sfp[rip], rax
	test	rax, rax
	je	.L12
	mov	edi, r12d
	call	umask@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, ebp
	call	close@PLT
.L2:
	mov	edi, DWORD PTR sfn[rip]
	call	perror@PLT
	lea	rax, .LC2[rip]
	mov	edi, r12d
	mov	QWORD PTR errmsg[rip], rax
	call	umask@PLT
	mov	eax, DWORD PTR ERR[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	open_sbuf, .-open_sbuf
	.comm	sfp,8,8
	.comm	sfn,4,4
	.comm	newline_added,8,8
	.comm	isbinary,8,8
	.comm	errmsg,8,8
	.comm	ERR,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_buf.c_open_sbuf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/tmp/ed.XXXXXX\000"
	.align	2
.LC1:
	.ascii	"w+\000"
	.align	2
.LC2:
	.ascii	"cannot open temp file\000"
	.text
	.align	2
	.global	open_sbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_sbuf, %function
open_sbuf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	ldr	r2, .L13
	ldr	r3, .L13+4
	mov	r0, #63
	str	r4, [r2]
	str	r4, [r3]
	bl	umask
	ldr	r7, .L13+8
	ldr	r1, .L13+12
	mov	r6, r0
	ldr	r0, [r7]
	bl	strcpy
	ldr	r0, [r7]
	bl	mkstemp
	cmn	r0, #1
	beq	.L2
	ldr	r1, .L13+16
	mov	r5, r0
	bl	fdopen
	ldr	r3, .L13+20
	cmp	r0, r4
	str	r0, [r3]
	beq	.L12
	mov	r0, r6
	bl	umask
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r5
	bl	close
.L2:
	ldr	r0, [r7]
	bl	perror
	ldr	r3, .L13+24
	ldr	r2, .L13+28
	mov	r0, r6
	str	r2, [r3]
	bl	umask
	ldr	r3, .L13+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	newline_added
	.word	isbinary
	.word	sfn
	.word	.LC0
	.word	.LC1
	.word	sfp
	.word	errmsg
	.word	.LC2
	.word	ERR
	.size	open_sbuf, .-open_sbuf
	.comm	sfp,4,4
	.comm	sfn,4,4
	.comm	newline_added,4,4
	.comm	isbinary,4,4
	.comm	errmsg,4,4
	.comm	ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
