	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reopen_pipefd2
_reopen_pipefd2:                        ## @reopen_pipefd2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	js	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_eloop_unregister_read_sock
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%rbx), %rax
	movl	$-1, (%rax)
	movl	4(%rax), %edi
	callq	_close
	movq	(%rbx), %rdi
	movl	$-1, 4(%rdi)
	callq	_pipe
	movl	(%r14), %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_eloop_test_read_2_wrong@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eloop_register_read_sock       ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movq	$-1, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipefd2 had been closed"

L_.str.1:                               ## @.str.1
	.asciz	"close pipefd2"

L_.str.2:                               ## @.str.2
	.asciz	"pipe: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"re-register pipefd2 with new sockets %d,%d"

	.comm	_eloop_test_read_2_wrong,4,2    ## @eloop_test_read_2_wrong
	.no_dead_strip	_reopen_pipefd2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reopen_pipefd2
_reopen_pipefd2:                        ; @reopen_pipefd2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x20, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x20]
	tbnz	w8, #31, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_eloop_unregister_read_sock
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	mov	w21, #-1
	str	w21, [x8]
	ldr	w0, [x8, #4]
	bl	_close
	ldr	x0, [x19]
	str	w21, [x0, #4]
	bl	_pipe
	ldr	w20, [x20]
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	stp	x9, x8, [sp]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _eloop_test_read_2_wrong@GOTPAGE
Lloh7:
	ldr	x9, [x9, _eloop_test_read_2_wrong@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh8:
	ldr	w1, [x9]
	mov	x2, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_eloop_register_read_sock
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wpa_printf
LBB0_4:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	x8, [x19]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipefd2 had been closed"

l_.str.1:                               ; @.str.1
	.asciz	"close pipefd2"

l_.str.2:                               ; @.str.2
	.asciz	"pipe: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"re-register pipefd2 with new sockets %d,%d"

	.comm	_eloop_test_read_2_wrong,4,2    ; @eloop_test_read_2_wrong
	.no_dead_strip	_reopen_pipefd2
.subsections_via_symbols
