	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_reader                     ## -- Begin function udp_reader
	.p2align	4, 0x90
_udp_reader:                            ## @udp_reader
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_U_ERRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rdi), %ebx
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	setne	%r13b
	xorl	%r14d, %r14d
	movl	$2, %edi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	(%r12), %eax
	movq	_U_NORD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	$0, %r15d
	testl	%ebx, %ebx
	je	LBB0_14
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_udp_try_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %r15d
	testb	$1, %r13b
	movl	$0, %ecx
	cmovel	%ecx, %eax
	addl	%eax, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	testb	$1, %r13b
	jne	LBB0_12
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_U_ERRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	testl	%ebx, %ebx
	setne	%r13b
	movq	_U_NORD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_3
	jmp	LBB0_14
LBB0_10:
	movl	(%r12), %eax
	movq	_U_NORD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_14:
	movq	_U_ERRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r12)
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_vkprintf
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ERRQ,4,2                     ## @U_ERRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in udp_reader(%d,%d)\n"

	.comm	_U_NORD,4,2                     ## @U_NORD
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSYS,8,3                     ## @ENOSYS
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"udp_reader(%d): %d packets received, %d error packets\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_reader                     ; -- Begin function udp_reader
	.p2align	2
_udp_reader:                            ; @udp_reader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _U_ERRQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _U_ERRQ@GOTPAGEOFF]
	ldr	w8, [x22]
	ldp	w9, w2, [x0]
	ands	w21, w8, w9
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	cset	w28, ne
	mov	w0, #2
	mov	x3, x21
	bl	_vkprintf
	ldr	w8, [x19]
Lloh4:
	adrp	x24, _U_NORD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _U_NORD@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	w21, #0, #0, ne
	b.eq	LBB0_12
; %bb.1:
	mov	w20, #0
	mov	w23, #0
Lloh6:
	adrp	x25, _errno@GOTPAGE
Lloh7:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x26, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ENOSYS@GOTPAGEOFF]
Lloh10:
	adrp	x27, _EINTR@GOTPAGE
Lloh11:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w0, w20
	tst	w28, #0x1
	csel	w8, w0, wzr, ne
	add	w23, w8, w23
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	and	w9, w9, w8
	cmp	w21, #0
	cset	w28, ne
	cmp	w9, #0
	ccmp	w21, #0, #0, ne
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_udp_try_read
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w28, #0, LBB0_10
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w28, #0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x22]
	b	LBB0_3
LBB0_12:
	mov	w23, #0
	mov	w20, #0
	b	LBB0_14
LBB0_13:
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	ldr	w9, [x22]
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w2, [x19, #4]
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x3, x20
	bl	_vkprintf
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ERRQ,4,2                     ; @U_ERRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in udp_reader(%d,%d)\n"

	.comm	_U_NORD,4,2                     ; @U_NORD
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSYS,8,3                     ; @ENOSYS
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"udp_reader(%d): %d packets received, %d error packets\n"

.subsections_via_symbols
