	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_recvbuf_small
_add_recvbuf_small:                     ## @add_recvbuf_small
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	4(%rdi), %edi
	movq	_MAX_PACKET_LEN@GOTPCREL(%rip), %r12
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	_netdev_alloc_skb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_skb_reserve
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%r15, %rdi
	callq	_skb_vnet_hdr
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_sg_set_buf
	leaq	-44(%rbp), %rsi
	movl	(%r15), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_skb_to_sgvec
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	movq	%r15, %r8
	callq	_virtqueue_add_buf
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PACKET_LEN,8,3             ## @MAX_PACKET_LEN
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_recvbuf_small
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_recvbuf_small
_add_recvbuf_small:                     ; @add_recvbuf_small
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x21, _MAX_PACKET_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PACKET_LEN@GOTPAGEOFF]
	ldr	w0, [x0, #4]
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _NET_IP_ALIGN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_netdev_alloc_skb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_skb_reserve
	ldr	x1, [x21]
	mov	x0, x19
	bl	_skb_put
	mov	x0, x19
	bl	_skb_vnet_hdr
	mov	x1, x0
	mov	x21, sp
	mov	x0, sp
	mov	w2, #4
	bl	_sg_set_buf
	orr	x1, x21, #0x4
	ldr	w3, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_skb_to_sgvec
	ldr	w0, [x20]
	mov	x1, sp
	mov	w2, #0
	mov	w3, #2
	mov	x4, x19
	bl	_virtqueue_add_buf
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_4:
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PACKET_LEN,8,3             ; @MAX_PACKET_LEN
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_recvbuf_small
.subsections_via_symbols
