	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server
_server:                                ## @server
	.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
	movq	%rdi, %rbx
	movl	$24, -32(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	$24, (%rbx)
	movq	$0, 8(%rbx)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_4:
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_getsockname
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
LBB0_6:
	movl	$1, -28(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_IP_PKTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
LBB0_8:
	movl	(%rbx), %esi
	movq	_IP_RECVPKTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
L_.str.1:                               ## @.str.1
	.asciz	"bind"

L_.str.2:                               ## @.str.2
	.asciz	"getsockname"

	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_PKTINFO,4,2                 ## @IP_PKTINFO
L_.str.3:                               ## @.str.3
	.asciz	"setsockopt"

	.comm	_IP_RECVPKTINFO,4,2             ## @IP_RECVPKTINFO
	.no_dead_strip	_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server
_server:                                ; @server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	w21, #24
	str	w21, [sp, #8]
Lloh0:
	adrp	x22, _AF_INET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x22]
	str	w8, [x20, #16]
	str	w21, [x20]
	str	xzr, [x20, #8]
Lloh10:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_getsockname
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh17:
	adrp	x20, _IPPROTO_IP@GOTPAGE
Lloh18:
	ldr	x20, [x20, _IPPROTO_IP@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh19:
	adrp	x8, _IP_PKTINFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IP_PKTINFO@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
LBB0_8:
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _IP_RECVPKTINFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IP_RECVPKTINFO@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
l_.str.1:                               ; @.str.1
	.asciz	"bind"

l_.str.2:                               ; @.str.2
	.asciz	"getsockname"

	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_PKTINFO,4,2                 ; @IP_PKTINFO
l_.str.3:                               ; @.str.3
	.asciz	"setsockopt"

	.comm	_IP_RECVPKTINFO,4,2             ; @IP_RECVPKTINFO
	.no_dead_strip	_server
.subsections_via_symbols
