	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function global_close_pipe
_global_close_pipe:                     ## @global_close_pipe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$8, %esi
	callq	_eloop_unregister_event
	movq	40(%rbx), %rdi
	callq	_CloseHandle
LBB0_2:
	movq	(%rbx), %rdi
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.3:
	callq	_CloseHandle
LBB0_4:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdx
	jmp	LBB0_7
LBB0_6:
	movq	32(%rbx), %rdx
LBB0_7:
	movq	%rcx, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rax, (%rcx)
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_os_free
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL: close pipe %p"

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.no_dead_strip	_global_close_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function global_close_pipe
_global_close_pipe:                     ; @global_close_pipe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #8
	bl	_eloop_unregister_event
	ldr	x0, [x19, #40]
	bl	_CloseHandle
LBB0_2:
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	bl	_CloseHandle
LBB0_4:
	ldp	x8, x9, [x19, #16]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x10, x8
	str	x9, [x10]
	cbz	x9, LBB0_7
LBB0_6:
	str	x8, [x9]
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_os_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_os_free
LBB0_8:
	ldr	x10, [x19, #32]
	str	x9, [x10]
	cbnz	x9, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL: close pipe %p"

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.no_dead_strip	_global_close_pipe
.subsections_via_symbols
