	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_ll2_start_xmit
_qed_ll2_start_xmit:                    ## @qed_ll2_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, -112(%rbp)
	callq	_QED_AFFIN_HWFN
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ecx
	leal	1(%rcx), %r13d
	movq	_CORE_LL2_TX_MAX_BDS_PER_PACKET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_4
## %bb.5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_DP_ERR
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_vlan_get_protocol
	movq	%rax, %rbx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_ipv6_hdr
	movq	(%rax), %rax
	movq	_NEXTHDR_IPV6@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_9:
	movq	_CORE_TX_BD_DATA_IP_CSUM_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	jmp	LBB0_13
LBB0_11:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%r13d, -104(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -68(%rbp)
	movl	%ebx, -100(%rbp)
	movq	_QED_LL2_TX_DEST_NW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	%r12d, -76(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, -88(%rbp)
	movq	_QED_MF_UFP_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_QED_LL2_XMIT_FLAGS_FIP_DISCOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-112(%rbp), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$1, -96(%rbp)
LBB0_16:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_qed_ll2_prepare_tx_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	je	LBB0_17
LBB0_23:
	movq	8(%r15), %rdi
	movl	8(%r14), %edx
	movl	(%r13), %ecx
	movl	%r12d, %esi
	callq	_dma_unmap_single
	jmp	LBB0_26
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_18
## %bb.19:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	xorl	%r14d, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r14, %rbx
	movq	8(%r15), %r12
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	(%r13), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r15), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_qed_ll2_set_fragment_of_tx_packet
	testl	%eax, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	$4, %r14
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, %rax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	jne	LBB0_21
	jmp	LBB0_26
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_25:
	movl	%eax, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot transmit a checksummed packet\n"

	.comm	_CORE_LL2_TX_MAX_BDS_PER_PACKET,4,2 ## @CORE_LL2_TX_MAX_BDS_PER_PACKET
L_.str.1:                               ## @.str.1
	.asciz	"Cannot transmit a packet with %d fragments\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"SKB mapping failed\n"

	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_NEXTHDR_IPV6,8,3               ## @NEXTHDR_IPV6
	.comm	_CORE_TX_BD_DATA_IP_CSUM_SHIFT,4,2 ## @CORE_TX_BD_DATA_IP_CSUM_SHIFT
	.comm	_CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT,4,2 ## @CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT
	.comm	_QED_LL2_TX_DEST_NW,4,2         ## @QED_LL2_TX_DEST_NW
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ## @QED_MF_UFP_SPECIFIC
	.comm	_QED_LL2_XMIT_FLAGS_FIP_DISCOVERY,4,2 ## @QED_LL2_XMIT_FLAGS_FIP_DISCOVERY
L_.str.3:                               ## @.str.3
	.asciz	"Unable to map frag - dropping packet\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qed_ll2_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_ll2_start_xmit
_qed_ll2_start_xmit:                    ; @qed_ll2_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #40]
	bl	_QED_AFFIN_HWFN
	mov	x21, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w27, [x0]
	add	w23, w27, #1
Lloh5:
	adrp	x8, _CORE_LL2_TX_MAX_BDS_PER_PACKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CORE_LL2_TX_MAX_BDS_PER_PACKET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ge	LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	ldp	w2, w1, [x20, #8]
Lloh8:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_dma_map_single
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_DP_ERR
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	mov	x0, x20
	bl	_vlan_get_protocol
	mov	x24, x0
Lloh17:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_ipv6_hdr
	ldr	x8, [x0]
Lloh20:
	adrp	x9, _NEXTHDR_IPV6@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NEXTHDR_IPV6@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w24, #0
	b	LBB0_12
LBB0_11:
Lloh23:
	adrp	x8, _CORE_TX_BD_DATA_IP_CSUM_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CORE_TX_BD_DATA_IP_CSUM_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_BIT
	mov	x24, x0
LBB0_12:
	mov	x0, x20
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_skb_vlan_tag_get
	mov	x25, x0
Lloh26:
	adrp	x8, _CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_BIT
	orr	w24, w0, w24
	b	LBB0_15
LBB0_14:
	mov	w25, #0
LBB0_15:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	stp	w23, w24, [sp]
Lloh29:
	adrp	x8, _QED_LL2_TX_DEST_NW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QED_LL2_TX_DEST_NW@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	stp	w8, w25, [sp, #32]
	ldr	w8, [x20, #8]
	stp	w8, w22, [sp, #24]
	str	x20, [sp, #16]
Lloh32:
	adrp	x8, _QED_MF_UFP_SPECIFIC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QED_MF_UFP_SPECIFIC@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_18
; %bb.16:
Lloh35:
	adrp	x8, _QED_LL2_XMIT_FLAGS_FIP_DISCOVERY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QED_LL2_XMIT_FLAGS_FIP_DISCOVERY@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_test_bit
	cbz	x0, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_18:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	mov	w3, #1
	bl	_qed_ll2_prepare_tx_packet
	mov	x23, x0
	cbz	w0, LBB0_20
LBB0_19:
	ldr	x0, [x19, #8]
	ldr	w2, [x20, #8]
	ldr	w3, [x26]
	mov	x1, x22
	bl	_dma_unmap_single
	b	LBB0_7
LBB0_20:
	cmp	w27, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x25, #0
	lsl	x27, x27, #2
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x8, x25
	ldr	x22, [x19, #8]
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x26]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #16]
	ldr	w24, [x8]
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_qed_ll2_set_fragment_of_tx_packet
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #4
	cmp	x27, x25
	b.ne	LBB0_22
	b	LBB0_7
LBB0_25:
	mov	w23, #0
	b	LBB0_7
LBB0_26:
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot transmit a checksummed packet\n"

	.comm	_CORE_LL2_TX_MAX_BDS_PER_PACKET,4,2 ; @CORE_LL2_TX_MAX_BDS_PER_PACKET
l_.str.1:                               ; @.str.1
	.asciz	"Cannot transmit a packet with %d fragments\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"SKB mapping failed\n"

	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_NEXTHDR_IPV6,8,3               ; @NEXTHDR_IPV6
	.comm	_CORE_TX_BD_DATA_IP_CSUM_SHIFT,4,2 ; @CORE_TX_BD_DATA_IP_CSUM_SHIFT
	.comm	_CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT,4,2 ; @CORE_TX_BD_DATA_VLAN_INSERTION_SHIFT
	.comm	_QED_LL2_TX_DEST_NW,4,2         ; @QED_LL2_TX_DEST_NW
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ; @QED_MF_UFP_SPECIFIC
	.comm	_QED_LL2_XMIT_FLAGS_FIP_DISCOVERY,4,2 ; @QED_LL2_XMIT_FLAGS_FIP_DISCOVERY
l_.str.3:                               ; @.str.3
	.asciz	"Unable to map frag - dropping packet\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qed_ll2_start_xmit
.subsections_via_symbols
