	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_ipsec_build_accel_xfrm_attrs
_mlx5e_ipsec_build_accel_xfrm_attrs:    ## @mlx5e_ipsec_build_accel_xfrm_attrs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	%rbx, %r12
	movl	(%rax), %ebx
	leal	7(%rbx), %ecx
	addl	$14, %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$3, %ebx
	leal	-4(%rbx), %r14d
	movq	40(%r15), %rdi
	movq	8(%rax), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	leal	-32(,%rbx,8), %eax
	movl	%eax, 24(%r15)
	movq	%r12, %rbx
	movq	24(%r12), %r12
	movq	%r12, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_crypto_aead_ivsize
	leaq	36(%r15), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
	leaq	32(%r15), %rdi
	movq	16(%rbx), %rax
	shlq	$2, %r14
	addq	8(%rax), %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	16(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 28(%r15)
	cmpq	$0, 24(%rsi)
	je	LBB0_1
## %bb.2:
	movq	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	16(%rsi), %ecx
	movl	%ecx, 16(%r15)
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.3:
	movq	_MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %eax
LBB0_4:
	movl	(%rsi), %ecx
	movl	%ecx, 12(%r15)
	movq	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	movq	_XFRM_OFFLOAD_INBOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rdx), %ecx
	jne	LBB0_5
## %bb.6:
	movq	_MLX5_ACCEL_ESP_ACTION_ENCRYPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_MLX5_ACCEL_ESP_ACTION_DECRYPT@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r15)
	movq	(%rdx), %rcx
	movq	_XFRM_MODE_TRANSPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.9:
	movq	_MLX5_ACCEL_ESP_FLAGS_TRANSPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_MLX5_ACCEL_ESP_FLAGS_TUNNEL@GOTPCREL(%rip), %rcx
LBB0_10:
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED,4,2 ## @MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED
	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP,4,2 ## @MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP
	.comm	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM,4,2 ## @MLX5_ACCEL_ESP_KEYMAT_AES_GCM
	.comm	_XFRM_OFFLOAD_INBOUND,4,2       ## @XFRM_OFFLOAD_INBOUND
	.comm	_MLX5_ACCEL_ESP_ACTION_ENCRYPT,4,2 ## @MLX5_ACCEL_ESP_ACTION_ENCRYPT
	.comm	_MLX5_ACCEL_ESP_ACTION_DECRYPT,4,2 ## @MLX5_ACCEL_ESP_ACTION_DECRYPT
	.comm	_XFRM_MODE_TRANSPORT,8,3        ## @XFRM_MODE_TRANSPORT
	.comm	_MLX5_ACCEL_ESP_FLAGS_TRANSPORT,4,2 ## @MLX5_ACCEL_ESP_FLAGS_TRANSPORT
	.comm	_MLX5_ACCEL_ESP_FLAGS_TUNNEL,4,2 ## @MLX5_ACCEL_ESP_FLAGS_TUNNEL
	.no_dead_strip	_mlx5e_ipsec_build_accel_xfrm_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_ipsec_build_accel_xfrm_attrs
_mlx5e_ipsec_build_accel_xfrm_attrs:    ; @mlx5e_ipsec_build_accel_xfrm_attrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #32]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x24, #16]
	ldr	w9, [x8]
	add	w10, w9, #7
	add	w9, w9, #14
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #3
	sub	w21, w9, #4
	ldr	x0, [x19, #40]
	ldr	x1, [x8, #8]
	mov	x2, x21
	bl	_memcpy
	lsl	w8, w21, #3
	str	w8, [x19, #24]
	ldr	x22, [x24, #24]
	mov	x0, x22
	bl	_crypto_aead_ctx
	mov	x23, x0
	mov	x0, x22
	bl	_crypto_aead_ivsize
	mov	x2, x0
	add	x0, x19, #36
	mov	x1, x23
	bl	_memcpy
	add	x0, x19, #32
	ldr	x8, [x24, #16]
	ldr	x8, [x8, #8]
	add	x1, x8, w21, uxtw #2
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x24, #16]
	ldr	w8, [x8, #4]
	str	w8, [x19, #28]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20, #16]
	str	w9, [x19, #16]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
LBB0_4:
	ldr	w9, [x20]
Lloh6:
	adrp	x10, _MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #8]
	ldr	w9, [x24, #8]
Lloh9:
	adrp	x10, _XFRM_OFFLOAD_INBOUND@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XFRM_OFFLOAD_INBOUND@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MLX5_ACCEL_ESP_ACTION_ENCRYPT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MLX5_ACCEL_ESP_ACTION_ENCRYPT@GOTPAGEOFF]
Lloh13:
	adrp	x12, _MLX5_ACCEL_ESP_ACTION_DECRYPT@GOTPAGE
Lloh14:
	ldr	x12, [x12, _MLX5_ACCEL_ESP_ACTION_DECRYPT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	str	w9, [x19, #4]
	ldr	x9, [x24]
Lloh16:
	adrp	x10, _XFRM_MODE_TRANSPORT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _XFRM_MODE_TRANSPORT@GOTPAGEOFF]
Lloh18:
	adrp	x11, _MLX5_ACCEL_ESP_FLAGS_TRANSPORT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MLX5_ACCEL_ESP_FLAGS_TRANSPORT@GOTPAGEOFF]
Lloh20:
	adrp	x12, _MLX5_ACCEL_ESP_FLAGS_TUNNEL@GOTPAGE
Lloh21:
	ldr	x12, [x12, _MLX5_ACCEL_ESP_FLAGS_TUNNEL@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh22
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED,4,2 ; @MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED
	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP,4,2 ; @MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP
	.comm	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM,4,2 ; @MLX5_ACCEL_ESP_KEYMAT_AES_GCM
	.comm	_XFRM_OFFLOAD_INBOUND,4,2       ; @XFRM_OFFLOAD_INBOUND
	.comm	_MLX5_ACCEL_ESP_ACTION_ENCRYPT,4,2 ; @MLX5_ACCEL_ESP_ACTION_ENCRYPT
	.comm	_MLX5_ACCEL_ESP_ACTION_DECRYPT,4,2 ; @MLX5_ACCEL_ESP_ACTION_DECRYPT
	.comm	_XFRM_MODE_TRANSPORT,8,3        ; @XFRM_MODE_TRANSPORT
	.comm	_MLX5_ACCEL_ESP_FLAGS_TRANSPORT,4,2 ; @MLX5_ACCEL_ESP_FLAGS_TRANSPORT
	.comm	_MLX5_ACCEL_ESP_FLAGS_TUNNEL,4,2 ; @MLX5_ACCEL_ESP_FLAGS_TUNNEL
	.no_dead_strip	_mlx5e_ipsec_build_accel_xfrm_attrs
.subsections_via_symbols
