	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_parse_mesh_setup
_nl80211_parse_mesh_setup:              ## @nl80211_parse_mesh_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NL80211_MESH_SETUP_ATTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	1(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_MESH_SETUP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %r13
	movq	_nl80211_mesh_setup_params_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nla_parse_nested
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:
	callq	_nla_get_u8
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_IEEE80211_SYNC_METHOD_VENDOR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
LBB0_8:
	movq	_NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.9:
	callq	_nla_get_u8
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_IEEE80211_PATH_PROTOCOL_HWMP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_IEEE80211_PATH_PROTOCOL_VENDOR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
LBB0_13:
	movq	_NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.14:
	callq	_nla_get_u8
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:
	movq	_IEEE80211_PATH_METRIC_AIRTIME@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_IEEE80211_PATH_METRIC_VENDOR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
LBB0_18:
	movq	_NL80211_MESH_SETUP_IE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_is_valid_ie_attr
	testl	%eax, %eax
	je	LBB0_1
## %bb.20:
	movq	%rbx, %rdi
	callq	_nla_data
	movl	%eax, 28(%r14)
	movq	%rbx, %rdi
	callq	_nla_len
	movl	%eax, 24(%r14)
LBB0_21:
	movq	_NL80211_MESH_SETUP_USERSPACE_MPM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movq	_NL80211_FEATURE_USERSPACE_MPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
LBB0_23:
	callq	_nla_get_flag
	movl	%eax, (%r14)
	movq	_NL80211_MESH_SETUP_USERSPACE_AUTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_flag
	movq	%rax, 16(%r14)
	movq	_NL80211_MESH_SETUP_USERSPACE_AMPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_flag
	movq	%rax, %rcx
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.24:
	movl	$1, (%r14)
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_MESH_SETUP_ATTR_MAX,4,2 ## @NL80211_MESH_SETUP_ATTR_MAX
	.comm	_NL80211_ATTR_MESH_SETUP,8,3    ## @NL80211_ATTR_MESH_SETUP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nl80211_mesh_setup_params_policy,4,2 ## @nl80211_mesh_setup_params_policy
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,8,3 ## @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC
	.comm	_IEEE80211_SYNC_METHOD_VENDOR,4,2 ## @IEEE80211_SYNC_METHOD_VENDOR
	.comm	_IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET,4,2 ## @IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,8,3 ## @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL
	.comm	_IEEE80211_PATH_PROTOCOL_VENDOR,4,2 ## @IEEE80211_PATH_PROTOCOL_VENDOR
	.comm	_IEEE80211_PATH_PROTOCOL_HWMP,4,2 ## @IEEE80211_PATH_PROTOCOL_HWMP
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,8,3 ## @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC
	.comm	_IEEE80211_PATH_METRIC_VENDOR,4,2 ## @IEEE80211_PATH_METRIC_VENDOR
	.comm	_IEEE80211_PATH_METRIC_AIRTIME,4,2 ## @IEEE80211_PATH_METRIC_AIRTIME
	.comm	_NL80211_MESH_SETUP_IE,8,3      ## @NL80211_MESH_SETUP_IE
	.comm	_NL80211_MESH_SETUP_USERSPACE_MPM,8,3 ## @NL80211_MESH_SETUP_USERSPACE_MPM
	.comm	_NL80211_FEATURE_USERSPACE_MPM,4,2 ## @NL80211_FEATURE_USERSPACE_MPM
	.comm	_NL80211_MESH_SETUP_USERSPACE_AUTH,8,3 ## @NL80211_MESH_SETUP_USERSPACE_AUTH
	.comm	_NL80211_MESH_SETUP_USERSPACE_AMPE,8,3 ## @NL80211_MESH_SETUP_USERSPACE_AMPE
	.no_dead_strip	_nl80211_parse_mesh_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_parse_mesh_setup
_nl80211_parse_mesh_setup:              ; @nl80211_parse_mesh_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _NL80211_MESH_SETUP_ATTR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_MESH_SETUP_ATTR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _NL80211_ATTR_MESH_SETUP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_ATTR_MESH_SETUP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	cbz	w2, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _nl80211_mesh_setup_params_policy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nl80211_mesh_setup_params_policy@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_nla_parse_nested
	cbz	x0, LBB0_5
LBB0_2:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldur	x8, [x29, #-40]
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_18
; %bb.4:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh20:
	adrp	x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_nla_get_u8
Lloh23:
	adrp	x8, _IEEE80211_SYNC_METHOD_VENDOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_SYNC_METHOD_VENDOR@GOTPAGEOFF]
