	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_remove_ptk                 ## -- Begin function wpa_remove_ptk
	.p2align	4, 0x90
_wpa_remove_ptk:                        ## @wpa_remove_ptk
	.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
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 24(%rdi)
	addq	$20, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	_WPA_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	16(%rbx), %ecx
	movl	$0, (%rsp)
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wpa_auth_set_key
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_2:
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	_wpa_rekey_ptk@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	%rbx, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eloop_cancel_timeout           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_WPA_ALG_NONE,4,2               ## @WPA_ALG_NONE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSN: PTK removal from the driver failed"

	.comm	_wpa_rekey_ptk,4,2              ## @wpa_rekey_ptk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_remove_ptk                 ; -- Begin function wpa_remove_ptk
	.p2align	2
_wpa_remove_ptk:                        ; @wpa_remove_ptk
	.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	x20, _FALSE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x0, #24]
	add	x0, x0, #20
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _WPA_ALG_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WPA_ALG_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	w1, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_wpa_auth_set_key
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_2:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _wpa_rekey_ptk@GOTPAGE
Lloh11:
	ldr	x9, [x9, _wpa_rekey_ptk@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh12:
	ldr	w0, [x9]
	ldr	w1, [x19]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eloop_cancel_timeout
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_WPA_ALG_NONE,4,2               ; @WPA_ALG_NONE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSN: PTK removal from the driver failed"

	.comm	_wpa_rekey_ptk,4,2              ; @wpa_rekey_ptk
.subsections_via_symbols
