	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_alloc_kay_sm        ## -- Begin function ieee802_1x_alloc_kay_sm
	.p2align	4, 0x90
_ieee802_1x_alloc_kay_sm:               ## @ieee802_1x_alloc_kay_sm
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_ieee802_1x_dealloc_kay_sm
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.4:
	cmpl	$1, 4(%r15)
	jne	LBB0_5
## %bb.6:
	movq	_SHOULD_SECURE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_DO_NOT_SECURE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_SHOULD_ENCRYPT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movl	$104, %edi
	callq	_os_zalloc
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, 96(%rax)
	movq	_wpas_macsec_init@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 92(%rax)
	movq	_wpas_macsec_deinit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 88(%rax)
	movq	_wpas_macsec_get_capability@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 84(%rax)
	movq	_wpas_enable_protect_frames@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%rax)
	movq	_wpas_enable_encrypt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%rax)
	movq	_wpas_set_replay_protect@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%rax)
	movq	_wpas_set_current_cipher_suite@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%rax)
	movq	_wpas_enable_controlled_port@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%rax)
	movq	_wpas_get_receive_lowest_pn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rax)
	movq	_wpas_get_transmit_next_pn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	_wpas_set_transmit_next_pn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rax)
	movq	_wpas_set_receive_lowest_pn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	_wpas_create_receive_sc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movq	_wpas_delete_receive_sc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_wpas_create_receive_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_wpas_delete_receive_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_wpas_enable_receive_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_wpas_disable_receive_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_wpas_create_transmit_sc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_wpas_delete_transmit_sc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_wpas_create_transmit_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_wpas_delete_transmit_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_wpas_enable_transmit_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_wpas_disable_transmit_sa@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	20(%r15), %edx
	movl	16(%r15), %ecx
	movl	8(%r15), %r9d
	movl	12(%r15), %r8d
	movl	8(%r14), %r10d
	movl	12(%r14), %r11d
	movq	%rax, %rdi
	movl	%r12d, %esi
	pushq	%r10
	pushq	%r11
	callq	_ieee802_1x_kay_init
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHOULD_SECURE,4,2              ## @SHOULD_SECURE
	.comm	_SHOULD_ENCRYPT,4,2             ## @SHOULD_ENCRYPT
	.comm	_DO_NOT_SECURE,4,2              ## @DO_NOT_SECURE
	.comm	_wpas_macsec_init,4,2           ## @wpas_macsec_init
	.comm	_wpas_macsec_deinit,4,2         ## @wpas_macsec_deinit
	.comm	_wpas_macsec_get_capability,4,2 ## @wpas_macsec_get_capability
	.comm	_wpas_enable_protect_frames,4,2 ## @wpas_enable_protect_frames
	.comm	_wpas_enable_encrypt,4,2        ## @wpas_enable_encrypt
	.comm	_wpas_set_replay_protect,4,2    ## @wpas_set_replay_protect
	.comm	_wpas_set_current_cipher_suite,4,2 ## @wpas_set_current_cipher_suite
	.comm	_wpas_enable_controlled_port,4,2 ## @wpas_enable_controlled_port
	.comm	_wpas_get_receive_lowest_pn,4,2 ## @wpas_get_receive_lowest_pn
	.comm	_wpas_get_transmit_next_pn,4,2  ## @wpas_get_transmit_next_pn
	.comm	_wpas_set_transmit_next_pn,4,2  ## @wpas_set_transmit_next_pn
	.comm	_wpas_set_receive_lowest_pn,4,2 ## @wpas_set_receive_lowest_pn
	.comm	_wpas_create_receive_sc,4,2     ## @wpas_create_receive_sc
	.comm	_wpas_delete_receive_sc,4,2     ## @wpas_delete_receive_sc
	.comm	_wpas_create_receive_sa,4,2     ## @wpas_create_receive_sa
	.comm	_wpas_delete_receive_sa,4,2     ## @wpas_delete_receive_sa
	.comm	_wpas_enable_receive_sa,4,2     ## @wpas_enable_receive_sa
	.comm	_wpas_disable_receive_sa,4,2    ## @wpas_disable_receive_sa
	.comm	_wpas_create_transmit_sc,4,2    ## @wpas_create_transmit_sc
	.comm	_wpas_delete_transmit_sc,4,2    ## @wpas_delete_transmit_sc
	.comm	_wpas_create_transmit_sa,4,2    ## @wpas_create_transmit_sa
	.comm	_wpas_delete_transmit_sa,4,2    ## @wpas_delete_transmit_sa
	.comm	_wpas_enable_transmit_sa,4,2    ## @wpas_enable_transmit_sa
	.comm	_wpas_disable_transmit_sa,4,2   ## @wpas_disable_transmit_sa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_alloc_kay_sm        ; -- Begin function ieee802_1x_alloc_kay_sm
	.p2align	2
