	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_cli_ping
_hostapd_cli_ping:                      ## @hostapd_cli_ping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ctrl_conn@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	__wpa_ctrl_command
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_hostapd_cli_close_connection
LBB0_3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_4:
	movq	_ctrl_ifname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hostapd_cli_reconnect
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_7:
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_hostapd_cli_recv_pending
LBB0_8:
	movq	_ping_interval@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	_hostapd_cli_ping(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ctrl_conn,8,3                  ## @ctrl_conn
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PING"

	.comm	_ctrl_ifname,4,2                ## @ctrl_ifname
	.comm	_ping_interval,4,2              ## @ping_interval
L_str:                                  ## @str
	.asciz	"Connection to hostapd re-established"

L_str.3:                                ## @str.3
	.asciz	"Connection to hostapd lost - trying to reconnect"

	.no_dead_strip	_hostapd_cli_ping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_cli_ping
_hostapd_cli_ping:                      ; @hostapd_cli_ping
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ctrl_conn@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ctrl_conn@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	__wpa_ctrl_command
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_str.3@PAGE
Lloh5:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	bl	_hostapd_cli_close_connection
LBB0_3:
	ldr	x0, [x19]
	cbnz	x0, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ctrl_ifname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ctrl_ifname@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_hostapd_cli_reconnect
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x0, [x19]
	cbz	x0, LBB0_7
LBB0_6:
	mov	w1, #1
	mov	w2, #0
	bl	_hostapd_cli_recv_pending
LBB0_7:
Lloh9:
	adrp	x8, _ping_interval@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ping_interval@GOTPAGEOFF]
Lloh11:
	adrp	x2, _hostapd_cli_ping@PAGE
Lloh12:
	add	x2, x2, _hostapd_cli_ping@PAGEOFF
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eloop_register_timeout
LBB0_8:
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [x19]
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ctrl_conn,8,3                  ; @ctrl_conn
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PING"

	.comm	_ctrl_ifname,4,2                ; @ctrl_ifname
	.comm	_ping_interval,4,2              ; @ping_interval
l_str:                                  ; @str
	.asciz	"Connection to hostapd re-established"

l_str.3:                                ; @str.3
	.asciz	"Connection to hostapd lost - trying to reconnect"

	.no_dead_strip	_hostapd_cli_ping
.subsections_via_symbols
