	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_ipsec_set_swp
_mlx5e_ipsec_set_swp:                   ## @mlx5e_ipsec_set_swp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -24(%rbp)
	movq	_XFRM_MODE_TUNNEL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpq	%rdx, (%rsi)
	sete	%dil
	movl	%edi, -48(%rbp)
	jne	LBB0_3
## %bb.1:
	movq	(%rcx), %rax
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -32(%rbp)
	movq	%rbx, %rdi
	callq	_inner_ipv6_hdr
	jmp	LBB0_5
LBB0_3:
	movq	%rax, -32(%rbp)
	jmp	LBB0_6
LBB0_4:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -32(%rbp)
	movq	%rbx, %rdi
	callq	_inner_ip_hdr
LBB0_5:
	movq	%rax, %rcx
LBB0_6:
	movq	(%rcx), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx5e_set_eseg_swp
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MODE_TUNNEL,8,3           ## @XFRM_MODE_TUNNEL
	.comm	_IPPROTO_IPV6,8,3               ## @IPPROTO_IPV6
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_mlx5e_ipsec_set_swp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_ipsec_set_swp
_mlx5e_ipsec_set_swp:                   ; @mlx5e_ipsec_set_swp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	ldr	x8, [x0]
	stp	xzr, x8, [sp, #16]
Lloh0:
	adrp	x9, _XFRM_MODE_TUNNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_MODE_TUNNEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x2
	cset	w9, eq
	str	w9, [sp]
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x3]
Lloh3:
	adrp	x9, _IPPROTO_IPV6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_inner_ipv6_hdr
	b	LBB0_5
LBB0_3:
	str	x8, [sp, #16]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_inner_ip_hdr
LBB0_5:
	mov	x3, x0
LBB0_6:
	ldr	x8, [x3]
	str	x8, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5e_set_eseg_swp
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MODE_TUNNEL,8,3           ; @XFRM_MODE_TUNNEL
	.comm	_IPPROTO_IPV6,8,3               ; @IPPROTO_IPV6
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_mlx5e_ipsec_set_swp
.subsections_via_symbols
