	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_test_sockets            ## -- Begin function create_test_sockets
	.p2align	4, 0x90
_create_test_sockets:                   ## @create_test_sockets
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$8, -52(%rbp)
	movl	$-1, (%rdi)
	movl	$-1, (%rsi)
	leaq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_inet_addr
	movl	%eax, -48(%rbp)
	movl	(%r13), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_22
## %bb.1:
	movl	%eax, %r12d
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_16
## %bb.2:
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%r12d, %edi
	callq	_getsockname
	testq	%rax, %rax
	js	LBB0_16
## %bb.3:
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_16
## %bb.4:
	movl	(%r13), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%r12d, %edi
	callq	_set_nb
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.7:
	movb	$1, %r13b
	leaq	-48(%rbp), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	cmpl	$-1, %eax
	jne	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	$1, %r13b
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %edi
	jmp	LBB0_17
LBB0_14:
	movl	(%r15), %edi
	callq	_set_nb
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.15:
	movl	(%r14), %edi
	callq	_set_nb
	movl	$1, %ebx
	cmpl	$-1, %eax
	jne	LBB0_21
LBB0_16:
	movl	(%r15), %edi
LBB0_17:
	cmpl	$-1, %edi
	je	LBB0_19
## %bb.18:
	callq	_close
LBB0_19:
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	cmpl	$-1, %edi
	je	LBB0_21
## %bb.20:
	callq	_close
LBB0_21:
	movl	%r12d, %edi
	callq	_close
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_test_sockets            ; -- Begin function create_test_sockets
	.p2align	2
_create_test_sockets:                   ; @create_test_sockets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	mov	w8, #8
	str	w8, [sp, #4]
	mov	w8, #-1
	str	w8, [x0]
	str	w8, [x1]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x22, _AF_INET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_inet_addr
	str	w0, [sp, #8]
	ldr	w0, [x22]
Lloh4:
	adrp	x23, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #8
	bl	_bind
	tbnz	x0, #63, LBB0_17
; %bb.2:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_getsockname
	tbnz	x0, #63, LBB0_17
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_listen
	tbnz	x0, #63, LBB0_17
; %bb.4:
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_socket
	str	w0, [x21]
	tbnz	w0, #31, LBB0_18
; %bb.5:
	mov	x0, x20
	bl	_set_nb
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.6:
	mov	w24, #1
Lloh6:
	adrp	x22, _errno@GOTPAGE
Lloh7:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #0
	cmn	w0, #1
	b.ne	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_accept
	str	w0, [x19]
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	tbz	w24, #0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #8
	bl	_connect
	tbz	x0, #63, LBB0_7
	b	LBB0_17
LBB0_13:
	mov	w19, #0
	b	LBB0_24
LBB0_14:
	ldr	w0, [x21]
	bl	_set_nb
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.15:
	ldr	w0, [x19]
	bl	_set_nb
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.16:
	mov	w19, #1
	b	LBB0_23
LBB0_17:
	ldr	w0, [x21]
LBB0_18:
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.19:
	bl	_close
LBB0_20:
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.21:
	bl	_close
LBB0_22:
	mov	w19, #0
LBB0_23:
	mov	x0, x20
	bl	_close
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
.subsections_via_symbols
