	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_buffers
_free_buffers:                          ## @free_buffers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_glob_arg@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$-1, %rax
	je	LBB0_1
## %bb.6:
	movq	_ports@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rdx,8), %r13
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	(%rdi,%rdi,2), %rdx
	movq	16(%rcx,%rdx,8), %r14
	testq	%r14, %r14
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx,8), %r12
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_oq_deq
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_NETMAP_BUF
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	%ebx, (%rcx)
	incl	%r15d
	cmpq	$0, (%r14)
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_glob_arg@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_ports@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	leaq	1(%rax), %rcx
	cmpq	%rdi, %rcx
	jbe	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rsi), %rcx
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_D
	cmpq	$-1, (%r12)
	je	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	movq	_ports@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r15), %rdi
	callq	_nm_close
	incq	%rbx
	movq	(%r12), %rax
	incq	%rax
	addq	$24, %r15
	cmpq	%rbx, %rax
	ja	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_glob_arg,8,3                   ## @glob_arg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"added %d buffers to netmap free list"

	.no_dead_strip	_free_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_buffers
_free_buffers:                          ; @free_buffers
	.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
Lloh0:
	adrp	x22, _glob_arg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _glob_arg@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _ports@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ports@GOTPAGEOFF]
	cmn	x8, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x24, #0
	mov	w19, #0
	ldr	x9, [x23]
	mov	w25, #24
	madd	x26, x8, x25, x9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	madd	x10, x24, x25, x9
	ldr	x20, [x10, #16]
	cbz	x20, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x20]
	cbz	x10, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	x8, x24, x25, x9
	add	x27, x8, #8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_oq_deq
	mov	x21, x0
	ldr	w0, [x27]
	mov	x1, x21
	bl	_NETMAP_BUF
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w9, [x8]
	str	w9, [x0]
	str	w21, [x8]
	add	w19, w19, #1
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	add	x9, x8, #1
	cmp	x9, x24
	b.ls	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	b	LBB0_2
LBB0_9:
	mov	w19, #0
LBB0_10:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_D
	ldr	x8, [x22]
	cmn	x8, #1
	b.eq	LBB0_13
; %bb.11:
	mov	x19, #0
	mov	x20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x0, [x8, x19]
	bl	_nm_close
	add	x20, x20, #1
	ldr	x8, [x22]
	add	x8, x8, #1
	add	x19, x19, #24
	cmp	x8, x20
	b.hi	LBB0_12
LBB0_13:
	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 AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_glob_arg,8,3                   ; @glob_arg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"added %d buffers to netmap free list"

	.no_dead_strip	_free_buffers
.subsections_via_symbols
