	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_mesh_get_routelist        ## -- Begin function wlan_mesh_get_routelist
	.p2align	4, 0x90
_wlan_mesh_get_routelist:               ## @wlan_mesh_get_routelist
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IEEE80211_MESH_RTCMD_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -564(%rbp)
	movq	$512, -576(%rbp)                ## imm = 0x200
	movl	(%rdi), %edi
	movq	_IEEE80211_IOC_MESH_RTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-564(%rbp), %rdx
	leaq	-560(%rbp), %r12
	leaq	-576(%rbp), %r8
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_wlan_ioctl
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movq	-576(%rbp), %rax
	shrq	$2, %rax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movl	%eax, %r13d
	movq	_RowStatus_active@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	decq	%r13
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_wlan_mesh_new_route
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wlan_mesh_add_rtentry
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_wlan_mesh_free_route
	jmp	LBB0_7
LBB0_8:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_4:
	movl	$-1, %ecx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ecx, %eax
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MESH_RTCMD_LIST,4,2  ## @IEEE80211_MESH_RTCMD_LIST
	.comm	_IEEE80211_IOC_MESH_RTCMD,4,2   ## @IEEE80211_IOC_MESH_RTCMD
	.comm	_RowStatus_active,4,2           ## @RowStatus_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_mesh_get_routelist        ; -- Begin function wlan_mesh_get_routelist
	.p2align	2
_wlan_mesh_get_routelist:               ; @wlan_mesh_get_routelist
	.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
	sub	sp, sp, #544
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _IEEE80211_MESH_RTCMD_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MESH_RTCMD_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	w8, #512
	str	x8, [sp, #8]
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _IEEE80211_IOC_MESH_RTCMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IOC_MESH_RTCMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #20
	add	x3, sp, #24
	add	x4, sp, #8
	mov	w5, #0
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	ubfx	x22, x8, #2, #32
	add	x20, sp, #24
Lloh9:
	adrp	x23, _RowStatus_active@GOTPAGE
Lloh10:
	ldr	x23, [x23, _RowStatus_active@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	subs	x22, x22, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_wlan_mesh_new_route
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	add	x0, x0, #4
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x23]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_wlan_mesh_add_rtentry
	tbz	x0, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_wlan_mesh_free_route
	b	LBB0_3
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #544
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MESH_RTCMD_LIST,4,2  ; @IEEE80211_MESH_RTCMD_LIST
	.comm	_IEEE80211_IOC_MESH_RTCMD,4,2   ; @IEEE80211_IOC_MESH_RTCMD
	.comm	_RowStatus_active,4,2           ; @RowStatus_active
.subsections_via_symbols
