	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_alloc                      ## -- Begin function buf_alloc
	.p2align	4, 0x90
_buf_alloc:                             ## @buf_alloc
	.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	%edi, %r14d
	movq	_snmpd@GOTPCREL(%rip), %rax
	leaq	4(%rax), %rcx
	testl	%edi, %edi
	cmoveq	%rax, %rcx
	movl	(%rcx), %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	setne	%r15b
	movq	_LOG_CRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movq	_snmpd_stats@GOTPCREL(%rip), %rax
	incl	(%rax,%r15,4)
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snmpd,8,2                      ## @snmpd
	.comm	_LOG_CRIT,4,2                   ## @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate buffer"

	.comm	_snmpd_stats,8,2                ## @snmpd_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_alloc                      ; -- Begin function buf_alloc
	.p2align	2
_buf_alloc:                             ; @buf_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _snmpd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snmpd@GOTPAGEOFF]
	add	x9, x8, #4
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	w20, #0
	cset	w20, ne
Lloh2:
	adrp	x8, _LOG_CRIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_CRIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
Lloh7:
	adrp	x8, _snmpd_stats@GOTPAGE
Lloh8:
	ldr	x8, [x8, _snmpd_stats@GOTPAGEOFF]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_snmpd,8,2                      ; @snmpd
	.comm	_LOG_CRIT,4,2                   ; @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate buffer"

	.comm	_snmpd_stats,8,2                ; @snmpd_stats
.subsections_via_symbols
