	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_wpa_status                 ## -- Begin function get_wpa_status
	.p2align	4, 0x90
_get_wpa_status:                        ## @get_wpa_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_wpa_open_ctrl
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, -4168(%rbp)               ## 8-byte Spill
	movq	%r14, -4160(%rbp)               ## 8-byte Spill
	movq	$4096, -4152(%rbp)              ## imm = 0x1000
	leaq	L_.str(%rip), %rsi
	leaq	-4144(%rbp), %r15
	leaq	-4152(%rbp), %r8
	movq	%rax, %rdi
	movl	$16, %edx
	movq	%r15, %rcx
	xorl	%r9d, %r9d
	callq	_wpa_ctrl_request
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_wpa_ctrl_close
	testq	%r14, %r14
	js	LBB0_15
## %bb.2:
	movq	-4152(%rbp), %rbx
	movb	$0, -4144(%rbp,%rbx)
	movq	%r12, %rdi
	callq	_strlen
	cmpq	%rbx, %rax
	jge	LBB0_15
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-4152(%rbp), %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r14,%r13), %rax
	incq	%rax
	incq	%r13
	leaq	(%rbx,%rbp), %rcx
	addq	$-4144, %rcx                    ## imm = 0xEFD0
	cmpq	%rcx, %rax
	jae	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r13
	jbe	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$10, (%r13)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$61, (%r13,%r14)
	jne	LBB0_5
## %bb.11:
	leaq	(%r14,%r13), %rbx
	incq	%rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movb	$0, (%rax)
	subq	%rbx, %rax
	incq	%rax
	movslq	-4168(%rbp), %rcx               ## 4-byte Folded Reload
	cmpq	%rcx, %rax
	movl	$-1, %r13d
	jg	LBB0_15
## %bb.13:
	movq	-4160(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_14:
	movl	$-1, %r13d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movl	%r13d, %eax
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STATUS-NO_EVENTS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_wpa_status                 ; -- Begin function get_wpa_status
	.p2align	2
_get_wpa_status:                        ; @get_wpa_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_wpa_open_ctrl
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	mov	w8, #4096
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x24, sp, #8
	add	x3, sp, #8
	mov	x4, sp
	mov	w2, #16
	mov	x5, #0
	bl	_wpa_ctrl_request
	mov	x23, x0
	mov	x0, x22
	bl	_wpa_ctrl_close
	tbnz	x23, #63, LBB0_13
; %bb.2:
	ldr	x25, [sp]
	strb	wzr, [x24, x25]
	mov	x0, x21
	bl	_strlen
	cmp	x0, x25
	b.ge	LBB0_13
; %bb.3:
	mov	x22, x0
	add	x24, sp, #8
	add	x23, sp, #8
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_strncmp
	cbz	x0, LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x25, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	add	x8, x23, x22
	add	x9, x24, x25
	cmp	x8, x9
	b.hs	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x24
	b.ls	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x23]
	cmp	w8, #10
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x23, x22]
	cmp	w8, #61
	b.ne	LBB0_5
; %bb.11:
	add	x8, x22, x23
	add	x21, x8, #1
	mov	x0, x21
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_13
; %bb.12:
	strb	wzr, [x0]
	sub	x8, x0, x21
	add	x2, x8, #1
	cmp	x2, w20, sxtw
	b.le	LBB0_16
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	w0, #0
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STATUS-NO_EVENTS"

.subsections_via_symbols
