	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_validate_features
_virtnet_validate_features:             ## @virtnet_validate_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_VIRTIO_NET_F_CTRL_VQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_1:
	movq	_VIRTIO_NET_F_CTRL_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_VIRTNET_FAIL_ON
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_VIRTIO_NET_F_CTRL_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_VIRTNET_FAIL_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_VIRTIO_NET_F_GUEST_ANNOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_VIRTNET_FAIL_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_VIRTIO_NET_F_MQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_VIRTNET_FAIL_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_VIRTIO_NET_F_CTRL_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_VIRTNET_FAIL_ON
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_NET_F_CTRL_VQ,4,2       ## @VIRTIO_NET_F_CTRL_VQ
	.comm	_VIRTIO_NET_F_CTRL_RX,4,2       ## @VIRTIO_NET_F_CTRL_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIRTIO_NET_F_CTRL_VQ"

	.comm	_VIRTIO_NET_F_CTRL_VLAN,4,2     ## @VIRTIO_NET_F_CTRL_VLAN
	.comm	_VIRTIO_NET_F_GUEST_ANNOUNCE,4,2 ## @VIRTIO_NET_F_GUEST_ANNOUNCE
	.comm	_VIRTIO_NET_F_MQ,4,2            ## @VIRTIO_NET_F_MQ
	.comm	_VIRTIO_NET_F_CTRL_MAC_ADDR,4,2 ## @VIRTIO_NET_F_CTRL_MAC_ADDR
	.no_dead_strip	_virtnet_validate_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_validate_features
_virtnet_validate_features:             ; @virtnet_validate_features
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _VIRTIO_NET_F_CTRL_VQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_NET_F_CTRL_VQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _VIRTIO_NET_F_CTRL_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTIO_NET_F_CTRL_RX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_VIRTNET_FAIL_ON
	cbnz	x0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _VIRTIO_NET_F_CTRL_VLAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIRTIO_NET_F_CTRL_VLAN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_VIRTNET_FAIL_ON
	cbnz	x0, LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _VIRTIO_NET_F_GUEST_ANNOUNCE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_ANNOUNCE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_VIRTNET_FAIL_ON
	cbnz	x0, LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _VIRTIO_NET_F_MQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIRTIO_NET_F_MQ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_VIRTNET_FAIL_ON
	cbnz	x0, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _VIRTIO_NET_F_CTRL_MAC_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VIRTIO_NET_F_CTRL_MAC_ADDR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_VIRTNET_FAIL_ON
	cbz	x0, LBB0_1
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_NET_F_CTRL_VQ,4,2       ; @VIRTIO_NET_F_CTRL_VQ
	.comm	_VIRTIO_NET_F_CTRL_RX,4,2       ; @VIRTIO_NET_F_CTRL_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIRTIO_NET_F_CTRL_VQ"

	.comm	_VIRTIO_NET_F_CTRL_VLAN,4,2     ; @VIRTIO_NET_F_CTRL_VLAN
	.comm	_VIRTIO_NET_F_GUEST_ANNOUNCE,4,2 ; @VIRTIO_NET_F_GUEST_ANNOUNCE
	.comm	_VIRTIO_NET_F_MQ,4,2            ; @VIRTIO_NET_F_MQ
	.comm	_VIRTIO_NET_F_CTRL_MAC_ADDR,4,2 ; @VIRTIO_NET_F_CTRL_MAC_ADDR
	.no_dead_strip	_virtnet_validate_features
.subsections_via_symbols
