	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	8(%rsi), %r14
	callq	_virtnet_get_headroom
	movl	%eax, %r12d
	movq	_VIRTNET_RX_PAD@GOTPCREL(%rip), %rcx
	movq	_GOOD_PACKET_LEN@GOTPCREL(%rip), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	addl	%r12d, %edi
	addl	(%rcx), %edi
	addl	(%rax), %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %r15d
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_skb_page_frag_refill
	xorl	%edi, %edi
	testl	%eax, %eax
	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:
	movl	%r12d, %r15d
	movl	12(%r13), %edi
	callq	_page_address
	movslq	8(%r13), %r12
	addq	%rax, %r12
	movl	12(%r13), %edi
	callq	_get_page
	addl	%ebx, 8(%r13)
	movl	(%r13), %edi
	movq	_VIRTNET_RX_PAD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%r12, %rsi
	addq	%r15, %rsi
	movq	_GOOD_PACKET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %edx
	callq	_sg_init_one
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	$1, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_virtqueue_add_inbuf_ctx
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_virt_to_head_page
	movl	%eax, %edi
	callq	_put_page
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTNET_RX_PAD,4,2             ## @VIRTNET_RX_PAD
	.comm	_GOOD_PACKET_LEN,4,2            ## @GOOD_PACKET_LEN
	.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x24, x1, #8
	bl	_virtnet_get_headroom
	mov	x22, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x26, _VIRTNET_RX_PAD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VIRTNET_RX_PAD@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh2:
	adrp	x25, _GOOD_PACKET_LEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GOOD_PACKET_LEN@GOTPAGEOFF]
	ldr	w10, [x25]
	add	w8, w8, w0
	add	w8, w8, w9
	add	w0, w8, w10
	bl	_SKB_DATA_ALIGN
	mov	x23, x0
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	add	w23, w0, w23
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	bl	_skb_page_frag_refill
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_4
LBB0_2:
	mov	w24, w22
	ldr	w0, [x20, #12]
	bl	_page_address
	ldp	w9, w8, [x20, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x22, x0, x9
	mov	x0, x8
	bl	_get_page
	ldr	w8, [x20, #8]
	add	w8, w8, w23
	str	w8, [x20, #8]
	ldr	w0, [x20]
	ldrsw	x8, [x26]
	add	x8, x22, x8
	add	x1, x8, x24
	ldr	w8, [x21]
	ldr	w9, [x25]
	add	w2, w9, w8
	bl	_sg_init_one
	ldp	w1, w0, [x20]
	mov	w2, #1
	mov	x3, x22
	mov	x4, x24
	mov	x5, x19
	bl	_virtqueue_add_inbuf_ctx
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_virt_to_head_page
	bl	_put_page
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTNET_RX_PAD,4,2             ; @VIRTNET_RX_PAD
	.comm	_GOOD_PACKET_LEN,4,2            ; @GOOD_PACKET_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_recvbuf_small
.subsections_via_symbols
