	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _virtnet_set_queues
__virtnet_set_queues:                   ## @_virtnet_set_queues
	.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
	xorl	%r14d, %r14d
	cmpl	$0, 20(%rdi)
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	16(%rdi), %edi
	movq	_VIRTIO_NET_F_MQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	callq	_cpu_to_virtio16
	movq	8(%rbx), %rsi
	movl	%eax, (%rsi)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_sg_init_one
	movq	_VIRTIO_NET_CTRL_MQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	_virtnet_send_command
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%r15d, 4(%rbx)
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_6
LBB0_3:
	addq	$4, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_NET_F_MQ,4,2            ## @VIRTIO_NET_F_MQ
	.comm	_VIRTIO_NET_CTRL_MQ,4,2         ## @VIRTIO_NET_CTRL_MQ
	.comm	_VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET,4,2 ## @VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to set num of queue pairs to %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.no_dead_strip	__virtnet_set_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _virtnet_set_queues
__virtnet_set_queues:                   ; @_virtnet_set_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _VIRTIO_NET_F_MQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_NET_F_MQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_cpu_to_virtio16
	ldr	x1, [x19, #8]
	str	w0, [x1]
	add	x0, sp, #8
	mov	w2, #4
	bl	_sg_init_one
Lloh3:
	adrp	x8, _VIRTIO_NET_CTRL_MQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_MQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_virtnet_send_command
	cbz	w0, LBB0_6
; %bb.3:
	str	w20, [x19, #4]
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_schedule_delayed_work
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	add	x0, x21, #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_NET_F_MQ,4,2            ; @VIRTIO_NET_F_MQ
	.comm	_VIRTIO_NET_CTRL_MQ,4,2         ; @VIRTIO_NET_CTRL_MQ
	.comm	_VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET,4,2 ; @VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to set num of queue pairs to %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.no_dead_strip	__virtnet_set_queues
.subsections_via_symbols
