	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_xfrm_add_state
_mlx5e_xfrm_add_state:                  ## @mlx5e_xfrm_add_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_mlx5e_xfrm_validate_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movl	4(%r15), %eax
	movl	%eax, 12(%r14)
	movq	_XFRM_OFFLOAD_INBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_mlx5e_ipsec_sadb_rx_add
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_netdev_info
	jmp	LBB0_19
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_XFRM_STATE_ESN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	40(%r12), %eax
	jne	LBB0_7
## %bb.8:
	movq	_mlx5e_ipsec_set_iv@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_mlx5e_ipsec_set_iv_esn@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_10:
	movq	%r14, %rdi
	callq	_mlx5e_ipsec_update_esn_state
	leaq	-88(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx5e_ipsec_build_accel_xfrm_attrs
	movl	(%r15), %edi
	movq	_MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_mlx5_accel_esp_create_xfrm
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_12:
	movq	48(%r12), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movl	60(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	32(%r12), %eax
	movl	%eax, -68(%rbp)
	xorl	%r9d, %r9d
	jmp	LBB0_15
LBB0_14:
	movl	56(%r12), %esi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movl	28(%r12), %esi
	leaq	-80(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movl	$1, %r9d
LBB0_15:
	movl	24(%r12), %r8d
	movl	(%r15), %edi
	movl	(%r14), %esi
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	callq	_mlx5_accel_esp_create_hw_context
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_mlx5_accel_esp_destroy_xfrm
LBB0_17:
	movq	_XFRM_OFFLOAD_INBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_mlx5e_ipsec_sadb_rx_del
	movq	%r14, %rdi
	callq	_mlx5e_ipsec_sadb_rx_free
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r14, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_XFRM_OFFLOAD_INBOUND,4,2       ## @XFRM_OFFLOAD_INBOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed adding to SADB_RX: %d\n"

	.comm	_XFRM_STATE_ESN,4,2             ## @XFRM_STATE_ESN
	.comm	_mlx5e_ipsec_set_iv_esn,4,2     ## @mlx5e_ipsec_set_iv_esn
	.comm	_mlx5e_ipsec_set_iv,4,2         ## @mlx5e_ipsec_set_iv
	.comm	_MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA,4,2 ## @MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA
	.comm	_AF_INET,8,3                    ## @AF_INET
	.no_dead_strip	_mlx5e_xfrm_add_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_add_state
_mlx5e_xfrm_add_state:                  ; @mlx5e_xfrm_add_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x23, [x0, #16]
	stp	xzr, xzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	mov	x0, x23
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_mlx5e_xfrm_validate_state
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #16]
	ldr	w8, [x21, #4]
	str	w8, [x0, #12]
	ldr	w8, [x20]
Lloh6:
	adrp	x24, _XFRM_OFFLOAD_INBOUND@GOTPAGE
Lloh7:
	ldr	x24, [x24, _XFRM_OFFLOAD_INBOUND@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mlx5e_ipsec_sadb_rx_add
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_netdev_info
	b	LBB0_16
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_6:
	ldr	w8, [x20, #40]
Lloh13:
	adrp	x9, _XFRM_STATE_ESN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XFRM_STATE_ESN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _mlx5e_ipsec_set_iv_esn@GOTPAGE
Lloh17:
	ldr	x10, [x10, _mlx5e_ipsec_set_iv_esn@GOTPAGEOFF]
Lloh18:
	adrp	x11, _mlx5e_ipsec_set_iv@GOTPAGE
Lloh19:
	ldr	x11, [x11, _mlx5e_ipsec_set_iv@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_7:
	mov	x0, x19
	bl	_mlx5e_ipsec_update_esn_state
	mov	x1, sp
	mov	x0, x19
	bl	_mlx5e_ipsec_build_accel_xfrm_attrs
	ldr	w0, [x21]
Lloh20:
	adrp	x8, _MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_mlx5_accel_esp_create_xfrm
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_14
LBB0_9:
	ldr	x8, [x20, #48]
Lloh23:
	adrp	x9, _AF_INET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w5, #0
	ldr	w8, [x20, #60]
	str	w8, [sp, #36]
	ldr	w8, [x20, #32]
	str	w8, [sp, #20]
	b	LBB0_12
LBB0_11:
	ldr	w1, [x20, #56]
	add	x0, sp, #24
	mov	w2, #16
	bl	_memcpy
	ldr	w1, [x20, #28]
	add	x0, sp, #8
	mov	w2, #16
	bl	_memcpy
	mov	w5, #1
LBB0_12:
	ldr	w4, [x20, #24]
	ldr	w0, [x21]
	ldr	w1, [x19]
	add	x2, sp, #24
	add	x3, sp, #8
	bl	_mlx5_accel_esp_create_hw_context
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.13:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	w0, [x19]
	bl	_mlx5_accel_esp_destroy_xfrm
LBB0_14:
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_mlx5e_ipsec_sadb_rx_del
	mov	x0, x19
	bl	_mlx5e_ipsec_sadb_rx_free
LBB0_16:
	mov	x0, x19
	bl	_kfree
LBB0_17:
	ldr	x8, [sp, #40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	w22, #0
	str	x19, [x20, #8]
	b	LBB0_17
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_XFRM_OFFLOAD_INBOUND,4,2       ; @XFRM_OFFLOAD_INBOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed adding to SADB_RX: %d\n"

	.comm	_XFRM_STATE_ESN,4,2             ; @XFRM_STATE_ESN
	.comm	_mlx5e_ipsec_set_iv_esn,4,2     ; @mlx5e_ipsec_set_iv_esn
	.comm	_mlx5e_ipsec_set_iv,4,2         ; @mlx5e_ipsec_set_iv
	.comm	_MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA,4,2 ; @MLX5_ACCEL_XFRM_FLAG_REQUIRE_METADATA
	.comm	_AF_INET,8,3                    ; @AF_INET
	.no_dead_strip	_mlx5e_xfrm_add_state
.subsections_via_symbols
