	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_kloop_eventfds
_sync_kloop_eventfds:                   ## @sync_kloop_eventfds
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_NETMAP_REQ_OPT_SYNC_KLOOP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	(%r14), %eax
	movl	%eax, -88(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_push_option
	movq	%r14, %rdi
	callq	_num_registered_rings
	movl	%eax, %r15d
	movslq	%eax, %rbx
	leaq	40(,%rbx,8), %r12
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_calloc
	movq	%rax, %r13
	movq	$0, 24(%rax)
	movq	_NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	$0, 8(%r13)
	movq	%r12, (%r13)
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_eventfd
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,8)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_eventfd
	movq	32(%r13), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_option
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm1, -64(%rbp)
	movq	%r14, %rdi
	callq	_sync_kloop_start_stop
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_checkoption
	movl	%eax, %r15d
LBB0_5:
	movq	%r13, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_clear_options
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETMAP_REQ_OPT_SYNC_KLOOP_MODE,4,2 ## @NETMAP_REQ_OPT_SYNC_KLOOP_MODE
	.comm	_NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS,4,2 ## @NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS
	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
	.no_dead_strip	_sync_kloop_eventfds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_kloop_eventfds
_sync_kloop_eventfds:                   ; @sync_kloop_eventfds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _NETMAP_REQ_OPT_SYNC_KLOOP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETMAP_REQ_OPT_SYNC_KLOOP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	str	w8, [sp, #56]
	str	w9, [sp, #72]
	add	x0, sp, #40
	mov	x1, x19
	bl	_push_option
	mov	x0, x19
	bl	_num_registered_rings
	mov	x21, x0
	sbfiz	x8, x21, #3, #32
	add	x22, x8, #40
	mov	w0, #1
	mov	x1, x22
	bl	_calloc
	mov	x20, x0
Lloh3:
	adrp	x8, _NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS@GOTPAGEOFF]
	str	xzr, [x0, #24]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	stp	x22, xzr, [x0]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	w8, w21
	lsl	x21, x8, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #0
	bl	_eventfd
	ldr	x8, [x20, #32]
	str	w0, [x8, x22]
	mov	w0, #0
	mov	w1, #0
	bl	_eventfd
	ldr	x8, [x20, #32]
	add	x8, x8, x22
	str	w0, [x8, #4]
	add	x22, x22, #8
	cmp	x21, x22
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_push_option
	ldp	q1, q0, [x20]
	stp	q1, q0, [sp]
	mov	x0, x19
	bl	_sync_kloop_start_stop
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_checkoption
	mov	x21, x0
LBB0_5:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_clear_options
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETMAP_REQ_OPT_SYNC_KLOOP_MODE,4,2 ; @NETMAP_REQ_OPT_SYNC_KLOOP_MODE
	.comm	_NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS,4,2 ; @NETMAP_REQ_OPT_SYNC_KLOOP_EVENTFDS
	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
	.no_dead_strip	_sync_kloop_eventfds
.subsections_via_symbols
