	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	leaq	L_.str(%rip), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movl	$6161, %r14d                    ## imm = 0x1811
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	leaq	L_.str.2(%rip), %r15
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edi
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-97(%rax), %ecx
	cmpl	$20, %ecx
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rcx,4), %rcx
	addq	%r13, %rcx
	jmpq	*%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
LBB0_9:
	leaq	-184(%rbp), %rdx
	leaq	-188(%rbp), %rcx
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_getaddr
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_11:
	leaq	L_.str.4(%rip), %rdx
	leaq	-176(%rbp), %r14
	leaq	-184(%rbp), %r15
	movq	%r14, %rdi
	movl	$128, %esi
	movq	%r15, %rcx
	callq	_sockaddr_snprintf
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	movl	-188(%rbp), %edx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_err
LBB0_13:
	movq	-208(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rbx
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	je	LBB0_15
## %bb.14:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hello"

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

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.2:                               ## @.str.2
	.asciz	"a:m:p:u"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"socket"

L_.str.4:                               ## @.str.4
	.asciz	"%a:%p"

L_.str.5:                               ## @.str.5
	.asciz	"connecting to: %s\n"

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

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

.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, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	adrp	x19, l_.str@PAGE
Lloh6:
	add	x19, x19, l_.str@PAGEOFF
Lloh7:
	ldr	w20, [x8]
	mov	w24, #6161
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh10:
	adrp	x25, l_.str.2@PAGE
Lloh11:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, lJTI0_0@PAGE
Lloh13:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh14:
	adrp	x27, _optarg@GOTPAGE
Lloh15:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
Lloh16:
	adrp	x28, _SOCK_DGRAM@GOTPAGE
Lloh17:
	ldr	x28, [x28, _SOCK_DGRAM@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	bl	_getopt
	sub	w8, w0, #97
	cmp	w8, #20
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x27]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x27]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	bl	_atoi
	mov	x24, x0
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x28]
	b	LBB0_3
LBB0_9:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x23
	mov	x1, x24
	bl	_getaddr
Lloh18:
	adrp	x8, _AF_INET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_11:
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #16
	add	x3, sp, #8
	mov	w1, #128
	bl	_sockaddr_snprintf
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #16
	bl	_printf
	ldr	w2, [sp, #4]
	add	x1, sp, #8
	mov	x0, x20
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_13:
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #1
	sxtw	x21, w8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_write
	cmp	x0, x21
	b.eq	LBB0_15
; %bb.14:
Lloh35:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_err
LBB0_15:
	ldur	x8, [x29, #-96]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #0
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hello"

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

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.2:                               ; @.str.2
	.asciz	"a:m:p:u"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"socket"

l_.str.4:                               ; @.str.4
	.asciz	"%a:%p"

l_.str.5:                               ; @.str.5
	.asciz	"connecting to: %s\n"

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

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

.subsections_via_symbols
