	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_global_ctrl_iface_receive
_wpa_supplicant_global_ctrl_iface_receive: ## @wpa_supplicant_global_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	%r12
	pushq	%rbx
	movl	$4128, %eax                     ## imm = 0x1020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$4, -4148(%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_1
## %bb.2:
	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
	je	LBB0_3
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-4144(%rbp), %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	-4144(%rbp), %r12
	leaq	-4160(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wpa_supplicant_global_ctrl_iface_process
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_os_memset
	movq	-4160(%rbp), %rcx
	testq	%r15, %r15
	je	LBB0_10
	jmp	LBB0_12
LBB0_1:
	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_19
LBB0_3:
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_wpa_supplicant_ctrl_iface_attach
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_14
LBB0_7:
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wpa_supplicant_ctrl_iface_detach
	testq	%rax, %rax
	je	LBB0_14
LBB0_5:
	movq	$1, -4160(%rbp)
	movl	$1, %ecx
	xorl	%r15d, %r15d
	testq	%r15, %r15
	jne	LBB0_12
LBB0_10:
	cmpq	$1, %rcx
	jne	LBB0_12
## %bb.11:
	movq	$5, -4160(%rbp)
	leaq	L_.str.3(%rip), %rbx
	movl	$5, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_12:
	testq	%r15, %r15
	jne	LBB0_15
## %bb.13:
	cmpq	$2, %rcx
	jne	LBB0_15
LBB0_14:
	movq	$3, -4160(%rbp)
	leaq	L_.str.4(%rip), %rbx
	movl	$3, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_15:
	movq	%r15, %rbx
	testq	%r15, %r15
	je	LBB0_18
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_wpas_ctrl_sock_debug
	movq	-4160(%rbp), %rdx
	movl	-4148(%rbp), %r9d
	leaq	-4152(%rbp), %r8
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_18:
	movq	%r15, %rdi
	callq	_os_free
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	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	"FAIL\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"global_ctrl_sock-sendto"

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

	.no_dead_strip	_wpa_supplicant_global_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_global_ctrl_iface_receive
_wpa_supplicant_global_ctrl_iface_receive: ; @wpa_supplicant_global_ctrl_iface_receive
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w9, #4128
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, #32
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #4
	str	w8, [sp, #12]
	add	x23, sp, #24
	add	x1, sp, #24
	add	x4, sp, #16
	add	x5, sp, #12
	mov	w3, #0
	mov	w2, #4095
	bl	_recvfrom
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x22, x0
	strb	wzr, [x23, w0, uxtw]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_os_strcmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_os_strcmp
	cbz	x0, LBB0_6
; %bb.3:
	add	x1, sp, #24
	mov	x2, sp
	mov	x0, x21
	bl	_wpa_supplicant_global_ctrl_iface_process
	mov	x20, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	x2, x22
	bl	_os_memset
	ldr	x3, [sp]
	cbz	x20, LBB0_8
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	b	LBB0_17
LBB0_5:
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	mov	x0, x20
	mov	w3, #1
	bl	_wpa_supplicant_ctrl_iface_attach
	cbnz	x0, LBB0_7
	b	LBB0_12
LBB0_6:
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	mov	x0, x20
	bl	_wpa_supplicant_ctrl_iface_detach
	cbz	x0, LBB0_12
LBB0_7:
	mov	x20, #0
	mov	w3, #1
	str	x3, [sp]
	cbnz	x20, LBB0_10
LBB0_8:
	cmp	x3, #1
	b.ne	LBB0_10
; %bb.9:
	mov	x20, #0
	mov	w3, #5
	str	x3, [sp]
Lloh17:
	adrp	x21, l_.str.3@PAGE
Lloh18:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_10:
	cbnz	x20, LBB0_13
; %bb.11:
	cmp	x3, #2
	b.ne	LBB0_13
LBB0_12:
	mov	x20, #0
	mov	w3, #3
	str	x3, [sp]
Lloh19:
	adrp	x21, l_.str.4@PAGE
Lloh20:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x21, x20
	cbz	x20, LBB0_16
LBB0_14:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_wpas_ctrl_sock_debug
	ldr	x2, [sp]
	ldr	w5, [sp, #12]
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_sendto
	tbz	x0, #63, LBB0_16
; %bb.15:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_16:
	mov	x0, x20
	bl	_os_free
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	"FAIL\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"global_ctrl_sock-sendto"

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

	.no_dead_strip	_wpa_supplicant_global_ctrl_iface_receive
.subsections_via_symbols
