	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_mesh_init
_wpa_supplicant_mesh_init:              ## @wpa_supplicant_mesh_init
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.wpa_supplicant_mesh_init.basic_rates_erp+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.wpa_supplicant_mesh_init.basic_rates_erp(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	16(%rdi), %rax
	cmpl	$0, 20(%rax)
	je	LBB0_15
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hostapd_alloc_iface
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %r15
	movl	56(%r14), %eax
	movl	%eax, 32(%r15)
	movl	$1, (%r15)
	movl	$1, %edi
	movl	$8, %esi
	callq	_os_calloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_hostapd_alloc_bss_data
	movq	%rax, %r13
	movq	16(%r15), %rax
	movq	%r13, (%rax)
	testq	%r13, %r13
	je	LBB0_14
## %bb.4:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, 56(%rax)
	movq	(%r13), %rdi
	movq	(%r14), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movl	44(%r14), %eax
	movl	%eax, 52(%r13)
	movl	40(%r14), %eax
	movl	%eax, 48(%r13)
	movq	%r15, 40(%r13)
	movq	_mesh_mpm_free_sta@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	(%r12), %eax
	cmpl	%eax, %edx
	je	LBB0_7
## %bb.5:
	movl	4(%r12), %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,4), %eax
	cmpl	%eax, %edx
	jne	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %edx
