	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PF_INET6@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movl	%ebx, %edi
	callq	_close
	movl	(%r15), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	$16, -40(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_in6addr_loopback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	$1024, %edi                     ## imm = 0x400
	callq	_htons
	movl	%eax, -36(%rbp)
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_6:
	movl	%ebx, %edi
	callq	_close
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_8:
	movl	%ebx, %edi
	callq	_close
	movl	(%r15), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_10:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(PF_INET6, SOCK_DGRAM, 0)"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_in6addr_loopback,4,2           ## @in6addr_loopback
L_.str.1:                               ## @.str.1
	.asciz	"connect(SOCK_DGRAM, ::1)"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.2:                               ## @.str.2
	.asciz	"socket(PF_INET6, SOCK_STREAM, 0)"

	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
L_.str.3:                               ## @.str.3
	.asciz	"socket(PF_INET6, SOCK_RAW, 0)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
Lloh0:
	adrp	x20, _PF_INET6@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PF_INET6@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	mov	x0, x19
	bl	_close
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	mov	w21, #16
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh8:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh11:
	adrp	x8, _in6addr_loopback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _in6addr_loopback@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w21, [sp]
	str	w8, [sp, #8]
	mov	w0, #1024
	bl	_htons
	str	w0, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_connect
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_6:
	mov	x0, x19
	bl	_close
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_8:
	mov	x0, x19
	bl	_close
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_10:
	mov	x0, x19
	bl	_close
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(PF_INET6, SOCK_DGRAM, 0)"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_in6addr_loopback,4,2           ; @in6addr_loopback
l_.str.1:                               ; @.str.1
	.asciz	"connect(SOCK_DGRAM, ::1)"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.2:                               ; @.str.2
	.asciz	"socket(PF_INET6, SOCK_STREAM, 0)"

	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
l_.str.3:                               ; @.str.3
	.asciz	"socket(PF_INET6, SOCK_RAW, 0)"

.subsections_via_symbols
