	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_recvbuf_big
_add_recvbuf_big:                       ## @add_recvbuf_big
	.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, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	addl	$2, %esi
	callq	_sg_init_table
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	leal	2(%rax), %r14d
	leaq	4(,%rax,4), %r12
	xorl	%eax, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_get_a_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	movq	(%r15), %r15
	addq	%r12, %r15
	movq	%rax, %rdi
	movq	%rax, %rbx
	callq	_page_address
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r15, %rdi
	movq	%r13, %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	%rax, %rsi
	callq	_sg_set_buf
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	decl	%r14d
	addq	$-4, %r12
	movq	%rbx, %rax
	cmpl	$2, %r14d
	jg	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_get_a_page
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	%r13d, %r12d
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_page_address
	movq	%r15, %r14
	movq	%rax, %r15
	movq	(%r14), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%r15, %rsi
	callq	_sg_set_buf
	movq	(%r14), %rdi
	addq	$4, %rdi
	addq	$4, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$-4, %rdx
	movq	%r15, %rsi
	callq	_sg_set_buf
	movq	%rbx, (%r13)
	movl	8(%r14), %edi
	movq	(%r14), %rsi
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$2, %edx
	movq	%r13, %rcx
	movl	%r12d, %r8d
	callq	_virtqueue_add_inbuf
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_give_pages
	jmp	LBB0_13
LBB0_4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	jmp	LBB0_6
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
LBB0_6:
	callq	_give_pages
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_add_recvbuf_big
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_recvbuf_big
_add_recvbuf_big:                       ; @add_recvbuf_big
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x25, _MAX_SKB_FRAGS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_SKB_FRAGS@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w1, w8, #2
	bl	_sg_init_table
	ldr	w8, [x25]
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	lsl	x9, x8, #2
	add	w27, w8, #2
	add	x28, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_get_a_page
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	x8, [x19]
	add	x24, x8, x28
	bl	_page_address
	mov	x1, x0
	ldr	x2, [x26]
	mov	x0, x24
	bl	_sg_set_buf
	str	x23, [x22]
	sub	w27, w27, #1
	sub	x28, x28, #4
	mov	x23, x22
	cmp	w27, #2
	b.gt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_get_a_page
	cbz	x0, LBB0_10
; %bb.6:
	mov	x23, x0
	bl	_page_address
	mov	x24, x0
	ldr	x0, [x19]
	ldr	x2, [x21]
	mov	x1, x24
	bl	_sg_set_buf
	ldr	x8, [x19]
	add	x0, x8, #4
	add	x1, x24, #4
	ldr	x8, [x26]
	sub	x2, x8, #4
	bl	_sg_set_buf
	str	x22, [x23]
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	ldr	w8, [x25]
	add	w2, w8, #2
	mov	x3, x23
	mov	x4, x20
	bl	_virtqueue_add_inbuf
	mov	x20, x0
	tbz	w0, #31, LBB0_13
; %bb.7:
	mov	x0, x19
	mov	x1, x23
	bl	_give_pages
	b	LBB0_13
LBB0_8:
	cbz	x23, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	x1, x23
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x22
LBB0_11:
	bl	_give_pages
LBB0_12:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_add_recvbuf_big
.subsections_via_symbols
