	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_cancel                ## -- Begin function wpas_wps_cancel
	.p2align	4, 0x90
_wpas_wps_cancel:                       ## @wpas_wps_cancel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_WPA_SCANNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_WPA_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_WPA_ASSOCIATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_wpas_wps_reenable_networks
	movq	%rbx, %rdi
	callq	_wpas_wps_clear_ap_info
	movq	_wpas_wps_clear_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	testq	%rax, %rax
	jg	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_wpa_supplicant_cancel_scan
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$1, 8(%rbx)
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_deauthenticate
LBB0_6:
	movq	%rbx, %rdi
	callq	_wpas_clear_wps
LBB0_7:
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_SCANNING,8,3               ## @WPA_SCANNING
	.comm	_WPA_DISCONNECTED,8,3           ## @WPA_DISCONNECTED
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Cancel operation - cancel scan"

	.comm	_WPA_ASSOCIATED,8,3             ## @WPA_ASSOCIATED
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Cancel operation - deauthenticate"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.comm	_wpas_wps_clear_timeout,4,2     ## @wpas_wps_clear_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_cancel                ; -- Begin function wpas_wps_cancel
	.p2align	2
_wpas_wps_cancel:                       ; @wpas_wps_cancel
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WPA_SCANNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WPA_DISCONNECTED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WPA_DISCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpa_supplicant_cancel_scan
	b	LBB0_5
LBB0_2:
Lloh11:
	adrp	x9, _WPA_ASSOCIATED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WPA_ASSOCIATED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_wpas_wps_reenable_networks
	mov	x0, x19
	bl	_wpas_wps_clear_ap_info
Lloh14:
	adrp	x8, _wpas_wps_clear_timeout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wpas_wps_clear_timeout@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	cmp	x0, #1
	b.ge	LBB0_5
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	str	w8, [x19, #8]
Lloh22:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
LBB0_5:
	mov	x0, x19
	bl	_wpas_clear_wps
LBB0_6:
	str	xzr, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_SCANNING,8,3               ; @WPA_SCANNING
	.comm	_WPA_DISCONNECTED,8,3           ; @WPA_DISCONNECTED
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Cancel operation - cancel scan"

	.comm	_WPA_ASSOCIATED,8,3             ; @WPA_ASSOCIATED
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Cancel operation - deauthenticate"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.comm	_wpas_wps_clear_timeout,4,2     ; @wpas_wps_clear_timeout
.subsections_via_symbols
