	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_eth_inline_headers
_copy_eth_inline_headers:               ## @copy_eth_inline_headers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	_MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdi), %edi
	callq	_to_mctx
	movq	(%rax), %r15
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MLX5_DBG_QP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	movq	_MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setge	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	_MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movl	(%r12), %edi
	movq	8(%r13), %rax
	movq	8(%rax), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%rbx, %rax
	xorl	%ebx, %ebx
LBB0_13:
	movl	(%rax), %edi
	callq	_htobe16
	movl	%eax, 4(%r12)
	movq	8(%r13), %rax
	movslq	%ebx, %rbx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	xorl	%edi, %edi
	cmpl	%r15d, (%rax,%rcx)
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%eax, %r15d
	setne	%dl
	addl	%edx, %ebx
	movl	%ebx, (%r14)
	movl	%r15d, 4(%r14)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, (%r13)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.6:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$1, %r15d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%r13), %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	subl	%ebx, %edi
	movq	_MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	8(%r14), %rax
	movq	8(%rax,%r13), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	subl	%r12d, %ebx
	movslq	(%r14), %rax
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %r13
	incq	%r15
	testl	%ebx, %ebx
	jg	LBB0_7
	jmp	LBB0_9
LBB0_4:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_13
## %bb.10:
	movq	_MLX5_DBG_QP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mlx5_dbg
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ETH_L2_INLINE_HEADER_SIZE,4,2 ## @MLX5_ETH_L2_INLINE_HEADER_SIZE
	.comm	_MLX5_DBG_QP_SEND,4,2           ## @MLX5_DBG_QP_SEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal num_sge: %d, minimum is 1\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Ethernet headers < 16 bytes\n"

	.no_dead_strip	_copy_eth_inline_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_eth_inline_headers
_copy_eth_inline_headers:               ; @copy_eth_inline_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x25, _MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MLX5_ETH_L2_INLINE_HEADER_SIZE@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	w0, [x0]
	bl	_to_mctx
	ldr	x22, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _MLX5_DBG_QP_SEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX5_DBG_QP_SEND@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x22
	bl	_mlx5_dbg
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x25]
	cmp	w8, w9
	cset	w0, ge
	bl	_likely
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w24, [x25]
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
	mov	x2, x24
	bl	_memcpy
	mov	w26, #0
LBB0_5:
	ldr	w0, [x25]
	bl	_htobe16
	str	w0, [x21, #4]
	ldr	x8, [x20, #8]
	sbfiz	x9, x26, #4, #32
	ldr	w8, [x8, x9]
	cmp	w8, w24
	cset	w0, eq
	bl	_unlikely
	mov	x8, x0
	mov	w0, #0
	cmp	x8, #0
	csel	w8, w24, wzr, eq
	cinc	w9, w26, ne
	stp	w9, w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	w24, #0
	ldr	w8, [x20]
	mov	w26, #-1
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x26, #0
	mov	w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x27, x8
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x26]
	mov	x1, x23
	bl	_min
	mov	x24, x0
	ldr	w8, [x21]
	ldr	w9, [x25]
	sub	w8, w8, w23
	add	w0, w8, w9
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	ldr	x1, [x8, #8]
	mov	x2, x24
	bl	_memcpy
	sub	w23, w23, w24
	ldrsw	x9, [x20]
	add	x26, x26, #16
	add	x8, x27, #1
	cmp	x27, x9
	ccmp	w23, #0, #4, lt
	b.gt	LBB0_10
; %bb.11:
	sub	w26, w8, #2
LBB0_12:
	mov	x0, x23
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.13:
Lloh10:
	adrp	x8, _MLX5_DBG_QP_SEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_DBG_QP_SEND@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ETH_L2_INLINE_HEADER_SIZE,4,2 ; @MLX5_ETH_L2_INLINE_HEADER_SIZE
	.comm	_MLX5_DBG_QP_SEND,4,2           ; @MLX5_DBG_QP_SEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal num_sge: %d, minimum is 1\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Ethernet headers < 16 bytes\n"

	.no_dead_strip	_copy_eth_inline_headers
.subsections_via_symbols
