	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_ctrl_iface_open_sock
_wpas_ctrl_iface_open_sock:             ## @wpas_ctrl_iface_open_sock
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	8(%rax), %edi
	callq	_os_strdup
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	8(%r12), %rax
	movq	(%rax), %r13
	movq	%r14, %r15
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_3:
	addq	$4, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movb	$0, (%rax)
	addq	$7, %r13
	jmp	LBB0_7
LBB0_4:
	xorl	%r13d, %r13d
LBB0_7:
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mkdir
	testq	%rax, %rax
	js	LBB0_8
## %bb.10:
	testq	%r13, %r13
	je	LBB0_11
LBB0_20:
	movq	%r13, %rdi
	callq	_getgrnam
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%rax), %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_26:
	movq	%r15, %rdi
	movl	$-1, %esi
	movq	%rbx, %rdx
	callq	_lchown
	testq	%rax, %rax
	js	LBB0_27
## %bb.29:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IXUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IXGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_chmod
	testq	%rax, %rax
	jns	LBB0_12
## %bb.30:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_31
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_58
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r13, %r13
	jne	LBB0_20
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_os_strlen
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_os_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	incl	%eax
	cmpl	$4, %eax
	jb	LBB0_34
## %bb.13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_34:
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_35
## %bb.36:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	callq	_wpa_supplicant_ctrl_iface_path
	testq	%rax, %rax
	je	LBB0_37
## %bb.38:
	movq	%rax, %r14
	movl	-60(%rbp), %edi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	movq	_S_IRWXU@GOTPCREL(%rip), %rbx
	js	LBB0_39
## %bb.48:
	testq	%r13, %r13
	je	LBB0_51
LBB0_49:
	movq	%r14, %rdi
	movl	$-1, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_lchown
	testq	%rax, %rax
	js	LBB0_50
LBB0_51:
	movq	_S_IRWXG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_chmod
	testq	%rax, %rax
	js	LBB0_52
## %bb.53:
	movq	%r14, %rdi
	callq	_os_free
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_56
## %bb.54:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	testq	%rax, %rax
	jns	LBB0_56
