	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test
_test:                                  ## @test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	%ecx, -52(%rbp)
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	%ebx, -80(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	cmpl	$129, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_27
## %bb.3:
	movq	_IPV6_PORTALGO@GOTPCREL(%rip), %rax
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_IP_PORTALGO@GOTPCREL(%rip), %rax
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rax), %r14d
	movl	(%rcx), %r15d
	leaq	-80(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_errx
LBB0_6:
	movq	-48(%rbp), %rax
	movl	20(%rax), %esi
	movl	(%rax), %edi
	movl	16(%rax), %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_8:
	leaq	-52(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_10:
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	-48(%rbp), %rax
	movl	8(%rax), %edx
	movl	%edx, -88(%rbp)
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_12:
	movq	-48(%rbp), %rax
	movl	8(%rax), %r9d
	movl	12(%rax), %r8d
	leaq	_test.hello(%rip), %rsi
	movl	%ebx, %edi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_14:
	movl	%ebx, %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_16:
	movq	-48(%rbp), %rax
	movl	20(%rax), %esi
	movl	(%rax), %edi
	movl	16(%rax), %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_18:
	leaq	-52(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_20:
	movq	-48(%rbp), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movl	%ebx, %edi
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_err
LBB0_22:
	leaq	_test.hello(%rip), %rsi
	movl	%ebx, %edi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.23:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_err
LBB0_24:
	movl	%ebx, %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_26
## %bb.25:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_26:
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_test.hello:                            ## @test.hello
	.asciz	"hello\n"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_PORTALGO,4,2                ## @IP_PORTALGO
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_PORTALGO,4,2              ## @IPV6_PORTALGO
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get address for %s (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"socket"

L_.str.2:                               ## @.str.2
	.asciz	"setsockopt"

L_.str.3:                               ## @.str.3
	.asciz	"bind"

L_.str.4:                               ## @.str.4
	.asciz	"sendto"

L_.str.5:                               ## @.str.5
	.asciz	"close"

L_.str.6:                               ## @.str.6
	.asciz	"connect"

L_.str.7:                               ## @.str.7
	.asciz	"send"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x22, x1
	mov	x21, x0
	stur	w3, [x29, #-52]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w19, [sp, #16]
	str	w8, [sp, #36]
	cmp	w19, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_27
; %bb.2:
Lloh3:
	adrp	x8, _IPV6_PORTALGO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_PORTALGO@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IPPROTO_IPV6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_IPV6@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _IP_PORTALGO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IP_PORTALGO@GOTPAGEOFF]
Lloh9:
	adrp	x9, _IPPROTO_IP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPPROTO_IP@GOTPAGEOFF]
LBB0_4:
	ldr	w19, [x8]
	ldr	w20, [x9]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_getaddrinfo
Lloh11:
	adrp	x23, _EXIT_FAILURE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EXIT_FAILURE@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w22, [x23]
	bl	_gai_strerror
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_errx
LBB0_6:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [x8, #16]
	bl	_socket
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x23]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_8:
	sub	x3, x29, #52
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x23]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_10:
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	x8, [sp, #8]
	ldr	w2, [x8, #8]
	str	w2, [sp, #72]
	ldr	w8, [x8]
	str	w8, [sp, #52]
	add	x1, sp, #48
	mov	x0, x21
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_12:
	ldr	x8, [sp, #8]
	ldp	w5, w4, [x8, #8]
Lloh21:
	adrp	x1, _test.hello@PAGE
Lloh22:
	add	x1, x1, _test.hello@PAGEOFF
	mov	x0, x21
	mov	w2, #6
	mov	w3, #0
	bl	_sendto
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x23]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_14:
	mov	x0, x21
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x23]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_16:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [x8, #16]
	bl	_socket
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
	ldr	w0, [x23]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_18:
	sub	x3, x29, #52
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.19:
	ldr	w0, [x23]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_20:
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8, #8]
	mov	x0, x21
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.21:
	ldr	w0, [x23]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_22:
Lloh33:
	adrp	x1, _test.hello@PAGE
Lloh34:
	add	x1, x1, _test.hello@PAGEOFF
	mov	x0, x21
	mov	w2, #6
	mov	w3, #0
	bl	_send
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.23:
	ldr	w0, [x23]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_err
LBB0_24:
	mov	x0, x21
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_26
; %bb.25:
	ldr	w0, [x23]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_26:
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_test.hello:                            ; @test.hello
	.asciz	"hello\n"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_PORTALGO,4,2                ; @IP_PORTALGO
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_PORTALGO,4,2              ; @IPV6_PORTALGO
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get address for %s (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"socket"

l_.str.2:                               ; @.str.2
	.asciz	"setsockopt"

l_.str.3:                               ; @.str.3
	.asciz	"bind"

l_.str.4:                               ; @.str.4
	.asciz	"sendto"

l_.str.5:                               ; @.str.5
	.asciz	"close"

l_.str.6:                               ; @.str.6
	.asciz	"connect"

l_.str.7:                               ; @.str.7
	.asciz	"send"

	.no_dead_strip	_test
.subsections_via_symbols
