	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_kay_change_cipher_suite ## -- Begin function ieee802_1x_kay_change_cipher_suite
	.p2align	4, 0x90
_ieee802_1x_kay_change_cipher_suite:    ## @ieee802_1x_kay_change_cipher_suite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	_CS_TABLE_SIZE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	$-2, %r14d
	cmpl	%esi, (%rdi)
	je	LBB0_12
## %bb.4:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movl	%esi, (%rbx)
	movq	_cipher_suite_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%rbx)
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_secy_get_capability
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movl	-20(%rbp), %eax
	cmpl	%eax, 4(%rbx)
	jbe	LBB0_10
## %bb.9:
	movl	%eax, 4(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_ieee802_1x_kay_get_principal_participant
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_12
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	$-3, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CS_TABLE_SIZE,4,2              ## @CS_TABLE_SIZE
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: Configured cipher suite index is out of range"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_cipher_suite_tbl,8,3           ## @cipher_suite_tbl
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"KaY: Cipher Suite changed"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_1x_kay_change_cipher_suite ; -- Begin function ieee802_1x_kay_change_cipher_suite
	.p2align	2
_ieee802_1x_kay_change_cipher_suite:    ; @ieee802_1x_kay_change_cipher_suite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CS_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #-2
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	cbnz	w1, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_9:
Lloh11:
	adrp	x8, _cipher_suite_tbl@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cipher_suite_tbl@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w8, [x8, w1, uxtw #2]
	stp	w1, w8, [x19]
	add	x1, sp, #12
	mov	x0, x19
	bl	_secy_get_capability
	tbnz	x0, #63, LBB0_14
; %bb.10:
	ldr	w9, [x19, #4]
	ldr	w8, [sp, #12]
	cmp	w9, w8
	b.ls	LBB0_12
; %bb.11:
	str	w8, [x19, #4]
LBB0_12:
	mov	x0, x19
	bl	_ieee802_1x_kay_get_principal_participant
	cbz	x0, LBB0_6
; %bb.13:
	mov	x19, x0
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_14:
	mov	w0, #-3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CS_TABLE_SIZE,4,2              ; @CS_TABLE_SIZE
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: Configured cipher suite index is out of range"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_cipher_suite_tbl,8,3           ; @cipher_suite_tbl
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"KaY: Cipher Suite changed"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