_ieee802_1x_alloc_kay_sm:               ; @ieee802_1x_alloc_kay_sm
	.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, x1
	mov	x19, x0
	bl	_ieee802_1x_dealloc_kay_sm
	cbz	x20, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	cbz	w0, LBB0_10
; %bb.2:
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _SHOULD_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHOULD_ENCRYPT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SHOULD_SECURE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SHOULD_SECURE@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x10, x9, eq
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh4:
	adrp	x8, _DO_NOT_SECURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DO_NOT_SECURE@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
	mov	w0, #104
	bl	_os_zalloc
	cbz	x0, LBB0_9
; %bb.7:
	str	x19, [x0, #96]
Lloh6:
	adrp	x8, _wpas_macsec_init@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wpas_macsec_init@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _wpas_macsec_deinit@GOTPAGE
Lloh10:
	ldr	x9, [x9, _wpas_macsec_deinit@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #88]
Lloh12:
	adrp	x8, _wpas_macsec_get_capability@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wpas_macsec_get_capability@GOTPAGEOFF]
Lloh14:
	adrp	x9, _wpas_enable_protect_frames@GOTPAGE
Lloh15:
	ldr	x9, [x9, _wpas_enable_protect_frames@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #80]
Lloh18:
	adrp	x8, _wpas_enable_encrypt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _wpas_enable_encrypt@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _wpas_set_replay_protect@GOTPAGE
Lloh22:
	ldr	x9, [x9, _wpas_set_replay_protect@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #72]
Lloh24:
	adrp	x8, _wpas_set_current_cipher_suite@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wpas_set_current_cipher_suite@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _wpas_enable_controlled_port@GOTPAGE
Lloh28:
	ldr	x9, [x9, _wpas_enable_controlled_port@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #64]
Lloh30:
	adrp	x8, _wpas_get_receive_lowest_pn@GOTPAGE
Lloh31:
	ldr	x8, [x8, _wpas_get_receive_lowest_pn@GOTPAGEOFF]
Lloh32:
	adrp	x9, _wpas_get_transmit_next_pn@GOTPAGE
Lloh33:
	ldr	x9, [x9, _wpas_get_transmit_next_pn@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
Lloh36:
	adrp	x8, _wpas_set_transmit_next_pn@GOTPAGE
Lloh37:
	ldr	x8, [x8, _wpas_set_transmit_next_pn@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _wpas_set_receive_lowest_pn@GOTPAGE
Lloh40:
	ldr	x9, [x9, _wpas_set_receive_lowest_pn@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
Lloh42:
	adrp	x8, _wpas_create_receive_sc@GOTPAGE
Lloh43:
	ldr	x8, [x8, _wpas_create_receive_sc@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _wpas_delete_receive_sc@GOTPAGE
Lloh46:
	ldr	x9, [x9, _wpas_delete_receive_sc@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh48:
	adrp	x8, _wpas_create_receive_sa@GOTPAGE
Lloh49:
	ldr	x8, [x8, _wpas_create_receive_sa@GOTPAGEOFF]
Lloh50:
	adrp	x9, _wpas_delete_receive_sa@GOTPAGE
Lloh51:
	ldr	x9, [x9, _wpas_delete_receive_sa@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh54:
	adrp	x8, _wpas_enable_receive_sa@GOTPAGE
Lloh55:
	ldr	x8, [x8, _wpas_enable_receive_sa@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _wpas_disable_receive_sa@GOTPAGE
Lloh58:
	ldr	x9, [x9, _wpas_disable_receive_sa@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh60:
	adrp	x8, _wpas_create_transmit_sc@GOTPAGE
Lloh61:
	ldr	x8, [x8, _wpas_create_transmit_sc@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _wpas_delete_transmit_sc@GOTPAGE
Lloh64:
	ldr	x9, [x9, _wpas_delete_transmit_sc@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh66:
	adrp	x8, _wpas_create_transmit_sa@GOTPAGE
Lloh67:
	ldr	x8, [x8, _wpas_create_transmit_sa@GOTPAGEOFF]
Lloh68:
	adrp	x9, _wpas_delete_transmit_sa@GOTPAGE
Lloh69:
	ldr	x9, [x9, _wpas_delete_transmit_sa@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh72:
	adrp	x8, _wpas_enable_transmit_sa@GOTPAGE
Lloh73:
	ldr	x8, [x8, _wpas_enable_transmit_sa@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _wpas_disable_transmit_sa@GOTPAGE
Lloh76:
	ldr	x9, [x9, _wpas_disable_transmit_sa@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldp	w3, w2, [x20, #16]
	ldp	w5, w4, [x20, #8]
	ldp	w7, w6, [x19, #8]
	mov	x1, x21
	bl	_ieee802_1x_kay_init
	cbz	x0, LBB0_9
; %bb.8:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh70
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SHOULD_SECURE,4,2              ; @SHOULD_SECURE
	.comm	_SHOULD_ENCRYPT,4,2             ; @SHOULD_ENCRYPT
	.comm	_DO_NOT_SECURE,4,2              ; @DO_NOT_SECURE
	.comm	_wpas_macsec_init,4,2           ; @wpas_macsec_init
	.comm	_wpas_macsec_deinit,4,2         ; @wpas_macsec_deinit
	.comm	_wpas_macsec_get_capability,4,2 ; @wpas_macsec_get_capability
	.comm	_wpas_enable_protect_frames,4,2 ; @wpas_enable_protect_frames
	.comm	_wpas_enable_encrypt,4,2        ; @wpas_enable_encrypt
	.comm	_wpas_set_replay_protect,4,2    ; @wpas_set_replay_protect
	.comm	_wpas_set_current_cipher_suite,4,2 ; @wpas_set_current_cipher_suite
	.comm	_wpas_enable_controlled_port,4,2 ; @wpas_enable_controlled_port
	.comm	_wpas_get_receive_lowest_pn,4,2 ; @wpas_get_receive_lowest_pn
	.comm	_wpas_get_transmit_next_pn,4,2  ; @wpas_get_transmit_next_pn
	.comm	_wpas_set_transmit_next_pn,4,2  ; @wpas_set_transmit_next_pn
	.comm	_wpas_set_receive_lowest_pn,4,2 ; @wpas_set_receive_lowest_pn
	.comm	_wpas_create_receive_sc,4,2     ; @wpas_create_receive_sc
	.comm	_wpas_delete_receive_sc,4,2     ; @wpas_delete_receive_sc
	.comm	_wpas_create_receive_sa,4,2     ; @wpas_create_receive_sa
	.comm	_wpas_delete_receive_sa,4,2     ; @wpas_delete_receive_sa
	.comm	_wpas_enable_receive_sa,4,2     ; @wpas_enable_receive_sa
	.comm	_wpas_disable_receive_sa,4,2    ; @wpas_disable_receive_sa
	.comm	_wpas_create_transmit_sc,4,2    ; @wpas_create_transmit_sc
	.comm	_wpas_delete_transmit_sc,4,2    ; @wpas_delete_transmit_sc
	.comm	_wpas_create_transmit_sa,4,2    ; @wpas_create_transmit_sa
	.comm	_wpas_delete_transmit_sa,4,2    ; @wpas_delete_transmit_sa
	.comm	_wpas_enable_transmit_sa,4,2    ; @wpas_enable_transmit_sa
	.comm	_wpas_disable_transmit_sa,4,2   ; @wpas_disable_transmit_sa
.subsections_via_symbols
