	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle
_handle:                                ## @handle
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	$4, -28(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r15
	cmpl	%edi, (%r15)
	je	LBB0_3
## %bb.1:
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	callq	_accept
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movl	$-1, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	cmpl	%r14d, (%r15)
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_process_udp
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %edi
	callq	_process_tcp
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept"

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

	.no_dead_strip	_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle
_handle:                                ; @handle
	.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, x1
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #4]
Lloh0:
	adrp	x21, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.eq	LBB0_2
; %bb.1:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_accept
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_2:
	bl	_fork
	cbz	w0, LBB0_5
LBB0_3:
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	ldr	w8, [x21]
	mov	x0, x20
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.6:
	bl	_process_udp
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_close
	b	LBB0_9
LBB0_8:
	bl	_process_tcp
LBB0_9:
	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
LBB0_10:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	bl	_fork
	cbnz	w0, LBB0_3
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept"

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

	.no_dead_strip	_handle
.subsections_via_symbols
