	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_cmd
_wpa_priv_cmd:                          ## @wpa_priv_cmd
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -84(%rbp)
	leaq	-84(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movl	%ecx, -56(%rbp)
	leaq	-120(%rbp), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	leaq	-80(%rbp), %rax
	movq	%rax, -104(%rbp)
	cmpq	$1, %rbx
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, -120(%rbp)
	leaq	8(%r13), %rax
	movq	%rax, -112(%rbp)
	movl	$4, -116(%rbp)
	movq	(%r13), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_13
## %bb.3:
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	$5, -136(%rbp)
	movq	$0, -128(%rbp)
	movq	(%r13), %rdi
	incq	%rdi
	leaq	-136(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testl	%eax, %eax
	jns	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
LBB0_7:
	movq	(%r13), %rdi
	leaq	-88(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	(%r13), %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %eax
	movq	%rax, (%rbx)
	jmp	LBB0_13
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	%ebx, %edi
	movl	%eax, %edx
LBB0_12:
	callq	_wpa_printf
	movl	$-1, %r12d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-84(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendmsg(cmd_socket): %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"select: %s"

L_.str.2:                               ## @.str.2
	.asciz	"recv: %s"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"PRIVSEP: Timeout while waiting for reply (cmd=%d)"

	.no_dead_strip	_wpa_priv_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_priv_cmd
_wpa_priv_cmd:                          ; @wpa_priv_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x5
	mov	x20, x4
	mov	x22, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	w1, [sp, #52]
	add	x8, sp, #52
	str	x8, [sp, #56]
	mov	w23, #4
	str	w23, [sp, #64]
	str	x2, [sp, #72]
	str	w3, [sp, #80]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	add	x8, sp, #56
	cmp	x22, #0
	mov	x9, x21
	ldr	x0, [x9], #8
	mov	w10, #1
	stp	x9, x8, [sp, #32]
	cinc	w8, w10, ne
	stp	w8, w23, [sp, #24]
	add	x1, sp, #24
	mov	w2, #0
	bl	_sendmsg
	tbnz	x0, #63, LBB0_7
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	add	x0, sp, #20
	bl	_FD_ZERO
	ldr	x0, [x21]
	add	x1, sp, #20
	bl	_FD_SET
	mov	w8, #5
	str	w8, [sp]
	str	xzr, [sp, #8]
	ldr	x8, [x21]
	add	x0, x8, #1
	add	x1, sp, #20
	mov	x4, sp
	mov	x2, #0
	mov	x3, #0
	bl	_select
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_4:
	ldr	x0, [x21]
	add	x1, sp, #20
	bl	_FD_ISSET
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x0, [x21]
	ldr	x2, [x19]
	mov	x1, x20
	mov	w3, #0
	bl	_recv
	tbnz	w0, #31, LBB0_14
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	mov	w8, w8
	str	x8, [x19]
	b	LBB0_11
LBB0_7:
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	x0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
LBB0_9:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.12:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w2, [sp, #52]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_14:
Lloh25:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_15:
Lloh33:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmsg(cmd_socket): %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"select: %s"

l_.str.2:                               ; @.str.2
	.asciz	"recv: %s"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"PRIVSEP: Timeout while waiting for reply (cmd=%d)"

	.no_dead_strip	_wpa_priv_cmd
.subsections_via_symbols
