	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inet_read_msg
_inet_read_msg:                         ## @inet_read_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -24(%rbp)
	movl	24(%rdi), %ecx
	movl	%ecx, -28(%rbp)
	movl	20(%rdi), %ecx
	movl	%ecx, -32(%rbp)
	movl	16(%rdi), %ecx
	movl	%ecx, 36(%rsi)
	movl	12(%rdi), %ecx
	movl	%ecx, 32(%rsi)
	leaq	-32(%rbp), %rcx
	movq	%rcx, 24(%rsi)
	movl	$1, (%rsi)
	movq	%rdx, 8(%rsi)
	movq	_RECV_CBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, 20(%rsi)
	movl	$0, 16(%rsi)
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_recvmsg
	movl	%eax, %ecx
	leal	1(%rcx), %edx
	movl	$-1, %eax
	cmpl	$2, %edx
	jb	LBB0_4
## %bb.1:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_snmpd_stats@GOTPCREL(%rip), %rcx
	incl	4(%rcx)
	incl	(%rcx)
	jmp	LBB0_4
LBB0_3:
	movslq	%ecx, %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RECV_CBUF_SIZE,4,2             ## @RECV_CBUF_SIZE
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_snmpd_stats,8,2                ## @snmpd_stats
	.no_dead_strip	_inet_read_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inet_read_msg
_inet_read_msg:                         ; @inet_read_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	ldur	d0, [x0, #20]
	str	d0, [sp, #8]
	ldur	d0, [x0, #12]
	str	d0, [x1, #32]
	add	x9, sp, #8
	str	x9, [x1, #24]
	mov	w9, #1
	str	w9, [x1]
	str	x2, [x1, #8]
Lloh0:
	adrp	x9, _RECV_CBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RECV_CBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	stp	wzr, w2, [x1, #16]
	mov	x0, x8
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #0
	bl	_recvmsg
	add	w9, w0, #1
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldr	w9, [x20, #16]
Lloh3:
	adrp	x10, _MSG_TRUNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MSG_TRUNC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _snmpd_stats@GOTPAGE
Lloh7:
	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_5
LBB0_4:
	mov	x8, x0
	mov	w0, #0
	sxtw	x8, w8
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RECV_CBUF_SIZE,4,2             ; @RECV_CBUF_SIZE
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_snmpd_stats,8,2                ; @snmpd_stats
	.no_dead_strip	_inet_read_msg
.subsections_via_symbols
