	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_recv
_udp_recv:                              ## @udp_recv
	.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	$4056, %rsp                     ## imm = 0xFD8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMGROUP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SOCKCREDSIZE
	movl	%eax, %edi
	callq	_CMSG_SPACE
	movl	%eax, %r14d
	movl	$4, %edi
	callq	_CMSG_SPACE
	movl	%eax, %ebx
	movq	%rsp, %r15
	addl	%r14d, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, 24(%r13)
	jne	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	callq	_buf_alloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	callq	_buf_size
	movl	%eax, 20(%r13)
LBB0_4:
	movl	36(%r13), %eax
	movl	%eax, -4012(%rbp)
	movl	32(%r13), %eax
	movl	%eax, -4016(%rbp)
	leaq	-4064(%rbp), %rax
	movq	%rax, -4024(%rbp)
	movl	$1, -4048(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r14, -4040(%rbp)
	movl	%ebx, -4032(%rbp)
	movl	$0, -4028(%rbp)
	movq	24(%r13), %rax
	movq	%rax, -4056(%rbp)
	movl	20(%r13), %eax
	movl	%eax, -4064(%rbp)
	movl	16(%r13), %edi
	leaq	-4048(%rbp), %rsi
	xorl	%edx, %edx
	callq	_recvmsg
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	$-1, %edx
	cmpl	$2, %ecx
	jb	LBB0_20
## %bb.5:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -4028(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_snmpd_stats@GOTPCREL(%rip), %rax
	incl	4(%rax)
	incl	(%rax)
	jmp	LBB0_20
LBB0_7:
	movq	%r15, -4080(%rbp)               ## 8-byte Spill
	cltq
	movq	%rax, (%r13)
	leaq	-4048(%rbp), %rdi
	callq	_CMSG_FIRSTHDR
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	%r12, -4088(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -4072(%rbp)               ## 8-byte Spill
	movq	_IPPROTO_IP@GOTPCREL(%rip), %r12
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r15
	leaq	-4048(%rbp), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CMSG_NXTHDR
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rcx
	movq	_IP_RECVDSTADDR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movq	-4088(%rbp), %rdi               ## 8-byte Reload
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	(%r15), %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movq	_SCM_CREDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movq	%rax, -4072(%rbp)               ## 8-byte Spill
	jmp	LBB0_16
LBB0_2:
	movl	16(%r13), %edi
	leaq	-4048(%rbp), %rsi
	movl	$4000, %edx                     ## imm = 0xFA0
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_recvfrom
	movl	$-1, %edx
	jmp	LBB0_20
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -4072(%rbp)               ## 8-byte Spill
LBB0_17:
	cmpq	$0, 8(%r13)
	je	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	movq	-4072(%rbp), %rsi               ## 8-byte Reload
	callq	_check_priv_dgram
LBB0_19:
	movq	-4080(%rbp), %r15               ## 8-byte Reload
	xorl	%edx, %edx
LBB0_20:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%edx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMGROUP_MAX,4,2                ## @CMGROUP_MAX
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_snmpd_stats,8,2                ## @snmpd_stats
	.comm	_IPPROTO_IP,8,3                 ## @IPPROTO_IP
	.comm	_IP_RECVDSTADDR,8,3             ## @IP_RECVDSTADDR
	.comm	_SOL_SOCKET,8,3                 ## @SOL_SOCKET
	.comm	_SCM_CREDS,8,3                  ## @SCM_CREDS
	.no_dead_strip	_udp_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_recv
_udp_recv:                              ; @udp_recv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #4032
	mov	x19, sp
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _CMGROUP_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMGROUP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SOCKCREDSIZE
	bl	_CMSG_SPACE
	mov	x22, x0
	mov	w0, #4
	bl	_CMSG_SPACE
	mov	x24, sp
	add	w22, w0, w22
	add	x8, x22, #15
	and	x8, x8, #0x1fffffff0
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
	bl	_buf_alloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_16
; %bb.2:
	mov	w0, #0
	bl	_buf_size
	str	w0, [x20, #20]
LBB0_3:
	ldr	d0, [x20, #32]
	str	d0, [x19, #48]
	add	x8, x19, #0
	str	x8, [x19, #40]
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	str	x23, [x19, #24]
	stp	w22, wzr, [x19, #32]
	ldr	x8, [x20, #24]
	str	x8, [x19, #8]
	ldp	w0, w8, [x20, #16]
	str	w8, [x19]
	add	x1, x19, #16
	mov	w2, #0
	bl	_recvmsg
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w0, #1
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_21
LBB0_5:
	ldr	w8, [x19, #36]
Lloh8:
	adrp	x9, _MSG_TRUNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_TRUNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _snmpd_stats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _snmpd_stats@GOTPAGEOFF]
	ldr	d0, [x8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x8]
	mov	w0, #-1
	b	LBB0_21
LBB0_7:
	sxtw	x8, w0
	str	x8, [x20]
	add	x0, x19, #16
	bl	_CMSG_FIRSTHDR
	cbz	x0, LBB0_17
; %bb.8:
	mov	x23, x0
	mov	x22, #0
Lloh13:
	adrp	x25, _IPPROTO_IP@GOTPAGE
Lloh14:
	ldr	x25, [x25, _IPPROTO_IP@GOTPAGEOFF]
Lloh15:
	adrp	x26, _IP_RECVDSTADDR@GOTPAGE
Lloh16:
	ldr	x26, [x26, _IP_RECVDSTADDR@GOTPAGEOFF]
Lloh17:
	adrp	x27, _SOL_SOCKET@GOTPAGE
Lloh18:
	ldr	x27, [x27, _SOL_SOCKET@GOTPAGEOFF]
Lloh19:
	adrp	x28, _SCM_CREDS@GOTPAGE
Lloh20:
	ldr	x28, [x28, _SCM_CREDS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, x19, #16
	mov	x1, x23
	bl	_CMSG_NXTHDR
	mov	x23, x0
	cbz	x0, LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x23, #8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_CMSG_DATA
	mov	x1, x0
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x23]
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_CMSG_DATA
	mov	x22, x0
	b	LBB0_9
LBB0_16:
	ldr	w0, [x20, #16]
	add	x1, x19, #16
	mov	w2, #4000
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_recvfrom
	mov	w0, #-1
	b	LBB0_21
LBB0_17:
	mov	x22, #0
LBB0_18:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x22
	bl	_check_priv_dgram
LBB0_20:
	mov	w0, #0
LBB0_21:
	mov	sp, x24
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CMGROUP_MAX,4,2                ; @CMGROUP_MAX
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_snmpd_stats,8,2                ; @snmpd_stats
	.comm	_IPPROTO_IP,8,3                 ; @IPPROTO_IP
	.comm	_IP_RECVDSTADDR,8,3             ; @IP_RECVDSTADDR
	.comm	_SOL_SOCKET,8,3                 ; @SOL_SOCKET
	.comm	_SCM_CREDS,8,3                  ; @SCM_CREDS
	.no_dead_strip	_udp_recv
.subsections_via_symbols
