	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_esp_validate_xfrm_attrs
_mlx5_fpga_esp_validate_xfrm_attrs:     ## @mlx5_fpga_esp_validate_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 40(%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_2:
	movq	(%rsi), %rax
	movq	_MLX5_ACCEL_ESP_REPLAY_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	8(%rsi), %rax
	movq	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	24(%rsi), %rax
	movq	_MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	cmpl	$128, 32(%rsi)
	jne	LBB0_9
## %bb.10:
	movl	36(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.11:
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_14
LBB0_12:
	movq	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, 16(%rsi)
	je	LBB0_16
## %bb.13:
	movq	_ipsec_extended_cap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_v2_command@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_GET
	testl	%eax, %eax
	jne	LBB0_16
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_mlx5_core_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot offload xfrm states with tfc padding\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX5_ACCEL_ESP_REPLAY_NONE,8,3 ## @MLX5_ACCEL_ESP_REPLAY_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot offload xfrm states with anti replay\n"

	.comm	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM,8,3 ## @MLX5_ACCEL_ESP_KEYMAT_AES_GCM
L_.str.2:                               ## @.str.2
	.asciz	"Only aes gcm keymat is supported\n"

	.comm	_MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ,8,3 ## @MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ
L_.str.3:                               ## @.str.3
	.asciz	"Only iv sequence algo is supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot offload xfrm states with AEAD ICV length other than 128bit\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot offload xfrm states with AEAD key length other than 128/256 bit\n"

	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED,4,2 ## @MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED
	.comm	_ipsec_extended_cap,4,2         ## @ipsec_extended_cap
	.comm	_v2_command,4,2                 ## @v2_command
	.no_dead_strip	_mlx5_fpga_esp_validate_xfrm_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_esp_validate_xfrm_attrs
_mlx5_fpga_esp_validate_xfrm_attrs:     ; @mlx5_fpga_esp_validate_xfrm_attrs
	.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
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_2:
	ldr	x8, [x1]
Lloh2:
	adrp	x9, _MLX5_ACCEL_ESP_REPLAY_NONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_ACCEL_ESP_REPLAY_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x1, #8]
Lloh5:
	adrp	x9, _MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX5_ACCEL_ESP_KEYMAT_AES_GCM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x1, #24]
Lloh8:
	adrp	x9, _MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.5:
	ldr	w8, [x1, #32]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.6:
	ldr	w8, [x1, #36]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #256
	b.ne	LBB0_15
LBB0_8:
	ldr	w8, [x1, #16]
Lloh11:
	adrp	x9, _MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh14:
	adrp	x8, _ipsec_extended_cap@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ipsec_extended_cap@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _v2_command@GOTPAGE
Lloh18:
	ldr	x8, [x8, _v2_command@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_MLX5_GET
	cbz	w0, LBB0_15
LBB0_10:
	mov	w0, #0
	b	LBB0_17
LBB0_11:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_12:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_mlx5_core_err
Lloh30:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot offload xfrm states with tfc padding\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX5_ACCEL_ESP_REPLAY_NONE,8,3 ; @MLX5_ACCEL_ESP_REPLAY_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot offload xfrm states with anti replay\n"

	.comm	_MLX5_ACCEL_ESP_KEYMAT_AES_GCM,8,3 ; @MLX5_ACCEL_ESP_KEYMAT_AES_GCM
l_.str.2:                               ; @.str.2
	.asciz	"Only aes gcm keymat is supported\n"

	.comm	_MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ,8,3 ; @MLX5_ACCEL_ESP_AES_GCM_IV_ALGO_SEQ
l_.str.3:                               ; @.str.3
	.asciz	"Only iv sequence algo is supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot offload xfrm states with AEAD ICV length other than 128bit\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot offload xfrm states with AEAD key length other than 128/256 bit\n"

	.comm	_MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED,4,2 ; @MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED
	.comm	_ipsec_extended_cap,4,2         ; @ipsec_extended_cap
	.comm	_v2_command,4,2                 ; @v2_command
	.no_dead_strip	_mlx5_fpga_esp_validate_xfrm_attrs
.subsections_via_symbols
