	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_join_mesh
_nl80211_join_mesh:                     ## @nl80211_join_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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r14
	movq	_default_mesh_config@GOTPCREL(%rip), %rsi
	leaq	-144(%rbp), %rdi
	movl	$56, %edx
	callq	_memcpy
	movq	_default_mesh_setup@GOTPCREL(%rip), %rsi
	leaq	-88(%rbp), %rdi
	movl	$56, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_MESH_CONFIG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.1:
	leaq	-144(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nl80211_parse_mesh_config
	testl	%eax, %eax
	jne	LBB0_23
## %bb.2:
	movq	(%rbx), %rax
LBB0_3:
	movq	_NL80211_ATTR_MESH_ID@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_nla_len
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_data
	movl	%eax, -40(%rbp)
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_MCAST_RATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movl	-56(%rbp), %r12d
	callq	_nla_get_u32
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_nl80211_parse_mcast_rate
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	(%rbx), %rax
LBB0_9:
	movq	_NL80211_ATTR_BEACON_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	callq	_nla_get_u32
	movl	%eax, -88(%rbp)
	addl	$-10001, %eax                   ## imm = 0xD8EF
	cmpl	$-9991, %eax                    ## imm = 0xD8F9
	jb	LBB0_5
## %bb.11:
	movq	(%rbx), %rax
LBB0_12:
	movq	_NL80211_ATTR_DTIM_PERIOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	callq	_nla_get_u32
	movl	%eax, -84(%rbp)
	addl	$-101, %eax
	cmpl	$-100, %eax
	jae	LBB0_14
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%rbx), %rax
LBB0_15:
	movq	_NL80211_ATTR_MESH_SETUP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_17
## %bb.16:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nl80211_parse_mesh_setup
	testl	%eax, %eax
	jne	LBB0_23
LBB0_17:
	cmpq	$0, -64(%rbp)
	je	LBB0_19
## %bb.18:
	movl	$0, -136(%rbp)
LBB0_19:
	movq	(%rbx), %rax
	movq	_NL80211_ATTR_WIPHY_FREQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.20:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nl80211_parse_chandef
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_22
LBB0_21:
	movq	$0, -72(%rbp)
LBB0_22:
	leaq	-88(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cfg80211_join_mesh
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_default_mesh_config,4,2        ## @default_mesh_config
	.comm	_default_mesh_setup,4,2         ## @default_mesh_setup
	.comm	_NL80211_ATTR_MESH_CONFIG,8,3   ## @NL80211_ATTR_MESH_CONFIG
	.comm	_NL80211_ATTR_MESH_ID,8,3       ## @NL80211_ATTR_MESH_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_ATTR_MCAST_RATE,8,3    ## @NL80211_ATTR_MCAST_RATE
	.comm	_NL80211_ATTR_BEACON_INTERVAL,8,3 ## @NL80211_ATTR_BEACON_INTERVAL
	.comm	_NL80211_ATTR_DTIM_PERIOD,8,3   ## @NL80211_ATTR_DTIM_PERIOD
	.comm	_NL80211_ATTR_MESH_SETUP,8,3    ## @NL80211_ATTR_MESH_SETUP
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ## @NL80211_ATTR_WIPHY_FREQ
	.no_dead_strip	_nl80211_join_mesh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_join_mesh
_nl80211_join_mesh:                     ; @nl80211_join_mesh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x1
	ldr	x8, [x1, #8]
	ldp	x19, x20, [x8]
Lloh0:
	adrp	x1, _default_mesh_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _default_mesh_config@GOTPAGEOFF]
	add	x0, sp, #56
	mov	w2, #56
	bl	_memcpy
Lloh2:
	adrp	x1, _default_mesh_setup@GOTPAGE
Lloh3:
	ldr	x1, [x1, _default_mesh_setup@GOTPAGEOFF]
	mov	x0, sp
	mov	w2, #56
	bl	_memcpy
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _NL80211_ATTR_MESH_CONFIG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NL80211_ATTR_MESH_CONFIG@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_3
; %bb.1:
	add	x1, sp, #56
	mov	x0, x21
	mov	x2, #0
	bl	_nl80211_parse_mesh_config
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x21]
LBB0_3:
Lloh7:
	adrp	x22, _NL80211_ATTR_MESH_ID@GOTPAGE
Lloh8:
	ldr	x22, [x22, _NL80211_ATTR_MESH_ID@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_13
; %bb.4:
	bl	_nla_len
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_data
	str	w0, [sp, #48]
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	str	x0, [sp, #40]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _NL80211_ATTR_MCAST_RATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_ATTR_MCAST_RATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w22, [sp, #32]
	bl	_nla_get_u32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_nl80211_parse_mcast_rate
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x21]
LBB0_8:
Lloh12:
	adrp	x9, _NL80211_ATTR_BEACON_INTERVAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_ATTR_BEACON_INTERVAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_11
; %bb.9:
	bl	_nla_get_u32
	str	w0, [sp]
	mov	w8, #-10001
	mov	w9, #-9991
	add	w8, w0, w8
	cmp	w8, w9
	b.lo	LBB0_13
; %bb.10:
	ldr	x8, [x21]
LBB0_11:
Lloh15:
	adrp	x9, _NL80211_ATTR_DTIM_PERIOD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NL80211_ATTR_DTIM_PERIOD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_16
; %bb.12:
	bl	_nla_get_u32
	str	w0, [sp, #4]
	sub	w8, w0, #101
	cmn	w8, #100
	b.hs	LBB0_15
LBB0_13:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	ldr	x8, [x21]
LBB0_16:
Lloh21:
	adrp	x9, _NL80211_ATTR_MESH_SETUP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL80211_ATTR_MESH_SETUP@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x1, sp
	mov	x0, x21
	bl	_nl80211_parse_mesh_setup
	cbnz	w0, LBB0_14
LBB0_18:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_20
; %bb.19:
	str	wzr, [sp, #64]
LBB0_20:
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x8, sp
	add	x2, x8, #16
	mov	x0, x19
	mov	x1, x21
	bl	_nl80211_parse_chandef
	cbnz	w0, LBB0_14
	b	LBB0_23
LBB0_22:
	str	xzr, [sp, #16]
LBB0_23:
	mov	x2, sp
	add	x3, sp, #56
	mov	x0, x19
	mov	x1, x20
	bl	_cfg80211_join_mesh
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_default_mesh_config,4,2        ; @default_mesh_config
	.comm	_default_mesh_setup,4,2         ; @default_mesh_setup
	.comm	_NL80211_ATTR_MESH_CONFIG,8,3   ; @NL80211_ATTR_MESH_CONFIG
	.comm	_NL80211_ATTR_MESH_ID,8,3       ; @NL80211_ATTR_MESH_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_ATTR_MCAST_RATE,8,3    ; @NL80211_ATTR_MCAST_RATE
	.comm	_NL80211_ATTR_BEACON_INTERVAL,8,3 ; @NL80211_ATTR_BEACON_INTERVAL
	.comm	_NL80211_ATTR_DTIM_PERIOD,8,3   ; @NL80211_ATTR_DTIM_PERIOD
	.comm	_NL80211_ATTR_MESH_SETUP,8,3    ; @NL80211_ATTR_MESH_SETUP
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ; @NL80211_ATTR_WIPHY_FREQ
	.no_dead_strip	_nl80211_join_mesh
.subsections_via_symbols
