	.file	"extr_ctrl_iface_named_pipe.c_global_close_pipe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CTRL: close pipe %p"
	.text
	.p2align 4
	.type	global_close_pipe, @function
global_close_pipe:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rdi
	mov	rbp, rdi
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	rdi, QWORD PTR 40[rbp]
	test	rdi, rdi
	jne	.L15
.L2:
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rdi, QWORD PTR INVALID_HANDLE_VALUE[rip]
	je	.L3
	call	CloseHandle@PLT
.L3:
	mov	rdx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR 24[rbp]
	test	rdx, rdx
	je	.L4
	mov	QWORD PTR [rdx], rax
.L5:
	test	rax, rax
	je	.L6
	mov	QWORD PTR [rax], rdx
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	call	os_free@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	os_free@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 8
	call	eloop_unregister_event@PLT
	mov	rdi, QWORD PTR 40[rbp]
	call	CloseHandle@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR 32[rbp]
	mov	QWORD PTR [rcx], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	global_close_pipe, .-global_close_pipe
	.comm	MSG_DEBUG,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.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_ctrl_iface_named_pipe.c_global_close_pipe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CTRL: close pipe %p\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	global_close_pipe, %function
global_close_pipe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L16
	mov	r2, r0
	ldr	r1, .L16+4
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r0, [r4, #20]
	cmp	r0, #0
	bne	.L15
.L2:
	ldr	r3, .L16+8
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	bl	CloseHandle
.L3:
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r2, #0
	ldreq	r1, [r4, #16]
	strne	r3, [r2]
	streq	r3, [r1]
	cmp	r3, #0
	ldr	r0, [r4, #4]
	strne	r2, [r3]
	bl	os_free
	mov	r0, r4
	pop	{r4, lr}
	b	os_free
.L15:
	mov	r1, #4
	bl	eloop_unregister_event
	ldr	r0, [r4, #20]
	bl	CloseHandle
	b	.L2
.L17:
	.align	2
.L16:
	.word	MSG_DEBUG
	.word	.LC0
	.word	INVALID_HANDLE_VALUE
	.size	global_close_pipe, .-global_close_pipe
	.comm	MSG_DEBUG,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
