	.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	%r14
	pushq	%rbx
	subq	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %eax
	movl	%eax, -1060(%rbp)
	movq	_NAME@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_strcpy
	leaq	-1064(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_bind
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	leaq	-1056(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	testq	%rax, %rax
	js	LBB0_7
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	leaq	-1056(%rbp), %rsi
	callq	_printf
	movl	%ebx, %edi
	callq	_close
	movq	(%r14), %rdi
	callq	_unlink
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.3:
	xorl	%eax, %eax
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	callq	_main.cold.1
	jmp	LBB0_2
LBB0_5:
	callq	_main.cold.2
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.2
_main.cold.2:                           ## @main.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening datagram socket"

	.comm	_NAME,8,3                       ## @NAME
L_.str.1:                               ## @.str.1
	.asciz	"binding name to datagram socket"

L_.str.2:                               ## @.str.2
	.asciz	"socket -->%s\033n"

L_.str.3:                               ## @.str.3
	.asciz	"receiving datagram packet"

L_.str.4:                               ## @.str.4
	.asciz	"-->%s\033n"

.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:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x20, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [sp, #4]
Lloh8:
	adrp	x20, _NAME@GOTPAGE
Lloh9:
	ldr	x20, [x20, _NAME@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_strcpy
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_bind
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x1, [x20]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1024
	bl	_read
	tbnz	x0, #63, LBB0_5
LBB0_3:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #8
	bl	_printf
	mov	x0, x19
	bl	_close
	ldr	x0, [x20]
	bl	_unlink
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_3
LBB0_6:
	bl	_main.cold.1
LBB0_7:
	bl	_main.cold.2
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.2
_main.cold.2:                           ; @main.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening datagram socket"

	.comm	_NAME,8,3                       ; @NAME
l_.str.1:                               ; @.str.1
	.asciz	"binding name to datagram socket"

l_.str.2:                               ; @.str.2
	.asciz	"socket -->%s\033n"

l_.str.3:                               ; @.str.3
	.asciz	"receiving datagram packet"

l_.str.4:                               ; @.str.4
	.asciz	"-->%s\033n"

.subsections_via_symbols
