	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_set_guest_offloads
_virtnet_set_guest_offloads:            ## @virtnet_set_guest_offloads
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_cpu_to_virtio64
	movq	8(%rbx), %rsi
	movl	%eax, (%rsi)
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_sg_init_one
	movq	_VIRTIO_NET_CTRL_GUEST_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_virtnet_send_command
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_NET_CTRL_GUEST_OFFLOADS,4,2 ## @VIRTIO_NET_CTRL_GUEST_OFFLOADS
	.comm	_VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET,4,2 ## @VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to set guest offload.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_virtnet_set_guest_offloads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_set_guest_offloads
_virtnet_set_guest_offloads:            ; @virtnet_set_guest_offloads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_cpu_to_virtio64
	ldr	x1, [x19, #8]
	str	w0, [x1]
	add	x0, sp, #8
	mov	w2, #4
	bl	_sg_init_one
Lloh0:
	adrp	x8, _VIRTIO_NET_CTRL_GUEST_OFFLOADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_GUEST_OFFLOADS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_virtnet_send_command
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_NET_CTRL_GUEST_OFFLOADS,4,2 ; @VIRTIO_NET_CTRL_GUEST_OFFLOADS
	.comm	_VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET,4,2 ; @VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to set guest offload.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_virtnet_set_guest_offloads
.subsections_via_symbols
