	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_ctrl_iface_receive
_wpa_supplicant_ctrl_iface_receive:     ## @wpa_supplicant_ctrl_iface_receive
	.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
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -4148(%rbp)
	movq	$0, -4160(%rbp)
	leaq	-4144(%rbp), %rsi
	leaq	-4152(%rbp), %r8
	leaq	-4148(%rbp), %r9
	movl	$4095, %edx                     ## imm = 0xFFF
	xorl	%ecx, %ecx
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %eax
	movb	$0, -4144(%rbp,%rax)
	leaq	L_.str.1(%rip), %rsi
	leaq	-4144(%rbp), %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	movq	%r12, -4168(%rbp)               ## 8-byte Spill
	je	LBB0_6
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-4144(%rbp), %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	leaq	-4144(%rbp), %rdi
	movl	$6, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r14, %r15
	leaq	-4144(%rbp), %r14
	leaq	-4160(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_wpa_supplicant_ctrl_iface_process
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %r14
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_os_memset
	movq	-4160(%rbp), %rcx
	testq	%r12, %r12
	je	LBB0_11
	jmp	LBB0_13
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	jmp	LBB0_30
LBB0_6:
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_wpa_supplicant_ctrl_iface_attach
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_18
LBB0_7:
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpa_supplicant_ctrl_iface_detach
	testq	%rax, %rax
	je	LBB0_17
LBB0_10:
	movq	$1, -4160(%rbp)
	movl	$1, %ecx
	xorl	%r12d, %r12d
	testq	%r12, %r12
	jne	LBB0_13
LBB0_11:
	cmpq	$1, %rcx
	jne	LBB0_13
## %bb.12:
	movq	$5, -4160(%rbp)
	leaq	L_.str.4(%rip), %rbx
	movl	$5, %ecx
	movb	$1, %r15b
	jmp	LBB0_19
LBB0_13:
	testq	%r12, %r12
	jne	LBB0_15
## %bb.14:
	movb	$1, %r15b
	cmpq	$2, %rcx
	je	LBB0_18
LBB0_15:
	movb	$1, %r15b
	testq	%r12, %r12
	je	LBB0_29
## %bb.16:
	movq	%r12, %rbx
	jmp	LBB0_20
LBB0_9:
	movl	-4148(%rbp), %edx
	leaq	-4138(%rbp), %rcx
	leaq	-4152(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpa_supplicant_ctrl_iface_level
	testq	%rax, %rax
	jne	LBB0_10
LBB0_17:
	movb	$1, %r15b
LBB0_18:
	movq	$3, -4160(%rbp)
	leaq	L_.str.5(%rip), %rbx
	movl	$3, %ecx
LBB0_19:
	xorl	%r12d, %r12d
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_wpas_ctrl_sock_debug
	movq	-4160(%rbp), %rdx
	movl	-4148(%rbp), %r9d
	leaq	-4152(%rbp), %r8
	movl	%r13d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_sendto
	testq	%rax, %rax
	js	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	callq	_os_free
	testb	%r15b, %r15b
	jne	LBB0_30
## %bb.22:
	movq	-4168(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %edi
	callq	_eapol_sm_notify_ctrl_attached
	jmp	LBB0_30
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	%r14, %r13
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.7(%rip), %rdx
	movq	-4168(%rbp), %rdi               ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_wpa_dbg
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_25
## %bb.24:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_27
LBB0_25:
	movq	-4168(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_wpas_ctrl_iface_reinit
	testl	%eax, %eax
	jns	LBB0_27
## %bb.26:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	-4168(%rbp), %rdi               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_dbg
LBB0_27:
	testb	%r15b, %r15b
	jne	LBB0_29
## %bb.28:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	-4168(%rbp), %rdi               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_dbg
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rsi
	movq	%r13, %rdi
	callq	_wpa_supplicant_ctrl_iface_detach
LBB0_29:
	movq	%r12, %rdi
	callq	_os_free
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recvfrom(ctrl_iface): %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"DETACH"

L_.str.3:                               ## @.str.3
	.asciz	"LEVEL "

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

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

L_.str.6:                               ## @.str.6
	.asciz	"ctrl_sock-sendto"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.7:                               ## @.str.7
	.asciz	"ctrl_iface sendto failed: %d - %s"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.8:                               ## @.str.8
	.asciz	"Failed to reinitialize ctrl_iface socket"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to send response to ATTACH - detaching"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_ctrl_iface_receive
_wpa_supplicant_ctrl_iface_receive:     ; @wpa_supplicant_ctrl_iface_receive
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w9, #4144
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, #48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w8, #4
	str	w8, [sp, #28]
	str	xzr, [sp, #16]
	add	x22, sp, #40
	add	x1, sp, #40
	add	x4, sp, #32
	add	x5, sp, #28
	mov	w3, #0
	mov	w2, #4095
	bl	_recvfrom
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x23, x0
	strb	wzr, [x22, w0, uxtw]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	bl	_os_strcmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #40
	bl	_os_strcmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x22, sp, #40
	add	x0, sp, #40
	mov	w2, #6
	bl	_os_strncmp
	cbz	x0, LBB0_9
; %bb.4:
	add	x1, sp, #40
	add	x2, sp, #16
	mov	x0, x20
	bl	_wpa_supplicant_ctrl_iface_process
	mov	x22, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	x2, x23
	bl	_os_memset
	ldr	x3, [sp, #16]
	cbz	x22, LBB0_11
	b	LBB0_13
LBB0_5:
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	b	LBB0_29
LBB0_6:
	ldr	w2, [sp, #28]
	add	x1, sp, #32
	mov	x0, x19
	mov	w3, #0
	bl	_wpa_supplicant_ctrl_iface_attach
	cbnz	x0, LBB0_10
; %bb.7:
	mov	w24, #0
	b	LBB0_16
LBB0_8:
	ldr	w2, [sp, #28]
	add	x1, sp, #32
	mov	x0, x19
	bl	_wpa_supplicant_ctrl_iface_detach
	cbnz	x0, LBB0_10
	b	LBB0_15
LBB0_9:
	ldr	w2, [sp, #28]
	add	x3, x22, #6
	add	x1, sp, #32
	mov	x0, x19
	bl	_wpa_supplicant_ctrl_iface_level
	cbz	x0, LBB0_15
LBB0_10:
	mov	x22, #0
	mov	w3, #1
	str	x3, [sp, #16]
	cbnz	x22, LBB0_13
LBB0_11:
	cmp	x3, #1
	b.ne	LBB0_13
; %bb.12:
	mov	x22, #0
	mov	w3, #5
	str	x3, [sp, #16]
Lloh19:
	adrp	x23, l_.str.4@PAGE
Lloh20:
	add	x23, x23, l_.str.4@PAGEOFF
	mov	w24, #1
	b	LBB0_17
LBB0_13:
	cbnz	x22, LBB0_26
; %bb.14:
	cmp	x3, #2
	b.ne	LBB0_26
LBB0_15:
	mov	w24, #1
LBB0_16:
	mov	x22, #0
	mov	w3, #3
	str	x3, [sp, #16]
Lloh21:
	adrp	x23, l_.str.5@PAGE
Lloh22:
	add	x23, x23, l_.str.5@PAGEOFF
LBB0_17:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_wpas_ctrl_sock_debug
	ldr	x2, [sp, #16]
	ldr	w5, [sp, #28]
	add	x4, sp, #32
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	bl	_sendto
	tbnz	x0, #63, LBB0_20
; %bb.18:
	mov	x0, x22
	bl	_os_free
	tbnz	w24, #0, LBB0_29
; %bb.19:
	ldr	w0, [x20]
	bl	_eapol_sm_notify_ctrl_attached
	b	LBB0_29
LBB0_20:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
Lloh28:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w23, [x25]
	mov	x0, x21
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh30:
	adrp	x2, l_.str.7@PAGE
Lloh31:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_wpa_dbg
Lloh32:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_22
; %bb.21:
Lloh35:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_24
LBB0_22:
	mov	x0, x20
	mov	x1, x19
	bl	_wpas_ctrl_iface_reinit
	tbz	w0, #31, LBB0_24
; %bb.23:
	ldr	w1, [x25]
Lloh38:
	adrp	x2, l_.str.8@PAGE
Lloh39:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
LBB0_24:
	tbnz	w24, #0, LBB0_28
; %bb.25:
	ldr	w1, [x25]
Lloh40:
	adrp	x2, l_.str.9@PAGE
Lloh41:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	ldr	w2, [sp, #28]
	add	x1, sp, #32
	mov	x0, x19
	bl	_wpa_supplicant_ctrl_iface_detach
	b	LBB0_28
LBB0_26:
	cbz	x22, LBB0_28
; %bb.27:
	mov	w24, #1
	mov	x23, x22
	b	LBB0_17
LBB0_28:
	mov	x0, x22
	bl	_os_free
LBB0_29:
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #48
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recvfrom(ctrl_iface): %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"DETACH"

l_.str.3:                               ; @.str.3
	.asciz	"LEVEL "

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

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

l_.str.6:                               ; @.str.6
	.asciz	"ctrl_sock-sendto"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.7:                               ; @.str.7
	.asciz	"ctrl_iface sendto failed: %d - %s"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.8:                               ; @.str.8
	.asciz	"Failed to reinitialize ctrl_iface socket"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to send response to ATTACH - detaching"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_receive
.subsections_via_symbols
