	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_2:
	movq	_PF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	movl	(%rbx), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_5:
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_test_ttl
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_test_loop
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_test_if
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_test_addr
	movl	%ebx, %edi
	callq	_close
	movl	%r15d, %edi
	callq	_close
	movl	%r14d, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_test_udp
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAIL: root privilege required"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
L_.str.1:                               ## @.str.1
	.asciz	"FAIL: socket(PF_INET, SOCK_RAW)"

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

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.3:                               ## @.str.3
	.asciz	"FAIL: socket(PF_INET, SOCK_DGRAM)"

.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	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	bl	_geteuid
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x21, _PF_INET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
	ldr	w0, [x21]
Lloh20:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_test_ttl
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_test_loop
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_test_if
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_test_addr
	mov	x0, x21
	bl	_close
	mov	x0, x20
	bl	_close
	mov	x0, x19
	bl	_close
	bl	_test_udp
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAIL: root privilege required"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
l_.str.1:                               ; @.str.1
	.asciz	"FAIL: socket(PF_INET, SOCK_RAW)"

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

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.3:                               ; @.str.3
	.asciz	"FAIL: socket(PF_INET, SOCK_DGRAM)"

.subsections_via_symbols
