	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_flow_build_ipv6_hdr
_qede_flow_build_ipv6_hdr:              ## @qede_flow_build_ipv6_hdr
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movl	24(%rdi), %eax
	movl	%eax, (%rsi)
	leaq	(%rsi,%r15), %rdi
	addq	$24, %rdi
	leaq	20(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	(%rbx,%r15), %rdi
	addq	$20, %rdi
	leaq	16(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$6, (%rbx,%r15)
	movq	(%r14), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_NEXTHDR_TCP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NEXTHDR_UDP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx,%r15)
	movl	$4, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%rbx,%r15)
	movl	12(%r14), %eax
	movl	%eax, 32(%rbx,%r15)
	movl	8(%r14), %eax
	movl	%eax, 36(%rbx,%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_NEXTHDR_TCP,4,2                ## @NEXTHDR_TCP
	.comm	_NEXTHDR_UDP,4,2                ## @NEXTHDR_UDP
	.no_dead_strip	_qede_flow_build_ipv6_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_flow_build_ipv6_hdr
_qede_flow_build_ipv6_hdr:              ; @qede_flow_build_ipv6_hdr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x20, x1, x8
	ldr	w8, [x0, #24]
	str	w8, [x1]
	add	x0, x20, #24
	add	x1, x19, #20
	mov	w2, #4
	bl	_memcpy
	add	x0, x20, #20
	add	x1, x19, #16
	mov	w2, #4
	bl	_memcpy
	mov	w8, #6
	str	w8, [x20]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NEXTHDR_TCP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NEXTHDR_TCP@GOTPAGEOFF]
Lloh8:
	adrp	x11, _NEXTHDR_UDP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NEXTHDR_UDP@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	w0, #4
	bl	_cpu_to_be16
	str	x0, [x20, #8]
	ldr	w8, [x19, #12]
	str	w8, [x20, #32]
	ldr	w8, [x19, #8]
	str	w8, [x20, #36]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_NEXTHDR_TCP,4,2                ; @NEXTHDR_TCP
	.comm	_NEXTHDR_UDP,4,2                ; @NEXTHDR_UDP
	.no_dead_strip	_qede_flow_build_ipv6_hdr
.subsections_via_symbols
