	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_start_mesh           ## -- Begin function ieee80211_start_mesh
	.p2align	4, 0x90
_ieee80211_start_mesh:                  ## @ieee80211_start_mesh
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r15
	movq	24(%rdi), %r12
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_ieee80211_get_sdata_band
	movl	%eax, %r13d
	incl	8(%r12)
	leaq	4(%r12), %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_ieee80211_configure_filter
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movl	56(%rbx), %edi
	callq	_ieee80211_mesh_sync_ops_get
	movl	%eax, 60(%rbx)
	movl	$0, 32(%rbx)
	movq	$0, 48(%rbx)
	movq	_MESH_WORK_HOUSEKEEPING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_ieee80211_mesh_root_setup
	leaq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_ieee80211_queue_work
	movl	36(%rbx), %eax
	movl	%eax, 12(%rbx)
	movl	$1, 4(%rbx)
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ieee80211_mandatory_rates
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_ieee80211_mps_local_status_update
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_ieee80211_mesh_build_beacon
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ieee80211_stop_mesh
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	orl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	orl	%r12d, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ieee80211_bss_info_change_notify
	movl	(%rbx), %edi
	callq	_netif_carrier_on
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_MESH_WORK_HOUSEKEEPING,4,2     ## @MESH_WORK_HOUSEKEEPING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_start_mesh           ; -- Begin function ieee80211_start_mesh
	.p2align	2
_ieee80211_start_mesh:                  ; @ieee80211_start_mesh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _BSS_CHANGED_BEACON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _BSS_CHANGED_HT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
Lloh12:
	adrp	x8, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	bl	_ieee80211_get_sdata_band
	mov	x21, x0
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	add	x0, x20, #4
	bl	_atomic_inc
	mov	x0, x20
	bl	_ieee80211_configure_filter
	stp	xzr, xzr, [x19, #64]
	ldr	w0, [x19, #56]
	bl	_ieee80211_mesh_sync_ops_get
	mov	x22, x19
	str	wzr, [x22, #32]!
	str	w0, [x19, #60]
	str	xzr, [x19, #48]
Lloh15:
	adrp	x8, _MESH_WORK_HOUSEKEEPING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MESH_WORK_HOUSEKEEPING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_set_bit
	mov	x0, x22
	bl	_ieee80211_mesh_root_setup
	add	x1, x19, #16
	mov	x0, x20
	bl	_ieee80211_queue_work
	ldr	w8, [x19, #36]
	str	w8, [x19, #12]
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_ieee80211_mandatory_rates
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_ieee80211_mps_local_status_update
	mov	x20, x0
	mov	x0, x22
	bl	_ieee80211_mesh_build_beacon
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ieee80211_stop_mesh
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	orr	w8, w24, w23
	orr	w8, w8, w25
	orr	w8, w8, w26
	orr	w8, w8, w27
	orr	w1, w8, w20
	mov	x0, x19
	bl	_ieee80211_bss_info_change_notify
	ldr	w0, [x19]
	bl	_netif_carrier_on
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_MESH_WORK_HOUSEKEEPING,4,2     ; @MESH_WORK_HOUSEKEEPING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
