	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vale_persistent_port
_vale_persistent_port:                  ## @vale_persistent_port
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_strncpy
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movq	(%rbx), %rsi
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_nmreq_hdr_init
	movq	_NETMAP_REQ_VALE_NEWIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%rdi, -40(%rbp)
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	28(%rbx), %eax
	movl	%eax, -48(%rbp)
	movups	12(%rbx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	8(%rbx), %edi
	movq	_NIOCCTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_vale_attach_detach
	movl	%eax, %r14d
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	movq	_NETMAP_REQ_VALE_DELIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_3
LBB0_4:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	testl	%r14d, %r14d
	cmovel	%ebx, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"per4"

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

	.comm	_NETMAP_REQ_VALE_NEWIF,4,2      ## @NETMAP_REQ_VALE_NEWIF
	.comm	_NIOCCTRL,4,2                   ## @NIOCCTRL
L_.str.2:                               ## @.str.2
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, VALE_NEWIF)"

L_.str.3:                               ## @.str.3
	.asciz	"Testing NETMAP_REQ_VALE_DELIF on '%s'\n"

	.comm	_NETMAP_REQ_VALE_DELIF,4,2      ## @NETMAP_REQ_VALE_DELIF
	.no_dead_strip	_vale_persistent_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vale_persistent_port
_vale_persistent_port:                  ; @vale_persistent_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_strncpy
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x1, [x19]
	mov	x0, sp
	bl	_nmreq_hdr_init
Lloh4:
	adrp	x8, _NETMAP_REQ_VALE_NEWIF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETMAP_REQ_VALE_NEWIF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x8, sp, #16
	str	x8, [sp]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w8, [x19, #28]
	str	w8, [sp, #32]
	ldur	q0, [x19, #12]
	str	q0, [sp, #16]
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x21, _NIOCCTRL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _NIOCCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	bl	_ioctl
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_vale_attach_detach
	mov	x20, x0
	ldr	x1, [x19]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
Lloh11:
	adrp	x8, _NETMAP_REQ_VALE_DELIF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETMAP_REQ_VALE_DELIF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	xzr, [sp]
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	mov	x2, sp
	bl	_ioctl
	cbnz	w0, LBB0_4
LBB0_2:
	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
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x20, x0
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_2
LBB0_4:
	mov	x19, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	cmp	w20, #0
	csel	w20, w19, w20, eq
	b	LBB0_2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"per4"

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

	.comm	_NETMAP_REQ_VALE_NEWIF,4,2      ; @NETMAP_REQ_VALE_NEWIF
	.comm	_NIOCCTRL,4,2                   ; @NIOCCTRL
l_.str.2:                               ; @.str.2
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, VALE_NEWIF)"

l_.str.3:                               ; @.str.3
	.asciz	"Testing NETMAP_REQ_VALE_DELIF on '%s'\n"

	.comm	_NETMAP_REQ_VALE_DELIF,4,2      ; @NETMAP_REQ_VALE_DELIF
	.no_dead_strip	_vale_persistent_port
.subsections_via_symbols
