	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_PF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	$666, %edi                      ## imm = 0x29A
	callq	_htons
	movl	%eax, -48(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%rbx), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	-52(%rbp), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	-56(%rbp), %rsi
	movl	%r15d, %edi
	movl	$12, %edx
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	%r15d, %edi
	movl	$5, %esi
	callq	_listen
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hand@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIG_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	leaq	-64(%rbp), %r12
	leaq	L_.str.5(%rip), %r13
	leaq	L_str(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-56(%rbp), %edi
	callq	_inet_ntoa
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	%r15d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_handle_dude
	movq	%r14, %rdi
	callq	_puts
	movl	%ebx, %r15d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$12, -64(%rbp)
	movl	%r15d, %ebx
	movl	%r15d, %edi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	callq	_accept
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket()"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
L_.str.1:                               ## @.str.1
	.asciz	"bind()"

L_.str.2:                               ## @.str.2
	.asciz	"listen()"

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_hand,4,2                       ## @hand
	.comm	_SIG_ERR,8,3                    ## @SIG_ERR
L_.str.3:                               ## @.str.3
	.asciz	"signal()"

L_.str.4:                               ## @.str.4
	.asciz	"accept()"

L_.str.5:                               ## @.str.5
	.asciz	"Got dude %s\n"

L_str:                                  ## @str
	.asciz	"Done"

.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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x19, _PF_INET@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PF_INET@GOTPAGEOFF]
	ldr	w8, [x19]
	str	w8, [sp, #20]
	mov	w0, #666
	bl	_htons
Lloh2:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w0, [sp, #24]
	str	w8, [sp, #16]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w0, [sp, #20]
Lloh10:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	mov	x0, x20
	mov	w1, #5
	bl	_listen
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh22:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _hand@GOTPAGE
Lloh26:
	ldr	x8, [x8, _hand@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_signal
Lloh28:
	adrp	x8, _SIG_ERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIG_ERR@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	mov	w25, #12
Lloh33:
	adrp	x21, l_.str.4@PAGE
Lloh34:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh35:
	adrp	x22, l_.str.5@PAGE
Lloh36:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh37:
	adrp	x23, l_str@PAGE
Lloh38:
	add	x23, x23, l_str@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #16]
	bl	_inet_ntoa
	str	x0, [sp]
	mov	x0, x22
	bl	_printf
	mov	x0, x24
	mov	x1, x19
	bl	_handle_dude
	mov	x0, x23
	bl	_puts
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	w25, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	_accept
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_err
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket()"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
l_.str.1:                               ; @.str.1
	.asciz	"bind()"

l_.str.2:                               ; @.str.2
	.asciz	"listen()"

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_hand,4,2                       ; @hand
	.comm	_SIG_ERR,8,3                    ; @SIG_ERR
l_.str.3:                               ; @.str.3
	.asciz	"signal()"

l_.str.4:                               ; @.str.4
	.asciz	"accept()"

l_.str.5:                               ; @.str.5
	.asciz	"Got dude %s\n"

l_str:                                  ; @str
	.asciz	"Done"

.subsections_via_symbols
