	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_xfrm_validate_state
_mlx5e_xfrm_validate_state:             ## @mlx5e_xfrm_validate_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	88(%rdi), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_SADB_AALG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_SADB_X_EALG_AES_GCM_ICV16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	16(%rbx), %rax
	movq	_SADB_X_CALG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_XFRM_STATE_ESN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_9
## %bb.7:
	movl	(%r15), %edi
	callq	_mlx5_accel_ipsec_device_caps
	movq	_MLX5_ACCEL_IPSEC_CAP_ESN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_9:
	movq	32(%rbx), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movq	_AF_INET6@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_35
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_35
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_35
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_35:
	movq	%r14, %rdi
	callq	_netdev_info
LBB0_36:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_37:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	40(%rbx), %rax
	movq	_XFRM_MODE_TRANSPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:
	movq	_XFRM_MODE_TUNNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_36
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_35
LBB0_15:
	movq	80(%rbx), %rax
	movq	_IPPROTO_ESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.17:
	cmpq	$0, 72(%rbx)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_35
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_35
LBB0_19:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	cmpl	$128, (%rax)
	jne	LBB0_22
## %bb.23:
	movl	4(%rax), %eax
	cmpl	$160, %eax
	je	LBB0_26
## %bb.24:
	cmpl	$288, %eax                      ## imm = 0x120
	jne	LBB0_25
LBB0_26:
	cmpq	$0, 56(%rbx)
	je	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_35
