	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_add_rxsa
_validate_add_rxsa:                     ## @validate_add_rxsa
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MACSEC_SA_ATTR_AN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi,%rax,8), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	_MACSEC_SA_ATTR_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_9
## %bb.2:
	movq	_MACSEC_SA_ATTR_KEYID@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_9
## %bb.3:
	callq	_nla_get_u8
	movq	_MACSEC_NUM_AN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.4:
	movq	_MACSEC_SA_ATTR_PN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nla_get_u32
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	_MACSEC_SA_ATTR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_nla_get_u8
	cmpl	$1, %eax
	jg	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_len
	movq	_MACSEC_KEYID_LEN@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MACSEC_SA_ATTR_AN,8,3          ## @MACSEC_SA_ATTR_AN
	.comm	_MACSEC_SA_ATTR_KEY,8,3         ## @MACSEC_SA_ATTR_KEY
	.comm	_MACSEC_SA_ATTR_KEYID,8,3       ## @MACSEC_SA_ATTR_KEYID
	.comm	_MACSEC_NUM_AN,4,2              ## @MACSEC_NUM_AN
	.comm	_MACSEC_SA_ATTR_PN,8,3          ## @MACSEC_SA_ATTR_PN
	.comm	_MACSEC_SA_ATTR_ACTIVE,8,3      ## @MACSEC_SA_ATTR_ACTIVE
	.comm	_MACSEC_KEYID_LEN,8,3           ## @MACSEC_KEYID_LEN
	.no_dead_strip	_validate_add_rxsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_add_rxsa
_validate_add_rxsa:                     ; @validate_add_rxsa
	.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
Lloh0:
	adrp	x8, _MACSEC_SA_ATTR_AN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MACSEC_SA_ATTR_AN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x0, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _MACSEC_SA_ATTR_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MACSEC_SA_ATTR_KEY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_8
; %bb.2:
Lloh6:
	adrp	x20, _MACSEC_SA_ATTR_KEYID@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MACSEC_SA_ATTR_KEYID@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_8
; %bb.3:
	bl	_nla_get_u8
Lloh8:
	adrp	x8, _MACSEC_NUM_AN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACSEC_NUM_AN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _MACSEC_SA_ATTR_PN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MACSEC_SA_ATTR_PN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nla_get_u32
	cbz	x0, LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _MACSEC_SA_ATTR_ACTIVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MACSEC_SA_ATTR_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.7:
	bl	_nla_get_u8
	cmp	w0, #1
	b.le	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x20]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_len
Lloh17:
	adrp	x8, _MACSEC_KEYID_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MACSEC_KEYID_LEN@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MACSEC_SA_ATTR_AN,8,3          ; @MACSEC_SA_ATTR_AN
	.comm	_MACSEC_SA_ATTR_KEY,8,3         ; @MACSEC_SA_ATTR_KEY
	.comm	_MACSEC_SA_ATTR_KEYID,8,3       ; @MACSEC_SA_ATTR_KEYID
	.comm	_MACSEC_NUM_AN,4,2              ; @MACSEC_NUM_AN
	.comm	_MACSEC_SA_ATTR_PN,8,3          ; @MACSEC_SA_ATTR_PN
	.comm	_MACSEC_SA_ATTR_ACTIVE,8,3      ; @MACSEC_SA_ATTR_ACTIVE
	.comm	_MACSEC_KEYID_LEN,8,3           ; @MACSEC_KEYID_LEN
	.no_dead_strip	_validate_add_rxsa
.subsections_via_symbols
