	.file	"extr_swaynag.c_terminal_execute.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w"
.LC1:
	.string	"Failed to create temp script"
.LC2:
	.string	"Created temp script: %s"
.LC3:
	.string	"#!/bin/sh\nrm %s\n%s"
.LC4:
	.string	" -e "
.LC5:
	.string	"%s -e %s"
.LC6:
	.string	"-c"
.LC7:
	.string	"/bin/sh"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC8:
	.string	"Failed to run command, execl() returned."
	.text
	.p2align 4
	.type	terminal_execute, @function
terminal_execute:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	movdqa	xmm0, XMMWORD PTR .LC9[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	eax, 22616
	mov	BYTE PTR 18[rsp], 0
	mov	rdi, r12
	mov	WORD PTR 16[rsp], ax
	movaps	XMMWORD PTR [rsp], xmm0
	call	mkstemp@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	fdopen@PLT
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR SWAY_DEBUG[rip]
	mov	rbp, rax
	xor	eax, eax
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	call	sway_log@PLT
	mov	rcx, r14
	mov	rdx, r12
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	call	fclose@PLT
	mov	esi, DWORD PTR S_IRUSR[rip]
	mov	rdi, r12
	or	esi, DWORD PTR S_IWUSR[rip]
	or	esi, DWORD PTR S_IXUSR[rip]
	call	chmod@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	rdi, .LC4[rip]
	mov	ebp, eax
	call	strlen@PLT
	mov	rdi, r12
	add	ebp, eax
	call	strlen@PLT
	lea	edi, 1[rbp+rax]
	call	malloc@PLT
	mov	rcx, r12
	mov	rdx, r13
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	sprintf@PLT
	lea	rsi, .LC7[rip]
	xor	r8d, r8d
	mov	rcx, rbp
	mov	rdi, rsi
	lea	rdx, .LC6[rip]
	call	execl@PLT
	mov	edi, DWORD PTR SWAY_ERROR[rip]
	lea	rsi, .LC8[rip]
	call	sway_log_errno@PLT
	mov	rdi, rbp
	call	free@PLT
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR SWAY_ERROR[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	sway_log@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	terminal_execute, .-terminal_execute
	.comm	S_IXUSR,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	SWAY_ERROR,4,4
	.comm	SWAY_DEBUG,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC9:
	.quad	7023208791494456367
	.quad	6365935210003000953
	.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_swaynag.c_terminal_execute.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"Failed to create temp script\000"
	.align	2
.LC3:
	.ascii	"Created temp script: %s\000"
	.align	2
.LC4:
	.ascii	"#!/bin/sh\012rm %s\012%s\000"
	.align	2
.LC5:
	.ascii	"%s -e %s\000"
	.align	2
.LC6:
	.ascii	"-c\000"
	.align	2
.LC7:
	.ascii	"/bin/sh\000"
	.align	2
.LC8:
	.ascii	"Failed to run command, execl() returned.\000"
	.align	2
.LC0:
	.ascii	"/tmp/swaynagXXXXXX\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminal_execute, %function
terminal_execute:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	lr, .L9
	sub	sp, sp, #32
	add	ip, sp, #8
	mov	r5, r0
	mov	r6, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r1, [lr]
	ldr	r3, .L9+4
	strh	r1, [ip], #2	@ movhi
	lsr	lr, r1, #16
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	strb	lr, [ip]
	bl	mkstemp
	ldr	r1, .L9+8
	bl	fdopen
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, .L9+12
	ldr	r1, .L9+16
	ldr	r0, [r3]
	add	r2, sp, #8
	bl	sway_log
	mov	r3, r6
	ldr	r1, .L9+20
	add	r2, sp, #8
	mov	r0, r4
	bl	fprintf
	mov	r0, r4
	bl	fclose
	ldr	r3, .L9+24
	ldr	r2, .L9+28
	ldr	r1, .L9+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	add	r0, sp, #8
	bl	chmod
	mov	r0, r5
	bl	strlen
	mov	r4, r0
	add	r0, sp, #8
	bl	strlen
	add	r0, r4, r0
	add	r0, r0, #5
	bl	malloc
	mov	r2, r5
	ldr	r1, .L9+36
	add	r3, sp, #8
	mov	r4, r0
	bl	sprintf
	mov	r2, #0
	ldr	r1, .L9+40
	mov	r3, r4
	mov	r0, r1
	str	r2, [sp]
	ldr	r2, .L9+44
	bl	execl
	ldr	r3, .L9+48
	ldr	r1, .L9+52
	ldr	r0, [r3]
	bl	sway_log_errno
	mov	r0, r4
	bl	free
.L3:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, #0
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+48
	ldr	r1, .L9+56
	ldr	r0, [r3]
	bl	sway_log
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC9
	.word	.LC1
	.word	SWAY_DEBUG
	.word	.LC3
	.word	.LC4
	.word	S_IRUSR
	.word	S_IWUSR
	.word	S_IXUSR
	.word	.LC5
	.word	.LC7
	.word	.LC6
	.word	SWAY_ERROR
	.word	.LC8
	.word	.LC2
	.size	terminal_execute, .-terminal_execute
	.comm	S_IXUSR,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	SWAY_ERROR,4,4
	.comm	SWAY_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
