	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_command_resp               ## -- Begin function wpa_command_resp
	.p2align	4, 0x90
_wpa_command_resp:                      ## @wpa_command_resp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_wpa_open_ctrl
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%r13, -48(%rbp)
	movq	%r14, %rdi
	callq	_strlen
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_wpa_ctrl_request
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_wpa_ctrl_close
	movq	-48(%rbp), %rax
	movb	$0, (%rbx,%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r12, %rdi
	callq	_wpa_ctrl_close
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wpa_command(ifname='%s', cmd='%s')\n"

L_str:                                  ## @str
	.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_resp               ; -- Begin function wpa_command_resp
	.p2align	2
_wpa_command_resp:                      ; @wpa_command_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_wpa_open_ctrl
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x22, [sp, #24]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x5, #0
	bl	_wpa_ctrl_request
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_wpa_ctrl_close
	mov	w0, #0
	ldr	x8, [sp, #24]
	strb	wzr, [x19, x8]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_wpa_ctrl_close
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wpa_command(ifname='%s', cmd='%s')\n"

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

.subsections_via_symbols
