	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wpa_ctrl_command
__wpa_ctrl_command:                     ## @_wpa_ctrl_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	%rbx
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ctrl_conn@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$4095, -4136(%rbp)              ## imm = 0xFFF
	movq	%rsi, %rdi
	callq	_strlen
	movq	_hostapd_cli_msg_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-4128(%rbp), %rcx
	leaq	-4136(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_wpa_ctrl_request
	cmpl	$-2, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$-2, %ebx
	jmp	LBB0_9
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_4:
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movq	-4136(%rbp), %rax
	movb	$0, -4128(%rbp,%rax)
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-4128(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ctrl_conn,8,3                  ## @ctrl_conn
	.comm	_hostapd_cli_msg_cb,4,2         ## @hostapd_cli_msg_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"'%s' command timed out.\n"

L_.str.2:                               ## @.str.2
	.asciz	"'%s' command failed.\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_str:                                  ## @str
	.asciz	"Not connected to hostapd - command dropped."

	.no_dead_strip	__wpa_ctrl_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _wpa_ctrl_command
__wpa_ctrl_command:                     ; @_wpa_ctrl_command
	.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	w9, #4128
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, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _ctrl_conn@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ctrl_conn@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w8, #4095
	str	x8, [sp, #16]
	mov	x0, x1
	bl	_strlen
	mov	x2, x0
Lloh8:
	adrp	x8, _hostapd_cli_msg_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hostapd_cli_msg_cb@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x21
	mov	x1, x19
	bl	_wpa_ctrl_request
	cmn	w0, #2
	b.ne	LBB0_4
; %bb.2:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #-2
	b	LBB0_10
LBB0_3:
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_9
LBB0_4:
	tbnz	w0, #31, LBB0_8
; %bb.5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	x8, [sp, #16]
	add	x9, sp, #24
	strb	wzr, [x9, x8]
	str	x9, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	str	x19, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ctrl_conn,8,3                  ; @ctrl_conn
	.comm	_hostapd_cli_msg_cb,4,2         ; @hostapd_cli_msg_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"'%s' command timed out.\n"

l_.str.2:                               ; @.str.2
	.asciz	"'%s' command failed.\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_str:                                  ; @str
	.asciz	"Not connected to hostapd - command dropped."

	.no_dead_strip	__wpa_ctrl_command
.subsections_via_symbols