LBB0_7:
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movl	%edx, 8(%r14)
	movq	%rbx, 32(%r14)
	xorl	%eax, %eax
	callq	_hostapd_config_defaults
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %r12
	movq	56(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	$1, (%rax)
	movq	_MESH_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	16(%r14), %rcx
	movl	16(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	24(%r14), %edx
	movl	28(%r14), %esi
	callq	_ieee80211_is_dfs
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r12)
	movb	(%rax), %al
	movq	8(%r12), %rcx
	movb	%al, (%rcx)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movb	1(%rax), %al
	movq	8(%r12), %rcx
	movb	%al, 1(%rcx)
	movq	8(%r12), %rax
	movb	$32, 2(%rax)
LBB0_11:
	movq	%r12, 24(%r13)
	movq	%r12, 24(%r15)
	movq	16(%r14), %rax
	movl	12(%rax), %ecx
	movq	16(%r15), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, 20(%rdx)
	movl	8(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	12(%r14), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mesh_config_create
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, 8(%r15)
	leaq	24(%r12), %rsi
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_ieee80211_freq_to_chan
	movq	%rax, 16(%r12)
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movq	%r14, %rdi
	callq	_wpa_supplicant_mesh_deinit
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_msg
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.22:
	movl	%ecx, 28(%r12)
LBB0_23:
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.24:
	cmpq	$0, 32(%rbx)
	je	LBB0_33
## %bb.25:
	movq	8(%rbx), %rax
	movq	_DEFAULT_MAX_OPER_CHWIDTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.26:
	movq	32(%r12), %rax
	jmp	LBB0_28
LBB0_27:
	movq	%rax, 32(%r12)
LBB0_28:
	leaq	-128(%rax), %rcx
	cmpq	$2, %rcx
	jae	LBB0_30
## %bb.29:
	leaq	40(%r12), %rsi
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_ieee80211_freq_to_chan
	movl	4(%rbx), %eax
	addl	%eax, %eax
	addl	%eax, 40(%r12)
	jmp	LBB0_32
LBB0_30:
	cmpq	$130, %rax
	jne	LBB0_32
## %bb.31:
	leaq	40(%r12), %rsi
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_ieee80211_freq_to_chan
	movl	4(%rbx), %eax
	movl	40(%r12), %ecx
	leal	(%rcx,%rax,2), %eax
	addl	$8, %eax
	movl	%eax, 40(%r12)
LBB0_32:
	movl	16(%rbx), %edi
	movq	%r12, %rsi
	addq	$44, %rsi
	callq	_ieee80211_freq_to_chan
LBB0_33:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.34:
	movl	$-4, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	addl	$4, %ebx
	cmpl	$0, (%rax,%r13,4)
	leaq	1(%r13), %r13
	jg	LBB0_35
## %bb.36:
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.37:
	decq	%r13
	movl	%r13d, %r13d
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_os_memcpy
	movq	48(%r12), %rax
	movl	$-1, (%rax,%r13,4)
	jmp	LBB0_40
LBB0_38:
	movq	16(%r12), %rax
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.39:
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_os_memdup
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_14
LBB0_40:
	movq	%r14, %rdi
	callq	_wpa_drv_init_mesh
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_msg
	movl	$-1, %ebx
	jmp	LBB0_19
LBB0_42:
	movq	%r15, %rdi
	callq	_hostapd_setup_interface
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_19
LBB0_44:
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_wpa_supplicant_conf_ap_ht
	jmp	LBB0_16
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.wpa_supplicant_mesh_init.basic_rates_erp
l___const.wpa_supplicant_mesh_init.basic_rates_erp:
	.long	10                              ## 0xa
	.long	20                              ## 0x14
	.long	55                              ## 0x37
	.long	60                              ## 0x3c
	.long	110                             ## 0x6e
	.long	120                             ## 0x78
	.long	240                             ## 0xf0
	.long	4294967295                      ## 0xffffffff

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user_mpm is not enabled in configuration"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_mesh_mpm_free_sta,4,2          ## @mesh_mpm_free_sta
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"mesh: pri/sec channels switched"

	.comm	_MESH_ENABLED,4,2               ## @MESH_ENABLED
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported mesh mode frequency: %d MHz"

	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_DEFAULT_MAX_OPER_CHWIDTH,8,3   ## @DEFAULT_MAX_OPER_CHWIDTH
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
L_.str.3:                               ## @.str.3
	.asciz	"Failed to init mesh in driver"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize hostapd interface for mesh"

	.no_dead_strip	_wpa_supplicant_mesh_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_mesh_init
_wpa_supplicant_mesh_init:              ; @wpa_supplicant_mesh_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, l___const.wpa_supplicant_mesh_init.basic_rates_erp@PAGE
Lloh4:
	add	x8, x8, l___const.wpa_supplicant_mesh_init.basic_rates_erp@PAGEOFF
	ldp	q1, q0, [x8]
	stp	q1, q0, [sp, #16]
	ldr	x8, [x0, #16]
	ldr	w8, [x8, #20]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	bl	_hostapd_alloc_iface
	str	x0, [x19, #48]
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	ldr	w8, [x19, #56]
	str	w8, [x0, #32]
	mov	w8, #1
	str	w8, [x0]
	mov	w0, #1
	mov	w1, #8
	bl	_os_calloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_14
; %bb.3:
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	bl	_hostapd_alloc_bss_data
	ldr	x8, [x21, #16]
	str	x0, [x8]
	cbz	x0, LBB0_14
; %bb.4:
	mov	x24, x0
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	str	x19, [x8, #56]
	ldr	x0, [x0]
	ldr	x1, [x19]
Lloh5:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	d0, [x19, #40]
	str	d0, [x24, #48]
Lloh8:
	adrp	x8, _mesh_mpm_free_sta@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mesh_mpm_free_sta@GOTPAGEOFF]
	str	x21, [x24, #40]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x24, #32]
	ldr	w23, [x20]
	ldr	w8, [x22]
	cmp	w23, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w9, [x22, #4]
	mov	w10, #20
	madd	w8, w9, w10, w8
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w23, [x22]
LBB0_7:
	str	w23, [x19, #8]
	str	x20, [x19, #32]
	bl	_hostapd_config_defaults
	cbz	x0, LBB0_14
; %bb.8:
	mov	x22, x0
	ldr	x8, [x0, #56]
	ldr	x8, [x8]
	str	x8, [x24, #8]
	mov	w9, #1
	str	w9, [x8]
Lloh16:
	adrp	x9, _MESH_ENABLED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MESH_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x8, #12]
	ldr	x9, [x19, #16]
	ldr	w9, [x9, #16]
	str	w9, [x8, #8]
	ldr	w0, [x20]
	ldp	w2, w1, [x19, #24]
	bl	_ieee80211_is_dfs
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w9, [x8]
	cbz	w9, LBB0_11
; %bb.10:
	movi.2s	v0, #1
	str	d0, [x22]
	ldrb	w8, [x8]
	ldr	x9, [x22, #8]
	strb	w8, [x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w8, [x8, #1]
	ldr	x9, [x22, #8]
	strb	w8, [x9, #1]
	ldr	x8, [x22, #8]
	mov	w9, #32
	strb	w9, [x8, #2]
LBB0_11:
	str	x22, [x24, #24]
	str	x22, [x21, #24]
	ldr	x8, [x19, #16]
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	ldr	d0, [x8, #8]
	str	d0, [x9, #16]
	ldr	x8, [x24, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #12]
	mov	w2, #4
	bl	_os_strlcpy
	mov	x0, x19
	mov	x1, x20
	bl	_mesh_config_create
	cbz	x0, LBB0_14
; %bb.12:
	str	x0, [x21, #8]
	add	x1, x22, #24
	mov	x0, x23
	bl	_ieee80211_freq_to_chan
	str	x0, [x22, #16]
Lloh19:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.13:
Lloh22:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_14:
	mov	x0, x19
	bl	_wpa_supplicant_mesh_deinit
LBB0_15:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_16:
Lloh30:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldr	x8, [sp, #56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
; %bb.21:
	str	w8, [x22, #28]
LBB0_22:
Lloh38:
	adrp	x8, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_33
; %bb.23:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_33
; %bb.24:
	ldr	x8, [x20, #8]
Lloh41:
	adrp	x9, _DEFAULT_MAX_OPER_CHWIDTH@GOTPAGE
Lloh42:
	ldr	x9, [x9, _DEFAULT_MAX_OPER_CHWIDTH@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	ldr	x8, [x22, #32]
	b	LBB0_27
LBB0_26:
	str	x8, [x22, #32]
LBB0_27:
	sub	x9, x8, #128
	cmp	x9, #2
	b.hs	LBB0_29
; %bb.28:
	add	x1, x22, #40
	mov	x0, x23
	bl	_ieee80211_freq_to_chan
	ldr	w8, [x20, #4]
	ldr	w9, [x22, #40]
	add	w8, w9, w8, lsl #1
	b	LBB0_31
LBB0_29:
	cmp	x8, #130
	b.ne	LBB0_32
; %bb.30:
	add	x1, x22, #40
	mov	x0, x23
	bl	_ieee80211_freq_to_chan
	ldr	w8, [x20, #4]
	ldr	w9, [x22, #40]
	add	w8, w9, w8, lsl #1
	add	w8, w8, #8
LBB0_31:
	str	w8, [x22, #40]
LBB0_32:
	ldr	w0, [x20, #16]
	add	x1, x22, #44
	bl	_ieee80211_freq_to_chan
LBB0_33:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_38
; %bb.34:
	mov	x24, #0
	mov	w23, #-4
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x24, lsl #2]
	add	x24, x24, #1
	add	w23, w23, #4
	cmp	w9, #0
	b.gt	LBB0_35
; %bb.36:
	mov	x0, x24
	mov	w1, #4
	bl	_os_calloc
	str	x0, [x22, #48]
	cbz	x0, LBB0_14
; %bb.37:
	sub	x24, x24, #1
	ldr	x1, [x20, #24]
	mov	x2, x23
	bl	_os_memcpy
	ldr	x8, [x22, #48]
	mov	w9, #-1
	str	w9, [x8, w24, uxtw #2]
	b	LBB0_40
LBB0_38:
	ldr	x8, [x22, #16]
Lloh44:
	adrp	x9, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh45:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.39:
	add	x0, sp, #16
	mov	w1, #32
	bl	_os_memdup
	str	x0, [x22, #48]
	cbz	x0, LBB0_14
LBB0_40:
	mov	x0, x19
	bl	_wpa_drv_init_mesh
	cbz	x0, LBB0_42
; %bb.41:
Lloh47:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.3@PAGE
Lloh51:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_18
LBB0_42:
	mov	x0, x21
	bl	_hostapd_setup_interface
	cbz	x0, LBB0_44
; %bb.43:
Lloh52:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_18
LBB0_44:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_wpa_supplicant_conf_ap_ht
	b	LBB0_17
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.wpa_supplicant_mesh_init.basic_rates_erp
l___const.wpa_supplicant_mesh_init.basic_rates_erp:
	.long	10                              ; 0xa
	.long	20                              ; 0x14
	.long	55                              ; 0x37
	.long	60                              ; 0x3c
	.long	110                             ; 0x6e
	.long	120                             ; 0x78
	.long	240                             ; 0xf0
	.long	4294967295                      ; 0xffffffff

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user_mpm is not enabled in configuration"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_mesh_mpm_free_sta,4,2          ; @mesh_mpm_free_sta
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"mesh: pri/sec channels switched"

	.comm	_MESH_ENABLED,4,2               ; @MESH_ENABLED
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported mesh mode frequency: %d MHz"

	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_DEFAULT_MAX_OPER_CHWIDTH,8,3   ; @DEFAULT_MAX_OPER_CHWIDTH
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
l_.str.3:                               ; @.str.3
	.asciz	"Failed to init mesh in driver"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize hostapd interface for mesh"

	.no_dead_strip	_wpa_supplicant_mesh_init
.subsections_via_symbols
