	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_skb_transmit
_mlxsw_pci_skb_transmit:                ## @mlxsw_pci_skb_transmit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	_MLXSW_PCI_WQE_SG_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_linearize
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_pci_sdq_pick
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_bh
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mlxsw_pci_queue_elem_info_producer_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_mlxsw_skb_cb
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	%r13, 8(%rbx)
	movq	%r12, %r14
	movq	(%rbx), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlxsw_pci_wqe_c_set
	xorl	%esi, %esi
	cmpl	$0, (%r15)
	movq	%r14, %r15
	setne	%sil
	movq	%r12, %rdi
	callq	_mlxsw_pci_wqe_lp_set
	movq	_MLXSW_PCI_WQE_TYPE_ETHERNET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mlxsw_pci_wqe_type_set
	movl	(%r13), %ebx
	movq	%r13, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_mlxsw_pci_wqe_frag_map
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	movq	%r13, %rdi
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_skb_shinfo
	incq	%r15
	movq	8(%rax), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_address
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_mlxsw_pci_wqe_frag_map
	addq	$4, %r12
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r15d
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mlxsw_pci_wqe_frag_unmap
	testl	%r15d, %r15d
	jg	LBB0_9
	jmp	LBB0_15
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_10:
	callq	_skb_shinfo
	movq	_SKBTX_HW_TSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_skb_shinfo
	orl	%ebx, 4(%rax)
LBB0_12:
	incq	%r15
	movq	_MLXSW_PCI_WQE_SG_ENTRIES@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_mlxsw_pci_wqe_byte_count_set
	incl	%r15d
	cmpl	(%r12), %r15d
	jl	LBB0_13
LBB0_14:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	incl	4(%rsi)
	movq	%r14, %rdi
	callq	_mlxsw_pci_queue_doorbell_producer_ring
	xorl	%r14d, %r14d
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PCI_WQE_SG_ENTRIES,4,2   ## @MLXSW_PCI_WQE_SG_ENTRIES
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MLXSW_PCI_WQE_TYPE_ETHERNET,4,2 ## @MLXSW_PCI_WQE_TYPE_ETHERNET
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_SKBTX_HW_TSTAMP,4,2            ## @SKBTX_HW_TSTAMP
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.no_dead_strip	_mlxsw_pci_skb_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_pci_skb_transmit
_mlxsw_pci_skb_transmit:                ; @mlxsw_pci_skb_transmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh0:
	adrp	x26, _MLXSW_PCI_WQE_SG_ENTRIES@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLXSW_PCI_WQE_SG_ENTRIES@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_skb_linearize
	mov	x24, x0
	cbnz	w0, LBB0_17
LBB0_2:
	mov	x0, x19
	mov	x1, x23
	bl	_mlxsw_pci_sdq_pick
	mov	x20, x0
	bl	_spin_lock_bh
	mov	x0, x20
	bl	_mlxsw_pci_queue_elem_info_producer_get
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_mlxsw_skb_cb
	ldr	w8, [x23]
	str	w8, [x0]
	str	x22, [x21, #8]
	ldr	x21, [x21]
	mov	x0, x21
	mov	w1, #1
	bl	_mlxsw_pci_wqe_c_set
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x21
	bl	_mlxsw_pci_wqe_lp_set
Lloh2:
	adrp	x8, _MLXSW_PCI_WQE_TYPE_ETHERNET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_PCI_WQE_TYPE_ETHERNET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mlxsw_pci_wqe_type_set
	ldr	w23, [x22]
	mov	x0, x22
	bl	_skb_headlen
	mov	x4, x0
Lloh5:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w5, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x23
	bl	_mlxsw_pci_wqe_frag_map
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x28, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	mov	x0, x22
	cmp	x23, x8
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x23, #1
	add	x24, x8, x28
	mov	x0, x24
	bl	_skb_frag_address
	mov	x25, x0
	mov	x0, x24
	bl	_skb_frag_size
	mov	x4, x0
	ldr	w5, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_mlxsw_pci_wqe_frag_map
	add	x28, x28, #4
	cbz	w0, LBB0_5
; %bb.7:
	mov	x24, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mlxsw_pci_wqe_frag_unmap
	cmp	w23, #0
	b.gt	LBB0_8
	b	LBB0_16
LBB0_9:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_10:
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
Lloh10:
	adrp	x9, _SKBTX_HW_TSTAMP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SKBTX_HW_TSTAMP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	orr	w8, w8, w24
	str	w8, [x0, #4]
LBB0_12:
	add	x22, x23, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w22, w8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_mlxsw_pci_wqe_byte_count_set
	add	w22, w22, #1
	b	LBB0_13
LBB0_15:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_pci_queue_doorbell_producer_ring
	mov	w24, #0
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_17:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PCI_WQE_SG_ENTRIES,4,2   ; @MLXSW_PCI_WQE_SG_ENTRIES
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MLXSW_PCI_WQE_TYPE_ETHERNET,4,2 ; @MLXSW_PCI_WQE_TYPE_ETHERNET
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_SKBTX_HW_TSTAMP,4,2            ; @SKBTX_HW_TSTAMP
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.no_dead_strip	_mlxsw_pci_skb_transmit
.subsections_via_symbols
