	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_event_disconnect
_wpas_event_disconnect:                 ## @wpas_event_disconnect
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_wpa_supplicant_event_disassoc
	movq	_WLAN_REASON_IEEE_802_1X_AUTH_FAILED@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	callq	_wpa_key_mgmt_wpa_ieee8021x
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
LBB0_5:
	movl	8(%rbx), %edi
	callq	_eapol_sm_failed
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	cmpl	$0, 4(%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpas_auth_failed
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_supplicant_event_disassoc_finish ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_REASON_IEEE_802_1X_AUTH_FAILED,8,3 ## @WLAN_REASON_IEEE_802_1X_AUTH_FAILED
	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,4,2 ## @WPA_KEY_MGMT_IEEE8021X_NO_WPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUTH_FAILED"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.no_dead_strip	_wpas_event_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_event_disconnect
_wpas_event_disconnect:                 ; @wpas_event_disconnect
	.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	x19, x3
	mov	x20, x2
	mov	x21, x0
	cbnz	w3, LBB0_2
; %bb.1:
	str	xzr, [x21, #16]
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_wpa_supplicant_event_disassoc
Lloh0:
	adrp	x8, _WLAN_REASON_IEEE_802_1X_AUTH_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_REASON_IEEE_802_1X_AUTH_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x21]
	bl	_wpa_key_mgmt_wpa_ieee8021x
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_eapol_sm_failed
	cbz	x0, LBB0_8
LBB0_6:
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wpas_auth_failed
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_wpa_supplicant_event_disassoc_finish
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_REASON_IEEE_802_1X_AUTH_FAILED,8,3 ; @WLAN_REASON_IEEE_802_1X_AUTH_FAILED
	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,4,2 ; @WPA_KEY_MGMT_IEEE8021X_NO_WPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUTH_FAILED"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.no_dead_strip	_wpas_event_disconnect
.subsections_via_symbols
