	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_command                    ## -- Begin function wpa_command
	.p2align	4, 0x90
_wpa_command:                           ## @wpa_command
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_wpa_open_ctrl
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	$128, -184(%rbp)
	movq	%r12, %rdi
	callq	_strlen
	xorl	%r14d, %r14d
	leaq	-176(%rbp), %rcx
	leaq	-184(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%r9d, %r9d
	callq	_wpa_ctrl_request
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_wpa_ctrl_close
	movq	-184(%rbp), %rax
	movb	$0, -176(%rbp,%rax)
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_5
LBB0_2:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movq	%r15, %rdi
	callq	_wpa_ctrl_close
LBB0_5:
	movl	$-1, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wpa_command(ifname='%s', cmd='%s')\n"

L_.str.2:                               ## @.str.2
	.asciz	"FAIL"

L_str:                                  ## @str
	.asciz	"wpa_command: Command failed (FAIL received)"

L_str.4:                                ## @str.4
	.asciz	"wpa_command: wpa_ctrl_request failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_command                    ; -- Begin function wpa_command
	.p2align	2
_wpa_command:                           ; @wpa_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	x0, x1, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_wpa_open_ctrl
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w8, #128
	str	x8, [sp, #16]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	add	x21, sp, #24
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x5, #0
	bl	_wpa_ctrl_request
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_wpa_ctrl_close
	ldr	x8, [sp, #16]
	strb	wzr, [x21, x8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w2, #4
	bl	_strncmp
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_6
; %bb.3:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_str.4@PAGE
Lloh10:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_wpa_ctrl_close
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wpa_command(ifname='%s', cmd='%s')\n"

l_.str.2:                               ; @.str.2
	.asciz	"FAIL"

l_str:                                  ; @str
	.asciz	"wpa_command: Command failed (FAIL received)"

l_str.4:                                ; @str.4
	.asciz	"wpa_command: wpa_ctrl_request failed"

.subsections_via_symbols