## %bb.55:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.19(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_56:
	movl	(%r13), %edi
	movq	_wpa_supplicant_ctrl_iface_receive@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_eloop_register_read_sock
	movq	_wpa_supplicant_ctrl_iface_msg_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_msg_register_cb
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	jmp	LBB0_57
LBB0_22:
	leaq	-88(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_strtol
	cmpb	$0, (%r13)
	je	LBB0_24
## %bb.23:
	movq	%rax, %rbx
	movq	-88(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_25
LBB0_24:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdx
	jmp	LBB0_33
LBB0_58:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movq	%r15, %rdx
LBB0_43:
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_27:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
LBB0_28:
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_35:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.10(%rip), %rsi
LBB0_31:
	xorl	%r14d, %r14d
LBB0_32:
	movl	%r15d, %edi
	movq	%rax, %rdx
LBB0_33:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_17
## %bb.16:
	callq	_close
	movl	$-1, (%rbx)
LBB0_17:
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_unlink
	movq	%r14, %rdi
	callq	_os_free
LBB0_19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	movl	$-1, %ebx
LBB0_57:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_26
LBB0_39:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.11(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$12, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_40
## %bb.46:
	movq	_MSG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %edi
	leaq	L_.str.17(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_os_free
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_52:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_42
LBB0_50:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_28
LBB0_40:
	movl	(%rbx), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_unlink
	testq	%rax, %rax
	js	LBB0_41
## %bb.44:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_45
## %bb.47:
	movl	(%rbx), %edi
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_S_IRWXU@GOTPCREL(%rip), %rbx
	testq	%r13, %r13
	jne	LBB0_49
	jmp	LBB0_51
LBB0_41:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.13(%rip), %rsi
LBB0_42:
	movl	%r15d, %edi
	movq	%r14, %rdx
	jmp	LBB0_43
LBB0_45:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIR="

L_.str.1:                               ## @.str.1
	.asciz	" GROUP="

	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Using existing control interface directory."

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"mkdir[ctrl_interface=%s]: %s"

L_.str.4:                               ## @.str.4
	.asciz	"ctrl_interface_group=%d (from group name '%s')"

L_.str.5:                               ## @.str.5
	.asciz	"CTRL: Invalid group '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"ctrl_interface_group=%d"

L_.str.7:                               ## @.str.7
	.asciz	"lchown[ctrl_interface=%s,gid=%d]: %s"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
L_.str.8:                               ## @.str.8
	.asciz	"CTRL: chmod[ctrl_interface]: %s"

L_.str.9:                               ## @.str.9
	.asciz	"ctrl_iface path limit exceeded"

	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.10:                              ## @.str.10
	.asciz	"socket(PF_UNIX): %s"

	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
L_.str.11:                              ## @.str.11
	.asciz	"ctrl_iface bind(PF_UNIX) failed: %s"

L_.str.12:                              ## @.str.12
	.asciz	"ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination"

L_.str.13:                              ## @.str.13
	.asciz	"Could not unlink existing ctrl_iface socket '%s': %s"

L_.str.14:                              ## @.str.14
	.asciz	"supp-ctrl-iface-init: bind(PF_UNIX): %s"

L_.str.15:                              ## @.str.15
	.asciz	"Successfully replaced leftover ctrl_iface socket '%s'"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.16:                              ## @.str.16
	.asciz	"ctrl_iface exists and seems to be in use - cannot override it"

L_.str.17:                              ## @.str.17
	.asciz	"Delete '%s' manually if it is not used anymore"

L_.str.18:                              ## @.str.18
	.asciz	"chmod[ctrl_interface=%s]: %s"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
L_.str.19:                              ## @.str.19
	.asciz	"fcntl(ctrl, O_NONBLOCK): %s"

	.comm	_wpa_supplicant_ctrl_iface_receive,4,2 ## @wpa_supplicant_ctrl_iface_receive
	.comm	_wpa_supplicant_ctrl_iface_msg_cb,4,2 ## @wpa_supplicant_ctrl_iface_msg_cb
	.no_dead_strip	_wpas_ctrl_iface_open_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_ctrl_iface_open_sock
_wpas_ctrl_iface_open_sock:             ; @wpas_ctrl_iface_open_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #8]
	bl	_os_strdup
	mov	x19, x0
	cbz	x0, LBB0_35
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_os_strncmp
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x22, [x8]
	mov	x23, x19
	b	LBB0_5
LBB0_3:
	add	x23, x19, #4
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_os_strstr
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.4:
	strb	wzr, [x22], #7
LBB0_5:
Lloh4:
	adrp	x26, _S_IRWXU@GOTPAGE
Lloh5:
	ldr	x26, [x26, _S_IRWXU@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh6:
	adrp	x27, _S_IRWXG@GOTPAGE
Lloh7:
	ldr	x27, [x27, _S_IRWXG@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x23
	bl	_mkdir
	tbnz	x0, #63, LBB0_12
; %bb.6:
	cbz	x22, LBB0_14
LBB0_7:
	mov	x0, x22
	bl	_getgrnam
	cbz	x0, LBB0_27
; %bb.8:
	ldr	x24, [x0]
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	stp	x24, x22, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	x0, x23
	mov	w1, #-1
	mov	x2, x24
	bl	_lchown
	tbnz	x0, #63, LBB0_31
; %bb.10:
Lloh13:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _S_IXGRP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _S_IXGRP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_chmod
	tbz	x0, #63, LBB0_15
; %bb.11:
Lloh28:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_33
LBB0_12:
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	x0, [x8]
Lloh39:
	adrp	x8, _EEXIST@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.13:
Lloh42:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	cbnz	x22, LBB0_7
LBB0_14:
	mov	x24, #0
LBB0_15:
	mov	x0, x23
	bl	_os_strlen
	mov	x23, x0
	ldr	x0, [x21]
	bl	_os_strlen
	add	w8, w23, w0
	add	w8, w8, #1
	cmp	w8, #4
	b.lo	LBB0_17
; %bb.16:
Lloh47:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.9@PAGE
Lloh51:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_34
LBB0_17:
Lloh52:
	adrp	x8, _PF_UNIX@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x20]
	tbnz	w0, #31, LBB0_32
; %bb.18:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
Lloh58:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	x0, x21
	bl	_wpa_supplicant_ctrl_iface_path
	mov	x23, x0
	cbz	x0, LBB0_36
; %bb.19:
	ldr	w0, [sp, #36]
	mov	x1, x23
	mov	w2, #4
	bl	_os_strlcpy
	ldr	w0, [x20]
	add	x1, sp, #32
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_43
; %bb.20:
	cbz	x22, LBB0_22
LBB0_21:
	mov	x0, x23
	mov	w1, #-1
	mov	x2, x24
	bl	_lchown
	tbnz	x0, #63, LBB0_46
LBB0_22:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x23
	bl	_chmod
	tbnz	x0, #63, LBB0_45
; %bb.23:
	mov	x0, x23
	bl	_os_free
	ldr	w0, [x20]
Lloh61:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	bl	_fcntl
	tbnz	w0, #31, LBB0_26
; %bb.24:
Lloh64:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh65:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w0, [x20]
Lloh67:
	adrp	x9, _F_SETFL@GOTPAGE
Lloh68:
	ldr	x9, [x9, _F_SETFL@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x9]
	str	x8, [sp]
	bl	_fcntl
	tbz	x0, #63, LBB0_26
; %bb.25:
Lloh70:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh72:
	ldr	w22, [x8]
Lloh73:
	adrp	x8, _errno@GOTPAGE
Lloh74:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh75:
	ldr	x0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh76:
	adrp	x1, l_.str.19@PAGE
Lloh77:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
LBB0_26:
	ldr	w0, [x20]
Lloh78:
	adrp	x8, _wpa_supplicant_ctrl_iface_receive@GOTPAGE
Lloh79:
	ldr	x8, [x8, _wpa_supplicant_ctrl_iface_receive@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_eloop_register_read_sock
Lloh81:
	adrp	x8, _wpa_supplicant_ctrl_iface_msg_cb@GOTPAGE
Lloh82:
	ldr	x8, [x8, _wpa_supplicant_ctrl_iface_msg_cb@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	bl	_wpa_msg_register_cb
	mov	x0, x19
	bl	_os_free
	mov	w0, #0
	b	LBB0_41
LBB0_27:
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #10
	bl	_strtol
	ldrb	w8, [x22]
	cbz	w8, LBB0_29
; %bb.28:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_42
LBB0_29:
Lloh84:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh87:
	adrp	x1, l_.str.5@PAGE
Lloh88:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_34
LBB0_30:
Lloh89:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh91:
	ldr	w21, [x8]
	bl	_strerror
	stp	x23, x0, [sp]
Lloh92:
	adrp	x1, l_.str.3@PAGE
Lloh93:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_31:
Lloh94:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh95:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh96:
	ldr	w21, [x8]
Lloh97:
	adrp	x8, _errno@GOTPAGE
Lloh98:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh99:
	ldr	x0, [x8]
	bl	_strerror
	stp	x24, x0, [sp, #8]
	str	x23, [sp]
Lloh100:
	adrp	x1, l_.str.7@PAGE
Lloh101:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh102:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh103:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh104:
	ldr	w21, [x8]
Lloh105:
	adrp	x8, _errno@GOTPAGE
Lloh106:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh107:
	ldr	x0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh108:
	adrp	x1, l_.str.10@PAGE
Lloh109:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_33:
	mov	x0, x21
LBB0_34:
	bl	_wpa_printf
LBB0_35:
	mov	x23, #0
LBB0_36:
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_38
LBB0_37:
	bl	_close
	mov	w8, #-1
	str	w8, [x20]
LBB0_38:
	cbz	x23, LBB0_40
; %bb.39:
	mov	x0, x23
	bl	_unlink
	mov	x0, x23
	bl	_os_free
LBB0_40:
	mov	x0, x19
	bl	_os_free
	mov	w0, #-1
LBB0_41:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_42:
	mov	x24, x0
Lloh110:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh111:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh113:
	adrp	x1, l_.str.6@PAGE
Lloh114:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_43:
Lloh115:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh116:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh117:
	ldr	w25, [x8]
Lloh118:
	adrp	x28, _errno@GOTPAGE
Lloh119:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_strerror
	str	x0, [sp]
Lloh120:
	adrp	x1, l_.str.11@PAGE
Lloh121:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	ldr	w0, [x20]
	add	x1, sp, #32
	mov	w2, #12
	bl	_connect
	tbnz	x0, #63, LBB0_47
; %bb.44:
Lloh122:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh123:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh124:
	adrp	x1, l_.str.16@PAGE
Lloh125:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21]
	str	x23, [sp]
Lloh126:
	adrp	x1, l_.str.17@PAGE
Lloh127:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_os_free
	b	LBB0_35
LBB0_45:
Lloh128:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh129:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh130:
	ldr	w21, [x8]
Lloh131:
	adrp	x8, _errno@GOTPAGE
Lloh132:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh133:
	ldr	x0, [x8]
	bl	_strerror
	stp	x23, x0, [sp]
Lloh134:
	adrp	x1, l_.str.18@PAGE
Lloh135:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_52
LBB0_46:
Lloh136:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh137:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh138:
	ldr	w21, [x8]
Lloh139:
	adrp	x8, _errno@GOTPAGE
Lloh140:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh141:
	ldr	x0, [x8]
	bl	_strerror
	stp	x24, x0, [sp, #8]
	str	x23, [sp]
Lloh142:
	adrp	x1, l_.str.7@PAGE
Lloh143:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_52
LBB0_47:
	mov	x25, x28
Lloh144:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh145:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh146:
	adrp	x1, l_.str.12@PAGE
Lloh147:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_unlink
	tbnz	x0, #63, LBB0_50
; %bb.48:
	ldr	w0, [x20]
	add	x1, sp, #32
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_51
; %bb.49:
	ldr	w0, [x28]
	str	x23, [sp]
Lloh148:
	adrp	x1, l_.str.15@PAGE
Lloh149:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_wpa_printf
	cbnz	x22, LBB0_21
	b	LBB0_22
LBB0_50:
Lloh150:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh151:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh152:
	ldr	w21, [x8]
	ldr	x0, [x25]
	bl	_strerror
	stp	x23, x0, [sp]
Lloh153:
	adrp	x1, l_.str.13@PAGE
Lloh154:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_52
LBB0_51:
Lloh155:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh156:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh157:
	ldr	w21, [x8]
	ldr	x0, [x25]
	bl	_strerror
	str	x0, [sp]
Lloh158:
	adrp	x1, l_.str.14@PAGE
Lloh159:
	add	x1, x1, l_.str.14@PAGEOFF
LBB0_52:
	mov	x0, x21
	bl	_wpa_printf
	ldr	w0, [x20]
	tbz	w0, #31, LBB0_37
	b	LBB0_38
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpLdrGot	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpLdrGot	Lloh122, Lloh123
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpAdd	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpAdd	Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh144, Lloh145
	.loh AdrpAdd	Lloh148, Lloh149
	.loh AdrpAdd	Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpAdd	Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIR="

l_.str.1:                               ; @.str.1
	.asciz	" GROUP="

	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Using existing control interface directory."

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"mkdir[ctrl_interface=%s]: %s"

l_.str.4:                               ; @.str.4
	.asciz	"ctrl_interface_group=%d (from group name '%s')"

l_.str.5:                               ; @.str.5
	.asciz	"CTRL: Invalid group '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"ctrl_interface_group=%d"

l_.str.7:                               ; @.str.7
	.asciz	"lchown[ctrl_interface=%s,gid=%d]: %s"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
l_.str.8:                               ; @.str.8
	.asciz	"CTRL: chmod[ctrl_interface]: %s"

l_.str.9:                               ; @.str.9
	.asciz	"ctrl_iface path limit exceeded"

	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.10:                              ; @.str.10
	.asciz	"socket(PF_UNIX): %s"

	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
l_.str.11:                              ; @.str.11
	.asciz	"ctrl_iface bind(PF_UNIX) failed: %s"

l_.str.12:                              ; @.str.12
	.asciz	"ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination"

l_.str.13:                              ; @.str.13
	.asciz	"Could not unlink existing ctrl_iface socket '%s': %s"

l_.str.14:                              ; @.str.14
	.asciz	"supp-ctrl-iface-init: bind(PF_UNIX): %s"

l_.str.15:                              ; @.str.15
	.asciz	"Successfully replaced leftover ctrl_iface socket '%s'"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.16:                              ; @.str.16
	.asciz	"ctrl_iface exists and seems to be in use - cannot override it"

l_.str.17:                              ; @.str.17
	.asciz	"Delete '%s' manually if it is not used anymore"

l_.str.18:                              ; @.str.18
	.asciz	"chmod[ctrl_interface=%s]: %s"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
l_.str.19:                              ; @.str.19
	.asciz	"fcntl(ctrl, O_NONBLOCK): %s"

	.comm	_wpa_supplicant_ctrl_iface_receive,4,2 ; @wpa_supplicant_ctrl_iface_receive
	.comm	_wpa_supplicant_ctrl_iface_msg_cb,4,2 ; @wpa_supplicant_ctrl_iface_msg_cb
	.no_dead_strip	_wpas_ctrl_iface_open_sock
.subsections_via_symbols
