	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_event_handler
_register_event_handler:                ## @register_event_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ctrl_conn@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_interactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	callq	_wpa_ctrl_get_fd
	movq	_hostapd_cli_receive@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	_event_handler_registered@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctrl_conn,4,2                  ## @ctrl_conn
	.comm	_interactive,8,3                ## @interactive
	.comm	_hostapd_cli_receive,4,2        ## @hostapd_cli_receive
	.comm	_event_handler_registered,4,2   ## @event_handler_registered
	.no_dead_strip	_register_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_event_handler
_register_event_handler:                ; @register_event_handler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ctrl_conn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctrl_conn@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _interactive@GOTPAGE
Lloh4:
	ldr	x9, [x9, _interactive@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_wpa_ctrl_get_fd
Lloh6:
	adrp	x8, _hostapd_cli_receive@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hostapd_cli_receive@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, #0
	mov	x3, #0
	bl	_eloop_register_read_sock
	cmp	w0, #0
	cset	w8, eq
Lloh9:
	adrp	x9, _event_handler_registered@GOTPAGE
Lloh10:
	ldr	x9, [x9, _event_handler_registered@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ctrl_conn,4,2                  ; @ctrl_conn
	.comm	_interactive,8,3                ; @interactive
	.comm	_hostapd_cli_receive,4,2        ; @hostapd_cli_receive
	.comm	_event_handler_registered,4,2   ; @event_handler_registered
	.no_dead_strip	_register_event_handler
.subsections_via_symbols
