	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sunvnet_send_attr_common       ## -- Begin function sunvnet_send_attr_common
	.p2align	4, 0x90
_sunvnet_send_attr_common:              ## @sunvnet_send_attr_common
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_vnet_port
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_VNET_PORT_TO_NET_DEVICE
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_to_vnet_port
	movq	%rax, %rdi
	callq	_vnet_port_alloc_tx_ring
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_VIO_TYPE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_VIO_SUBTYPE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_VIO_ATTR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	%rbx, %rdi
	callq	_vio_send_sid
	movl	%eax, -40(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	callq	_vio_version_before
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_VIO_NEW_DRING_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VIO_DRING_MODE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_VNET_ADDR_ETHERMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$3, %edx
	callq	_vio_version_after
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	(%r14), %esi
	movq	_VNET_MAXPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	movl	%eax, %edi
	callq	_min
LBB0_7:
	movl	%eax, (%r14)
	movl	%eax, -84(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$6, %edx
	callq	_vio_version_after_eq
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	_VIO_TX_DRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$3, %edx
	callq	_vio_version_before
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
LBB0_11:
	movl	%r15d, -84(%rbp)
LBB0_12:
	movl	$0, -72(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$7, %edx
	callq	_vio_version_after_eq
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	cmpq	$0, 16(%r14)
	je	LBB0_17
## %bb.14:
	movq	_VNET_LSO_IPV4_CAPAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	movq	8(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_VNET_MAXTSO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_16:
	movq	%rax, -80(%rbp)
LBB0_17:
	movq	_PHYSLINK_UPDATE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_HS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movslq	-88(%rbp), %r8
	movq	-56(%rbp), %r9
	movl	-68(%rbp), %r10d
	movslq	-84(%rbp), %r11
	movl	-72(%rbp), %r14d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	pushq	-80(%rbp)
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_viodbg
	addq	$48, %rsp
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_vio_ldc_send
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_VIO_TYPE_CTRL,4,2              ## @VIO_TYPE_CTRL
	.comm	_VIO_SUBTYPE_INFO,4,2           ## @VIO_SUBTYPE_INFO
	.comm	_VIO_ATTR_INFO,4,2              ## @VIO_ATTR_INFO
	.comm	_VIO_DRING_MODE,4,2             ## @VIO_DRING_MODE
	.comm	_VIO_NEW_DRING_MODE,4,2         ## @VIO_NEW_DRING_MODE
	.comm	_VNET_ADDR_ETHERMAC,4,2         ## @VNET_ADDR_ETHERMAC
	.comm	_VNET_MAXPACKET,4,2             ## @VNET_MAXPACKET
	.comm	_VIO_TX_DRING,4,2               ## @VIO_TX_DRING
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_VNET_LSO_IPV4_CAPAB,4,2        ## @VNET_LSO_IPV4_CAPAB
	.comm	_VNET_MAXTSO,8,3                ## @VNET_MAXTSO
	.comm	_PHYSLINK_UPDATE_NONE,4,2       ## @PHYSLINK_UPDATE_NONE
	.comm	_HS,4,2                         ## @HS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEND NET ATTR xmode[0x%x] atype[0x%x] addr[%llx] ackfreq[%u] plnk_updt[0x%02x] opts[0x%02x] mtu[%llu] cflags[0x%04x] lso_max[%u]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sunvnet_send_attr_common       ; -- Begin function sunvnet_send_attr_common
	.p2align	2
_sunvnet_send_attr_common:              ; @sunvnet_send_attr_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	bl	_to_vnet_port
	mov	x20, x0
	bl	_VNET_PORT_TO_NET_DEVICE
Lloh0:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_to_vnet_port
	bl	_vnet_port_alloc_tx_ring
	cbnz	w0, LBB0_15
; %bb.1:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh3:
	adrp	x8, _VIO_TYPE_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIO_TYPE_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #92]
Lloh6:
	adrp	x8, _VIO_SUBTYPE_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIO_SUBTYPE_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _VIO_ATTR_INFO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIO_ATTR_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #84]
	mov	x0, x19
	bl	_vio_send_sid
	str	w0, [sp, #80]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	bl	_vio_version_before
Lloh12:
	adrp	x8, _VIO_NEW_DRING_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIO_NEW_DRING_MODE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _VIO_DRING_MODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VIO_DRING_MODE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _VNET_ADDR_ETHERMAC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VNET_ADDR_ETHERMAC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #72]
	str	xzr, [sp, #64]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #3
	bl	_vio_version_after
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [x20]
Lloh19:
	adrp	x8, _VNET_MAXPACKET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VNET_MAXPACKET@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	cbz	w1, LBB0_4
; %bb.3:
	bl	_min
LBB0_4:
	str	w0, [x20]
	str	w0, [sp, #36]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #6
	bl	_vio_version_after_eq
	cbz	x0, LBB0_9
; %bb.5:
Lloh22:
	adrp	x8, _VIO_TX_DRING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIO_TX_DRING@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #52]
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #3
	bl	_vio_version_before
	cbz	x0, LBB0_8
; %bb.7:
	str	w21, [sp, #36]
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w8, w8, w21
	str	w8, [sp, #36]
LBB0_9:
	str	wzr, [sp, #48]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #7
	bl	_vio_version_after_eq
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_14
; %bb.11:
Lloh28:
	adrp	x8, _VNET_LSO_IPV4_CAPAB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VNET_LSO_IPV4_CAPAB@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	orr	w8, w9, w8
	str	w8, [sp, #48]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_13
; %bb.12:
Lloh31:
	adrp	x8, _VNET_MAXTSO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VNET_MAXTSO@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_13:
	str	x8, [sp, #40]
LBB0_14:
Lloh34:
	adrp	x8, _PHYSLINK_UPDATE_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PHYSLINK_UPDATE_NONE@GOTPAGEOFF]
Lloh36:
	ldr	w6, [x8]
	str	w6, [sp, #56]
Lloh37:
	adrp	x8, _HS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldp	w3, w2, [sp, #72]
	ldr	x5, [sp, #64]
	ldpsw	x4, x8, [sp, #32]
	ldp	w9, w7, [sp, #48]
	ldr	x10, [sp, #40]
	str	x10, [sp, #16]
	str	w9, [sp, #8]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	bl	_viodbg
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #64
	bl	_vio_ldc_send
LBB0_15:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_VIO_TYPE_CTRL,4,2              ; @VIO_TYPE_CTRL
	.comm	_VIO_SUBTYPE_INFO,4,2           ; @VIO_SUBTYPE_INFO
	.comm	_VIO_ATTR_INFO,4,2              ; @VIO_ATTR_INFO
	.comm	_VIO_DRING_MODE,4,2             ; @VIO_DRING_MODE
	.comm	_VIO_NEW_DRING_MODE,4,2         ; @VIO_NEW_DRING_MODE
	.comm	_VNET_ADDR_ETHERMAC,4,2         ; @VNET_ADDR_ETHERMAC
	.comm	_VNET_MAXPACKET,4,2             ; @VNET_MAXPACKET
	.comm	_VIO_TX_DRING,4,2               ; @VIO_TX_DRING
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_VNET_LSO_IPV4_CAPAB,4,2        ; @VNET_LSO_IPV4_CAPAB
	.comm	_VNET_MAXTSO,8,3                ; @VNET_MAXTSO
	.comm	_PHYSLINK_UPDATE_NONE,4,2       ; @PHYSLINK_UPDATE_NONE
	.comm	_HS,4,2                         ; @HS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEND NET ATTR xmode[0x%x] atype[0x%x] addr[%llx] ackfreq[%u] plnk_updt[0x%02x] opts[0x%02x] mtu[%llu] cflags[0x%04x] lso_max[%u]\n"

.subsections_via_symbols
