	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_netdev_start_xmit
_hfi1_netdev_start_xmit:                ## @hfi1_netdev_start_xmit
	.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
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_opa_vnic_dev_priv
	movq	%rax, %r14
	movq	(%r12), %r15
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movslq	8(%r12), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_v_dbg
	movq	%r13, %rdi
	callq	_netif_oper_up
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$12, %rax
	jmp	LBB0_2
LBB0_4:
	movq	16(%r12), %r13
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skb_pull
	movq	_OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$8, %rax
LBB0_2:
	incl	(%rax)
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_hfi1_vnic_update_tx_counters
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
LBB0_14:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	8(%r12), %rsi
	movq	_OPA_VNIC_ICRC_TAIL_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leal	(%rax,%rsi), %ebx
	negl	%ebx
	andl	$7, %ebx
	addq	%rax, %rbx
	addq	%rbx, %rsi
	shrq	$2, %rsi
	addl	$2, %esi
	movl	4(%r13), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_create_bypass_pbc
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_skb_get
	movslq	%r13d, %r13
	movslq	8(%r12), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_v_dbg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	movq	%rbx, %r9
	callq	*(%rdi)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	jmp	LBB0_11
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_12
## %bb.10:
	movq	%r15, %rax
	shlq	$4, %rax
	addq	(%r14), %rax
LBB0_11:
	incl	(%rax)
LBB0_12:
	movq	_OPA_VNIC_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_pull
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hfi1_vnic_maybe_stop_tx
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit: queue %d skb len %d\n"

	.comm	_OPA_VNIC_SKB_MDATA_ENCAP_ERR,4,2 ## @OPA_VNIC_SKB_MDATA_ENCAP_ERR
	.comm	_OPA_VNIC_ICRC_TAIL_LEN,4,2     ## @OPA_VNIC_ICRC_TAIL_LEN
L_.str.1:                               ## @.str.1
	.asciz	"pbc 0x%016llX len %d pad_len %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OPA_VNIC_HDR_LEN,4,2           ## @OPA_VNIC_HDR_LEN
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_hfi1_netdev_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_netdev_start_xmit
_hfi1_netdev_start_xmit:                ; @hfi1_netdev_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_opa_vnic_dev_priv
	mov	x20, x0
	ldr	x21, [x19]
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldrsw	x2, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_v_dbg
	mov	x0, x23
	bl	_netif_oper_up
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
	add	x8, x8, #12
	b	LBB0_4
LBB0_2:
	ldr	x25, [x19, #16]
	mov	x0, x19
	mov	w1, #8
	bl	_skb_pull
	ldr	w8, [x25]
Lloh5:
	adrp	x9, _OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
	add	x8, x8, #8
LBB0_4:
	neg	w22, w24
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	bl	_hfi1_vnic_update_tx_counters
Lloh8:
	adrp	x20, _NETDEV_TX_OK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_6:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	ldr	w0, [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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldrsw	x8, [x19, #8]
Lloh10:
	adrp	x9, _OPA_VNIC_ICRC_TAIL_LEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OPA_VNIC_ICRC_TAIL_LEN@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	add	w10, w8, w9
	neg	w10, w10
	and	w10, w10, #0x7
	add	x23, x10, x9
	add	x8, x23, x8
	lsr	x8, x8, #2
	add	w1, w8, #2
	ldr	w0, [x25, #4]
	bl	_create_bypass_pbc
	mov	x24, x0
	mov	x0, x19
	bl	_skb_get
	sxtw	x1, w24
	ldrsw	x2, [x19, #8]
	str	x23, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_v_dbg
	ldr	x8, [x22]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	blr	x8
	mov	x22, x0
	bl	_unlikely
Lloh15:
	adrp	x23, _EBUSY@GOTPAGE
Lloh16:
	ldr	x23, [x23, _EBUSY@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
	add	x8, x8, #4
	b	LBB0_12
LBB0_10:
	ldr	w8, [x23]
	cmn	w22, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
LBB0_12:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
Lloh20:
	adrp	x8, _OPA_VNIC_HDR_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPA_VNIC_HDR_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_pull
	ldr	w8, [x23]
	cmn	w22, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.14:
	mov	x0, x20
	mov	x1, x21
	bl	_hfi1_vnic_maybe_stop_tx
Lloh23:
	adrp	x20, _NETDEV_TX_BUSY@GOTPAGE
Lloh24:
	ldr	x20, [x20, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit: queue %d skb len %d\n"

	.comm	_OPA_VNIC_SKB_MDATA_ENCAP_ERR,4,2 ; @OPA_VNIC_SKB_MDATA_ENCAP_ERR
	.comm	_OPA_VNIC_ICRC_TAIL_LEN,4,2     ; @OPA_VNIC_ICRC_TAIL_LEN
l_.str.1:                               ; @.str.1
	.asciz	"pbc 0x%016llX len %d pad_len %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OPA_VNIC_HDR_LEN,4,2           ; @OPA_VNIC_HDR_LEN
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_hfi1_netdev_start_xmit
.subsections_via_symbols
