	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_ipsec_tx                  ## -- Begin function nsim_ipsec_tx
	.p2align	4, 0x90
_nsim_ipsec_tx:                         ## @nsim_ipsec_tx
	.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, %r14
	movq	%rsi, %rdi
	callq	_skb_sec_path
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_3:
	movq	%r15, %rdi
	callq	_xfrm_input_state
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdx
LBB0_13:
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_NSIM_IPSEC_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	notq	%r12
	andq	8(%r15), %r12
	movq	_NSIM_IPSEC_MAX_SA_COUNT@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %r12
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_15
LBB0_7:
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%r12,4)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdx
	jmp	LBB0_13
LBB0_9:
	movq	(%r15), %rdx
	movq	_IPPROTO_ESP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_14
## %bb.10:
	movq	_IPPROTO_AH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_14
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_14:
	incl	8(%r14)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no xfrm state len = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"no xfrm_input_state() xs = %p\n"

	.comm	_NSIM_IPSEC_VALID,8,3           ## @NSIM_IPSEC_VALID
	.comm	_NSIM_IPSEC_MAX_SA_COUNT,8,3    ## @NSIM_IPSEC_MAX_SA_COUNT
L_.str.2:                               ## @.str.2
	.asciz	"bad sa_idx=%d max=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"unused sa_idx=%d\n"

	.comm	_IPPROTO_ESP,8,3                ## @IPPROTO_ESP
	.comm	_IPPROTO_AH,8,3                 ## @IPPROTO_AH
L_.str.4:                               ## @.str.4
	.asciz	"unexpected proto=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_ipsec_tx                  ; -- Begin function nsim_ipsec_tx
	.p2align	2
_nsim_ipsec_tx:                         ; @nsim_ipsec_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_sec_path
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	bl	_xfrm_input_state
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_5:
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _NSIM_IPSEC_VALID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NSIM_IPSEC_VALID@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	bic	x21, x8, x9
Lloh7:
	adrp	x22, _NSIM_IPSEC_MAX_SA_COUNT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _NSIM_IPSEC_MAX_SA_COUNT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x21, x8
	cset	w0, hs
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	ldr	x8, [x22]
	stp	x21, x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _IPPROTO_ESP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPPROTO_ESP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _IPPROTO_AH@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IPPROTO_AH@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_11:
	mov	w0, #1
	b	LBB0_14
LBB0_12:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	bl	_netdev_err
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no xfrm state len = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"no xfrm_input_state() xs = %p\n"

	.comm	_NSIM_IPSEC_VALID,8,3           ; @NSIM_IPSEC_VALID
	.comm	_NSIM_IPSEC_MAX_SA_COUNT,8,3    ; @NSIM_IPSEC_MAX_SA_COUNT
l_.str.2:                               ; @.str.2
	.asciz	"bad sa_idx=%d max=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"unused sa_idx=%d\n"

	.comm	_IPPROTO_ESP,8,3                ; @IPPROTO_ESP
	.comm	_IPPROTO_AH,8,3                 ; @IPPROTO_AH
l_.str.4:                               ; @.str.4
	.asciz	"unexpected proto=%d\n"

.subsections_via_symbols
