	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ctrl_iface_wait ## -- Begin function wpa_supplicant_ctrl_iface_wait
	.p2align	4, 0x90
_wpa_supplicant_ctrl_iface_wait:        ## @wpa_supplicant_ctrl_iface_wait
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -308(%rbp)
	cmpl	$-1, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	leaq	4(%rdi), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	leaq	-304(%rbp), %r12
	leaq	-312(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	%r14, %r12
	movl	(%rcx), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r14d, %edi
	movq	%r12, %r14
	movq	%rbx, %r12
	leaq	-312(%rbp), %rbx
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	8(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	(%r13), %edi
	callq	_eloop_wait_for_read_sock
	movl	(%r13), %edi
	movq	%r12, %rsi
	movl	$255, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	leaq	-308(%rbp), %r9
	callq	_recvfrom
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	leaq	L_.str.1(%rip), %r15
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	movb	$0, -304(%rbp,%rax)
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	-308(%rbp), %r9d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-308(%rbp), %edx
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_wpa_supplicant_ctrl_iface_attach
	movl	(%r13), %edi
	movl	-308(%rbp), %r9d
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %rsi
	movl	$5, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sendto
	movq	%r14, %rcx
	leaq	L_.str.4(%rip), %r15
	testq	%rax, %rax
	jns	LBB0_2
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-312(%rbp), %r8
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.12:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL_IFACE - %s - wait for monitor to attach"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"recvfrom(ctrl_iface): %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"ATTACH"

L_.str.3:                               ## @.str.3
	.asciz	"OK\n"

L_.str.4:                               ## @.str.4
	.asciz	"ctrl_iface sendto failed: %s"

L_.str.5:                               ## @.str.5
	.asciz	"FAIL\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ctrl_iface_wait ; -- Begin function wpa_supplicant_ctrl_iface_wait
	.p2align	2
_wpa_supplicant_ctrl_iface_wait:        ; @wpa_supplicant_ctrl_iface_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w8, #4
	str	w8, [sp, #4]
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x0
	add	x20, x0, #4
Lloh3:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
	add	x28, sp, #16
Lloh7:
	adrp	x27, _errno@GOTPAGE
Lloh8:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh11:
	adrp	x23, l_.str.5@PAGE
Lloh12:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh15:
	adrp	x24, l_.str.1@PAGE
Lloh16:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x8]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_wpa_printf
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x1, x21
	bl	_wpa_printf
	ldr	w0, [x19]
	bl	_eloop_wait_for_read_sock
	ldr	w0, [x19]
	add	x1, sp, #16
	add	x4, sp, #8
	add	x5, sp, #4
	mov	w2, #255
	mov	w3, #0
	bl	_recvfrom
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x28, w0, uxtw]
	add	x0, sp, #16
	mov	x1, x22
	bl	_os_strcmp
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w5, [sp, #4]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #4]
	add	x1, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_wpa_supplicant_ctrl_iface_attach
	mov	x8, x0
	ldr	w0, [x19]
	ldr	w5, [sp, #4]
	cbz	w8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x4, sp, #8
	mov	x1, x23
	mov	w2, #5
	mov	w3, #0
	bl	_sendto
	tbz	x0, #63, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x26
Lloh17:
	adrp	x24, l_.str.4@PAGE
Lloh18:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_10:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x4, sp, #8
	mov	w2, #3
	mov	w3, #0
	bl	_sendto
	tbz	x0, #63, LBB0_12
; %bb.11:
	ldr	w19, [x26]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_12:
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL_IFACE - %s - wait for monitor to attach"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"recvfrom(ctrl_iface): %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"ATTACH"

l_.str.3:                               ; @.str.3
	.asciz	"OK\n"

l_.str.4:                               ; @.str.4
	.asciz	"ctrl_iface sendto failed: %s"

l_.str.5:                               ; @.str.5
	.asciz	"FAIL\n"

.subsections_via_symbols
