	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vale_polling_enable
_vale_polling_enable:                   ## @vale_polling_enable
	.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	%rbx
	subq	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rcx
	movq	8(%rdi), %r8
	leaq	L_.str(%rip), %rdx
	leaq	-288(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	leaq	-336(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nmreq_hdr_init
	movq	_NETMAP_REQ_VALE_POLLING_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -328(%rbp)
	leaq	-320(%rbp), %rdi
	movq	%rdi, -336(%rbp)
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movups	16(%r14), %xmm0
	movaps	%xmm0, -320(%rbp)
	movq	32(%r14), %rax
	movq	%rax, -304(%rbp)
	movl	40(%r14), %edi
	movq	_NIOCCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	-320(%rbp), %rax
	movl	$-1, %ebx
	cmpq	16(%r14), %rax
	jne	LBB0_5
## %bb.3:
	movq	-312(%rbp), %rax
	cmpq	24(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	-304(%rbp), %rax
	xorl	%ebx, %ebx
	cmpq	32(%r14), %rax
	setne	%bl
	negl	%ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%s"

L_.str.1:                               ## @.str.1
	.asciz	"Testing NETMAP_REQ_VALE_POLLING_ENABLE on '%s'\n"

	.comm	_NETMAP_REQ_VALE_POLLING_ENABLE,4,2 ## @NETMAP_REQ_VALE_POLLING_ENABLE
	.comm	_NIOCCTRL,4,2                   ## @NIOCCTRL
L_.str.2:                               ## @.str.2
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, VALE_POLLING_ENABLE)"

	.no_dead_strip	_vale_polling_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vale_polling_enable
_vale_polling_enable:                   ; @vale_polling_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	x3, x4, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #256
	bl	_snprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #40
	bl	_printf
	mov	x0, sp
	add	x1, sp, #40
	bl	_nmreq_hdr_init
Lloh7:
	adrp	x8, _NETMAP_REQ_VALE_POLLING_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETMAP_REQ_VALE_POLLING_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x8, sp, #16
	str	x8, [sp]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	q0, [x19, #16]
	str	q0, [sp, #16]
	ldr	x8, [x19, #32]
	str	x8, [sp, #32]
	ldr	w0, [x19, #40]
Lloh10:
	adrp	x8, _NIOCCTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIOCCTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #24]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #32]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	csetm	w20, ne
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_7:
	mov	x20, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%s"

l_.str.1:                               ; @.str.1
	.asciz	"Testing NETMAP_REQ_VALE_POLLING_ENABLE on '%s'\n"

	.comm	_NETMAP_REQ_VALE_POLLING_ENABLE,4,2 ; @NETMAP_REQ_VALE_POLLING_ENABLE
	.comm	_NIOCCTRL,4,2                   ; @NIOCCTRL
l_.str.2:                               ; @.str.2
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, VALE_POLLING_ENABLE)"

	.no_dead_strip	_vale_polling_enable
.subsections_via_symbols
