	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_cli_action
_hostapd_cli_action:                    ## @hostapd_cli_action
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_wpa_ctrl_get_fd
	movq	_hostapd_cli_quit@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jne	LBB0_12
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %r15d
	incl	%r15d
	leaq	-316(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_hostapd_cli_recv_pending
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movq	_ping_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -328(%rbp)
	movq	$0, -336(%rbp)
	movl	%r15d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-336(%rbp), %r8
	callq	_select
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$255, -312(%rbp)
	movq	_hostapd_cli_action_process@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	leaq	-304(%rbp), %rcx
	leaq	-312(%rbp), %r8
	callq	_wpa_ctrl_request
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$4, -312(%rbp)
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-304(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hostapd_cli_quit,4,2           ## @hostapd_cli_quit
	.comm	_ping_interval,4,2              ## @ping_interval
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select"

L_.str.1:                               ## @.str.1
	.asciz	"PING"

	.comm	_hostapd_cli_action_process,4,2 ## @hostapd_cli_action_process
L_.str.2:                               ## @.str.2
	.asciz	"PONG"

L_str:                                  ## @str
	.asciz	"hostapd did not reply to PING command - exiting"

	.no_dead_strip	_hostapd_cli_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_cli_action
_hostapd_cli_action:                    ; @hostapd_cli_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_wpa_ctrl_get_fd
Lloh3:
	adrp	x24, _hostapd_cli_quit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _hostapd_cli_quit@GOTPAGEOFF]
	ldr	w8, [x24]
	cbnz	w8, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x25, _ping_interval@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ping_interval@GOTPAGEOFF]
	add	w21, w0, #1
	mov	w27, #255
Lloh7:
	adrp	x28, _EINTR@GOTPAGE
Lloh8:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
Lloh9:
	adrp	x26, _hostapd_cli_action_process@GOTPAGE
Lloh10:
	ldr	x26, [x26, _hostapd_cli_action_process@GOTPAGEOFF]
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_hostapd_cli_recv_pending
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	cbnz	w8, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	bl	_FD_ZERO
	add	x1, sp, #28
	mov	x0, x20
	bl	_FD_SET
	ldr	w8, [x25]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #28
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_select
	tbz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #28
	mov	x0, x20
	bl	_FD_ISSET
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x27, [sp]
	ldr	w5, [x26]
	add	x3, sp, #32
	mov	x4, sp
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	_wpa_ctrl_request
	tbnz	x0, #63, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	cmp	x8, #4
	b.lo	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #32
	mov	x1, x23
	mov	w2, #4
	bl	_os_memcmp
	cbz	x0, LBB0_3
LBB0_10:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_11:
	ldur	x8, [x29, #-96]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_13:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_hostapd_cli_quit,4,2           ; @hostapd_cli_quit
	.comm	_ping_interval,4,2              ; @ping_interval
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select"

l_.str.1:                               ; @.str.1
	.asciz	"PING"

	.comm	_hostapd_cli_action_process,4,2 ; @hostapd_cli_action_process
l_.str.2:                               ; @.str.2
	.asciz	"PONG"

l_str:                                  ; @str
	.asciz	"hostapd did not reply to PING command - exiting"

	.no_dead_strip	_hostapd_cli_action
.subsections_via_symbols