Lloh25:
	adrp	x9, _IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_7:
Lloh27:
	adrp	x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_nla_get_u8
Lloh30:
	adrp	x8, _IEEE80211_PATH_PROTOCOL_VENDOR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_PATH_PROTOCOL_VENDOR@GOTPAGEOFF]
Lloh32:
	adrp	x9, _IEEE80211_PATH_PROTOCOL_HWMP@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IEEE80211_PATH_PROTOCOL_HWMP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #36]
LBB0_9:
Lloh34:
	adrp	x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_nla_get_u8
Lloh37:
	adrp	x8, _IEEE80211_PATH_METRIC_VENDOR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IEEE80211_PATH_METRIC_VENDOR@GOTPAGEOFF]
Lloh39:
	adrp	x9, _IEEE80211_PATH_METRIC_AIRTIME@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IEEE80211_PATH_METRIC_AIRTIME@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_11:
Lloh41:
	adrp	x8, _NL80211_MESH_SETUP_IE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_MESH_SETUP_IE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	x21, [x20, x8, lsl #3]
	cbz	x21, LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_is_valid_ie_attr
	cbz	w0, LBB0_2
; %bb.13:
	mov	x0, x21
	bl	_nla_data
	str	w0, [x19, #28]
	mov	x0, x21
	bl	_nla_len
	str	w0, [x19, #24]
LBB0_14:
Lloh44:
	adrp	x8, _NL80211_MESH_SETUP_USERSPACE_MPM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NL80211_MESH_SETUP_USERSPACE_MPM@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x22]
Lloh47:
	adrp	x9, _NL80211_FEATURE_USERSPACE_MPM@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NL80211_FEATURE_USERSPACE_MPM@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_16:
	bl	_nla_get_flag
	str	w0, [x19]
Lloh50:
	adrp	x8, _NL80211_MESH_SETUP_USERSPACE_AUTH@GOTPAGE
Lloh51:
	ldr	x8, [x8, _NL80211_MESH_SETUP_USERSPACE_AUTH@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_flag
	str	x0, [x19, #16]
Lloh53:
	adrp	x8, _NL80211_MESH_SETUP_USERSPACE_AMPE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NL80211_MESH_SETUP_USERSPACE_AMPE@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_flag
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.17:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_MESH_SETUP_ATTR_MAX,4,2 ; @NL80211_MESH_SETUP_ATTR_MAX
	.comm	_NL80211_ATTR_MESH_SETUP,8,3    ; @NL80211_ATTR_MESH_SETUP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nl80211_mesh_setup_params_policy,4,2 ; @nl80211_mesh_setup_params_policy
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,8,3 ; @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC
	.comm	_IEEE80211_SYNC_METHOD_VENDOR,4,2 ; @IEEE80211_SYNC_METHOD_VENDOR
	.comm	_IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET,4,2 ; @IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,8,3 ; @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL
	.comm	_IEEE80211_PATH_PROTOCOL_VENDOR,4,2 ; @IEEE80211_PATH_PROTOCOL_VENDOR
	.comm	_IEEE80211_PATH_PROTOCOL_HWMP,4,2 ; @IEEE80211_PATH_PROTOCOL_HWMP
	.comm	_NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,8,3 ; @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC
	.comm	_IEEE80211_PATH_METRIC_VENDOR,4,2 ; @IEEE80211_PATH_METRIC_VENDOR
	.comm	_IEEE80211_PATH_METRIC_AIRTIME,4,2 ; @IEEE80211_PATH_METRIC_AIRTIME
	.comm	_NL80211_MESH_SETUP_IE,8,3      ; @NL80211_MESH_SETUP_IE
	.comm	_NL80211_MESH_SETUP_USERSPACE_MPM,8,3 ; @NL80211_MESH_SETUP_USERSPACE_MPM
	.comm	_NL80211_FEATURE_USERSPACE_MPM,4,2 ; @NL80211_FEATURE_USERSPACE_MPM
	.comm	_NL80211_MESH_SETUP_USERSPACE_AUTH,8,3 ; @NL80211_MESH_SETUP_USERSPACE_AUTH
	.comm	_NL80211_MESH_SETUP_USERSPACE_AMPE,8,3 ; @NL80211_MESH_SETUP_USERSPACE_AMPE
	.no_dead_strip	_nl80211_parse_mesh_setup
.subsections_via_symbols
