	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_socket_path@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_mkstemp
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_4:
	leaq	-72(%rbp), %r15
	xorl	%esi, %esi
	movl	$8, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memset
	movq	_AF_LOCAL@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -68(%rbp)
	movl	(%r13), %edi
	callq	_unlink
	movl	-72(%rbp), %edi
	movl	(%r13), %esi
	callq	_strcpy
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_6:
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movabsq	$4702111234474983745, %rax      ## imm = 0x4141414141414141
	movq	%rax, -64(%rbp)
	movw	$65, -56(%rbp)
	movl	%r14d, %edi
	callq	_close
	movl	(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_10:
	leaq	-64(%rbp), %rsi
	movl	$10, %edx
	xorl	%ecx, %ecx
	leaq	-72(%rbp), %r8
	movl	$8, %r9d
	movl	%ebx, %edi
	callq	_sendto
	cmpl	$10, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_12:
	movl	%ebx, %edi
	callq	_close
	xorl	%edi, %edi
	callq	__exit
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_14:
	movl	$5, %edi
	callq	_sleep
	xorl	%ecx, %ecx
	movl	%ecx, %r8d
	movq	$-1, %rsi
	movl	$1, %edx
	movl	%r14d, %edi
	movq	%r8, %r9
	callq	_recvfrom
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_16:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_handle_sigalrm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_myjmpbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setjmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movl	$5, %edi
	callq	_alarm
	xorl	%ecx, %ecx
	movl	%ecx, %r8d
	movq	$-1, %rsi
	movl	$1, %edx
	movl	%r14d, %edi
	movq	%r8, %r9
	callq	_recvfrom
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_socket_path,4,2                ## @socket_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mkstemp"

	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"socket"

	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
L_.str.2:                               ## @.str.2
	.asciz	"bind"

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

L___const.main.buf:                     ## @__const.main.buf
	.asciz	"AAAAAAAAA"

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

L_.str.5:                               ## @.str.5
	.asciz	"recvfrom succeeded when failure expected"

	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_handle_sigalrm,4,2             ## @handle_sigalrm
	.comm	_myjmpbuf,4,2                   ## @myjmpbuf
.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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x23, _socket_path@GOTPAGE
Lloh4:
	ldr	x23, [x23, _socket_path@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_mkstemp
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh7:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x22, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_4:
	mov	w1, #0
	mov	x20, sp
	mov	w21, #8
	mov	x0, x20
	mov	x2, x21
	bl	_memset
Lloh14:
	adrp	x24, _AF_LOCAL@GOTPAGE
Lloh15:
	ldr	x24, [x24, _AF_LOCAL@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #4]
	ldr	w0, [x23]
	bl	_unlink
	ldr	w0, [sp]
	ldr	w1, [x23]
	bl	_strcpy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_6:
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.7:
	cbnz	w0, LBB0_14
; %bb.8:
	mov	w8, #65
	strh	w8, [sp, #16]
Lloh18:
	adrp	x8, l___const.main.buf@PAGE
Lloh19:
	add	x8, x8, l___const.main.buf@PAGEOFF
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, x19
	bl	_close
	ldr	w0, [x24]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_10:
	mov	w3, #0
	add	x1, sp, #8
	mov	w2, #10
	mov	x4, sp
	mov	w5, #8
	mov	x0, x19
	bl	_sendto
	cmp	w0, #10
	b.eq	LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_12:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	bl	__exit
LBB0_13:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_14:
	mov	w0, #5
	bl	_sleep
	mov	w3, #0
	mov	x4, #0
	mov	x1, #-1
	mov	w2, #1
	mov	x0, x19
	mov	x5, #0
	bl	_recvfrom
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.15:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_16:
Lloh29:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _handle_sigalrm@GOTPAGE
Lloh33:
	ldr	x8, [x8, _handle_sigalrm@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_signal
Lloh35:
	adrp	x8, _myjmpbuf@GOTPAGE
Lloh36:
	ldr	x8, [x8, _myjmpbuf@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_setjmp
	cbnz	x0, LBB0_18
; %bb.17:
	mov	w0, #5
	bl	_alarm
	mov	w3, #0
	mov	x4, #0
	mov	x1, #-1
	mov	w2, #1
	mov	x0, x19
	mov	x5, #0
	bl	_recvfrom
LBB0_18:
	ldr	x8, [sp, #24]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAddLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_socket_path,4,2                ; @socket_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mkstemp"

	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"socket"

	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
l_.str.2:                               ; @.str.2
	.asciz	"bind"

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

l___const.main.buf:                     ; @__const.main.buf
	.asciz	"AAAAAAAAA"

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

l_.str.5:                               ; @.str.5
	.asciz	"recvfrom succeeded when failure expected"

	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_handle_sigalrm,4,2             ; @handle_sigalrm
	.comm	_myjmpbuf,4,2                   ; @myjmpbuf
.subsections_via_symbols
