	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_clear_keys                 ## -- Begin function wpa_clear_keys
	.p2align	4, 0x90
_wpa_clear_keys:                        ## @wpa_clear_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpa_drv_set_key
	addq	$32, %rsp
LBB0_2:
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpa_drv_set_key
	addq	$32, %rsp
LBB0_4:
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpa_drv_set_key
	addq	$32, %rsp
LBB0_6:
	movl	(%r15), %ebx
	movl	$3, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.7:
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpa_drv_set_key
	addq	$32, %rsp
LBB0_8:
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_BIT
	testq	%r14, %r14
	je	LBB0_12
## %bb.9:
	andl	%ebx, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_wpa_drv_set_key
	addq	$32, %rsp
	movq	_MLME_SETPROTECTION_PROTECT_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLME_SETPROTECTION_KEY_TYPE_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wpa_drv_mlme_setprotection
LBB0_12:
	movl	$-1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ALG_NONE,4,2               ## @WPA_ALG_NONE
	.comm	_MLME_SETPROTECTION_PROTECT_TYPE_NONE,4,2 ## @MLME_SETPROTECTION_PROTECT_TYPE_NONE
	.comm	_MLME_SETPROTECTION_KEY_TYPE_PAIRWISE,4,2 ## @MLME_SETPROTECTION_KEY_TYPE_PAIRWISE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_clear_keys                 ; -- Begin function wpa_clear_keys
	.p2align	2
_wpa_clear_keys:                        ; @wpa_clear_keys
	.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
	ldr	w21, [x0]
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_drv_set_key
LBB0_2:
	ldr	w21, [x19]
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_drv_set_key
LBB0_4:
	ldr	w21, [x19]
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #2
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_drv_set_key
LBB0_6:
	ldr	w21, [x19]
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #3
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_drv_set_key
LBB0_8:
	ldr	w21, [x19]
	mov	w0, #0
	bl	_BIT
	cbz	x20, LBB0_12
; %bb.9:
	and	w8, w0, w21
	cbnz	w8, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_is_zero_ether_addr
	cbnz	w0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_drv_set_key
Lloh15:
	adrp	x8, _MLME_SETPROTECTION_PROTECT_TYPE_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLME_SETPROTECTION_PROTECT_TYPE_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _MLME_SETPROTECTION_KEY_TYPE_PAIRWISE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLME_SETPROTECTION_KEY_TYPE_PAIRWISE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_drv_mlme_setprotection
LBB0_12:
	mov	w8, #-1
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ALG_NONE,4,2               ; @WPA_ALG_NONE
	.comm	_MLME_SETPROTECTION_PROTECT_TYPE_NONE,4,2 ; @MLME_SETPROTECTION_PROTECT_TYPE_NONE
	.comm	_MLME_SETPROTECTION_KEY_TYPE_PAIRWISE,4,2 ; @MLME_SETPROTECTION_KEY_TYPE_PAIRWISE
.subsections_via_symbols
