	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_ipsec_parse_proto_keys
_nsim_ipsec_parse_proto_keys:           ## @nsim_ipsec_parse_proto_keys
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.nsim_ipsec_parse_proto_keys.aes_gcm_name(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movw	$41, -64(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rdx, %r13
	movq	_NSIM_IPSEC_AUTH_BITS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	%rsi, %r15
	movq	8(%rax), %r12
	movl	16(%rax), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	24(%rax), %rdi
	leaq	-80(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.15:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %ecx
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	jle	LBB0_13
## %bb.9:
	movl	16(%r12), %eax
	jmp	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jne	LBB0_14
LBB0_10:
	movl	%eax, (%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.nsim_ipsec_parse_proto_keys.aes_gcm_name
L___const.nsim_ipsec_parse_proto_keys.aes_gcm_name:
	.asciz	"rfc4106(gcm(aes))"

L_.str:                                 ## @.str
	.asciz	"Unsupported IPsec algorithm\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NSIM_IPSEC_AUTH_BITS,4,2       ## @NSIM_IPSEC_AUTH_BITS
L_.str.1:                               ## @.str.1
	.asciz	"IPsec offload requires %d bit authentication\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported IPsec algorithm - please use %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"IPsec hw offload only supports 128 bit keys with optional 32 bit salt\n"

	.no_dead_strip	_nsim_ipsec_parse_proto_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_ipsec_parse_proto_keys
_nsim_ipsec_parse_proto_keys:           ; @nsim_ipsec_parse_proto_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.nsim_ipsec_parse_proto_keys.aes_gcm_name@PAGE
Lloh4:
	add	x8, x8, l___const.nsim_ipsec_parse_proto_keys.aes_gcm_name@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	mov	w8, #41
	strh	w8, [sp, #32]
	ldp	x8, x21, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w10, [x8]
Lloh6:
	adrp	x23, _NSIM_IPSEC_AUTH_BITS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NSIM_IPSEC_AUTH_BITS@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w10, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x8, #8]
	ldr	w24, [x8, #16]
	ldr	x0, [x8, #24]
	add	x25, sp, #16
	add	x1, sp, #16
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.3:
	str	x25, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	str	x9, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_netdev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	w8, [x23]
	cmp	w24, w8
	b.le	LBB0_11
; %bb.10:
	ldr	w8, [x22, #16]
	b	LBB0_13
LBB0_11:
	b.ne	LBB0_14
; %bb.12:
	mov	w8, #0
LBB0_13:
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	b	LBB0_7
LBB0_14:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.nsim_ipsec_parse_proto_keys.aes_gcm_name: ; @__const.nsim_ipsec_parse_proto_keys.aes_gcm_name
	.asciz	"rfc4106(gcm(aes))"

l_.str:                                 ; @.str
	.asciz	"Unsupported IPsec algorithm\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NSIM_IPSEC_AUTH_BITS,4,2       ; @NSIM_IPSEC_AUTH_BITS
l_.str.1:                               ; @.str.1
	.asciz	"IPsec offload requires %d bit authentication\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported IPsec algorithm - please use %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"IPsec hw offload only supports 128 bit keys with optional 32 bit salt\n"

	.no_dead_strip	_nsim_ipsec_parse_proto_keys
.subsections_via_symbols