LBB0_20:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_35
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_35
LBB0_25:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_35
LBB0_28:
	movl	48(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_29
## %bb.30:
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_35
LBB0_29:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_35
LBB0_32:
	movq	32(%rbx), %rax
	xorl	%ebx, %ebx
	cmpq	(%r12), %rax
	jne	LBB0_37
## %bb.33:
	movl	(%r15), %edi
	callq	_mlx5_accel_ipsec_device_caps
	movq	_MLX5_ACCEL_IPSEC_CAP_IPV6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_37
## %bb.34:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_AALG_NONE,8,3             ## @SADB_AALG_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot offload authenticated xfrm states\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SADB_X_EALG_AES_GCM_ICV16,8,3  ## @SADB_X_EALG_AES_GCM_ICV16
L_.str.1:                               ## @.str.1
	.asciz	"Only AES-GCM-ICV16 xfrm state may be offloaded\n"

	.comm	_SADB_X_CALG_NONE,8,3           ## @SADB_X_CALG_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Cannot offload compressed xfrm states\n"

	.comm	_XFRM_STATE_ESN,4,2             ## @XFRM_STATE_ESN
	.comm	_MLX5_ACCEL_IPSEC_CAP_ESN,4,2   ## @MLX5_ACCEL_IPSEC_CAP_ESN
L_.str.3:                               ## @.str.3
	.asciz	"Cannot offload ESN xfrm states\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.4:                               ## @.str.4
	.asciz	"Only IPv4/6 xfrm states may be offloaded\n"

	.comm	_XFRM_MODE_TRANSPORT,8,3        ## @XFRM_MODE_TRANSPORT
	.comm	_XFRM_MODE_TUNNEL,8,3           ## @XFRM_MODE_TUNNEL
L_.str.5:                               ## @.str.5
	.asciz	"Only transport and tunnel xfrm states may be offloaded\n"

	.comm	_IPPROTO_ESP,8,3                ## @IPPROTO_ESP
L_.str.6:                               ## @.str.6
	.asciz	"Only ESP xfrm state may be offloaded\n"

L_.str.7:                               ## @.str.7
	.asciz	"Encapsulated xfrm state may not be offloaded\n"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot offload xfrm states without aead\n"

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

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

L_.str.11:                              ## @.str.11
	.asciz	"Cannot offload xfrm states with tfc padding\n"

L_.str.12:                              ## @.str.12
	.asciz	"Cannot offload xfrm states without geniv\n"

L_.str.13:                              ## @.str.13
	.asciz	"seqiv"

L_.str.14:                              ## @.str.14
	.asciz	"Cannot offload xfrm states with geniv other than seqiv\n"

	.comm	_MLX5_ACCEL_IPSEC_CAP_IPV6,4,2  ## @MLX5_ACCEL_IPSEC_CAP_IPV6
L_.str.15:                              ## @.str.15
	.asciz	"IPv6 xfrm state offload is not supported by this device\n"

	.no_dead_strip	_mlx5e_xfrm_validate_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_xfrm_validate_state
_mlx5e_xfrm_validate_state:             ; @mlx5e_xfrm_validate_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #88]
	mov	x0, x19
	bl	_netdev_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SADB_AALG_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SADB_AALG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _SADB_X_EALG_AES_GCM_ICV16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SADB_X_EALG_AES_GCM_ICV16@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _SADB_X_CALG_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SADB_X_CALG_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	mov	x21, x0
	ldr	w8, [x20, #24]
Lloh9:
	adrp	x9, _XFRM_STATE_ESN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XFRM_STATE_ESN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_mlx5_accel_ipsec_device_caps
Lloh12:
	adrp	x8, _MLX5_ACCEL_IPSEC_CAP_ESN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX5_ACCEL_IPSEC_CAP_ESN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
LBB0_5:
	ldr	x9, [x20, #32]
Lloh15:
	adrp	x8, _AF_INET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x8]
Lloh18:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_12
; %bb.6:
	ldr	x8, [x20, #40]
Lloh21:
	adrp	x9, _XFRM_MODE_TRANSPORT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _XFRM_MODE_TRANSPORT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.7:
Lloh24:
	adrp	x9, _XFRM_MODE_TUNNEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _XFRM_MODE_TUNNEL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.8:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_19
LBB0_9:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_10:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_11:
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_12:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_13:
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_14:
	ldr	x8, [x20, #80]
Lloh39:
	adrp	x9, _IPPROTO_ESP@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IPPROTO_ESP@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_21
; %bb.16:
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_netdev_info
LBB0_19:
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_27
; %bb.22:
	ldr	w9, [x8]
	cmp	w9, #128
	b.ne	LBB0_28
; %bb.23:
	ldr	w8, [x8, #4]
	cmp	w8, #160
	b.eq	LBB0_25
; %bb.24:
	cmp	w8, #288
	b.ne	LBB0_29
LBB0_25:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_30
; %bb.26:
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_18
LBB0_27:
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_28:
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_18
LBB0_29:
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_18
LBB0_30:
	ldr	w0, [x20, #48]
	cbz	w0, LBB0_33
; %bb.31:
Lloh57:
	adrp	x1, l_.str.13@PAGE
Lloh58:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_34
; %bb.32:
Lloh59:
	adrp	x1, l_.str.14@PAGE
Lloh60:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_18
LBB0_33:
Lloh61:
	adrp	x1, l_.str.12@PAGE
Lloh62:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_18
LBB0_34:
	ldr	x9, [x20, #32]
Lloh63:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	ldr	w0, [x21]
	bl	_mlx5_accel_ipsec_device_caps
Lloh66:
	adrp	x8, _MLX5_ACCEL_IPSEC_CAP_IPV6@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MLX5_ACCEL_IPSEC_CAP_IPV6@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_37
LBB0_36:
	mov	w0, #0
	b	LBB0_20
LBB0_37:
Lloh69:
	adrp	x1, l_.str.15@PAGE
Lloh70:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_AALG_NONE,8,3             ; @SADB_AALG_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot offload authenticated xfrm states\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SADB_X_EALG_AES_GCM_ICV16,8,3  ; @SADB_X_EALG_AES_GCM_ICV16
l_.str.1:                               ; @.str.1
	.asciz	"Only AES-GCM-ICV16 xfrm state may be offloaded\n"

	.comm	_SADB_X_CALG_NONE,8,3           ; @SADB_X_CALG_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Cannot offload compressed xfrm states\n"

	.comm	_XFRM_STATE_ESN,4,2             ; @XFRM_STATE_ESN
	.comm	_MLX5_ACCEL_IPSEC_CAP_ESN,4,2   ; @MLX5_ACCEL_IPSEC_CAP_ESN
l_.str.3:                               ; @.str.3
	.asciz	"Cannot offload ESN xfrm states\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.4:                               ; @.str.4
	.asciz	"Only IPv4/6 xfrm states may be offloaded\n"

	.comm	_XFRM_MODE_TRANSPORT,8,3        ; @XFRM_MODE_TRANSPORT
	.comm	_XFRM_MODE_TUNNEL,8,3           ; @XFRM_MODE_TUNNEL
l_.str.5:                               ; @.str.5
	.asciz	"Only transport and tunnel xfrm states may be offloaded\n"

	.comm	_IPPROTO_ESP,8,3                ; @IPPROTO_ESP
l_.str.6:                               ; @.str.6
	.asciz	"Only ESP xfrm state may be offloaded\n"

l_.str.7:                               ; @.str.7
	.asciz	"Encapsulated xfrm state may not be offloaded\n"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot offload xfrm states without aead\n"

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

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

l_.str.11:                              ; @.str.11
	.asciz	"Cannot offload xfrm states with tfc padding\n"

l_.str.12:                              ; @.str.12
	.asciz	"Cannot offload xfrm states without geniv\n"

l_.str.13:                              ; @.str.13
	.asciz	"seqiv"

l_.str.14:                              ; @.str.14
	.asciz	"Cannot offload xfrm states with geniv other than seqiv\n"

	.comm	_MLX5_ACCEL_IPSEC_CAP_IPV6,4,2  ; @MLX5_ACCEL_IPSEC_CAP_IPV6
l_.str.15:                              ; @.str.15
	.asciz	"IPv6 xfrm state offload is not supported by this device\n"

	.no_dead_strip	_mlx5e_xfrm_validate_state
.subsections_via_symbols
