	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_tests
_run_tests:                             ## @run_tests
	.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
	movl	%edi, %r13d
	movq	_uc_cfg@GOTPCREL(%rip), %rcx
	movl	%edi, (%rcx)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%edi, %r14d
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rdx, %rax
	movq	%rax, 8(%rcx)
	movq	_test_stream_tbl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_test_dgram_tbl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	_TEST_DGRAM_TBL_SIZE@GOTPCREL(%rip), %rcx
	cmoveq	_TEST_STREAM_TBL_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	decl	%ebx
	testl	%esi, %esi
	movl	$1, %r12d
	cmovnel	%esi, %r12d
	cmovnel	%esi, %ebx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_uc_output
	movl	%r12d, %ecx
	cmpl	%ebx, %r12d
	jg	LBB0_8
## %bb.1:
	cmpl	%r13d, %r14d
	cmoveq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	movslq	%ecx, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %r13d
	shlq	$4, %rax
	leaq	(%r15,%rax), %r12
	addq	$8, %r12
	leaq	L_.str.3(%rip), %r14
	xorl	%r15d, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addq	$16, %r12
	cmpl	%ebx, %r13d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_uc_output
	xorl	%eax, %eax
	callq	*-8(%r12)
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-2, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	callq	_uc_logmsgx
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_7:
	testl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_8
## %bb.10:
	movq	_failed_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	cmpl	%ebx, %ecx
	jne	LBB0_11
## %bb.13:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_14
LBB0_8:
	cmpl	%ebx, %ecx
	jne	LBB0_9
## %bb.12:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uc_output
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$1, %r15d
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.6(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_uc_output
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_uc_cfg,16,3                    ## @uc_cfg
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SOCK_STREAM"

	.comm	_test_stream_tbl,8,3            ## @test_stream_tbl
	.comm	_TEST_STREAM_TBL_SIZE,4,2       ## @TEST_STREAM_TBL_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"SOCK_DGRAM"

	.comm	_test_dgram_tbl,8,3             ## @test_dgram_tbl
	.comm	_TEST_DGRAM_TBL_SIZE,4,2        ## @TEST_DGRAM_TBL_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Running tests for %s sockets:\n"

L_.str.3:                               ## @.str.3
	.asciz	"  %u: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"some system error or timeout occurred"

	.comm	_failed_flag,4,2                ## @failed_flag
L_.str.5:                               ## @.str.5
	.asciz	"-- all tests passed!\n"

L_.str.6:                               ## @.str.6
	.asciz	"-- %u test%s failed!\n"

L_.str.7:                               ## @.str.7
	.space	1

L_.str.8:                               ## @.str.8
	.asciz	"s"

L_.str.9:                               ## @.str.9
	.asciz	"-- test passed!\n"

L_.str.10:                              ## @.str.10
	.asciz	"-- test failed!\n"

	.no_dead_strip	_run_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_tests
_run_tests:                             ; @run_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _uc_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uc_cfg@GOTPAGEOFF]
	str	w0, [x8]
Lloh2:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x9]
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str@PAGE
Lloh8:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w23, w0
	csel	x9, x10, x9, eq
	str	x9, [x8, #8]
Lloh9:
	adrp	x8, _test_stream_tbl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _test_stream_tbl@GOTPAGEOFF]
Lloh11:
	adrp	x10, _test_dgram_tbl@GOTPAGE
Lloh12:
	ldr	x10, [x10, _test_dgram_tbl@GOTPAGEOFF]
Lloh13:
	ldr	x24, [x8]
Lloh14:
	ldr	x25, [x10]
Lloh15:
	adrp	x8, _TEST_STREAM_TBL_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TEST_STREAM_TBL_SIZE@GOTPAGEOFF]
Lloh17:
	adrp	x10, _TEST_DGRAM_TBL_SIZE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TEST_DGRAM_TBL_SIZE@GOTPAGEOFF]
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w1, #0
	csel	w20, w8, w1, eq
	csinc	w21, w1, wzr, ne
	str	x9, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uc_output
	cmp	w21, w20
	b.gt	LBB0_10
; %bb.1:
	mov	w22, #0
	cmp	w23, w19
	csel	x8, x24, x25, eq
	add	w23, w20, #1
	add	x8, x8, w21, sxtw #4
	add	x24, x8, #8
Lloh21:
	adrp	x19, l_.str.3@PAGE
Lloh22:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x25, x21
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	add	x24, x24, #16
	cmp	w23, w25
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	stp	x25, x8, [sp]
	mov	x0, x19
	bl	_uc_output
	ldur	x8, [x24, #-8]
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w0, #2
	b.ne	LBB0_3
; %bb.6:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_uc_logmsgx
	mov	w0, #-1
	b	LBB0_15
LBB0_7:
	cbz	w22, LBB0_10
; %bb.8:
Lloh25:
	adrp	x8, _failed_flag@GOTPAGE
Lloh26:
	ldr	x8, [x8, _failed_flag@GOTPAGEOFF]
	mov	w9, #1
Lloh27:
	str	w9, [x8]
	cmp	w21, w20
	b.ne	LBB0_13
; %bb.9:
Lloh28:
	adrp	x0, l_.str.10@PAGE
Lloh29:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_14
LBB0_10:
	cmp	w21, w20
	b.ne	LBB0_12
; %bb.11:
Lloh30:
	adrp	x0, l_.str.9@PAGE
Lloh31:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh34:
	adrp	x8, l_.str.8@PAGE
Lloh35:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh36:
	adrp	x9, l_.str.7@PAGE
Lloh37:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	w22, #1
	csel	x8, x9, x8, eq
	stp	x22, x8, [sp]
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_14:
	bl	_uc_output
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_uc_cfg,16,3                    ; @uc_cfg
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SOCK_STREAM"

	.comm	_test_stream_tbl,8,3            ; @test_stream_tbl
	.comm	_TEST_STREAM_TBL_SIZE,4,2       ; @TEST_STREAM_TBL_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"SOCK_DGRAM"

	.comm	_test_dgram_tbl,8,3             ; @test_dgram_tbl
	.comm	_TEST_DGRAM_TBL_SIZE,4,2        ; @TEST_DGRAM_TBL_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Running tests for %s sockets:\n"

l_.str.3:                               ; @.str.3
	.asciz	"  %u: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"some system error or timeout occurred"

	.comm	_failed_flag,4,2                ; @failed_flag
l_.str.5:                               ; @.str.5
	.asciz	"-- all tests passed!\n"

l_.str.6:                               ; @.str.6
	.asciz	"-- %u test%s failed!\n"

l_.str.7:                               ; @.str.7
	.space	1

l_.str.8:                               ; @.str.8
	.asciz	"s"

l_.str.9:                               ; @.str.9
	.asciz	"-- test passed!\n"

l_.str.10:                              ; @.str.10
	.asciz	"-- test failed!\n"

	.no_dead_strip	_run_tests
.subsections_via_symbols
