	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_join_mesh           ## -- Begin function __cfg80211_join_mesh
	.p2align	4, 0x90
___cfg80211_join_mesh:                  ## @__cfg80211_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	%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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rsi), %r12
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IEEE80211_MAX_MESH_ID_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	%r12, %rdi
	callq	_ASSERT_WDEV_LOCK
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_WIPHY_FLAG_MESH_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
LBB0_5:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.6:
	movq	_EALREADY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	cmpq	$0, 32(%r14)
	jne	LBB0_1
	jmp	LBB0_5
LBB0_7:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.9:
	movq	16(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.10:
	cmpq	$0, (%r14)
	jne	LBB0_20
## %bb.11:
	movups	32(%r12), %xmm0
	movups	%xmm0, (%r14)
	cmpq	$0, (%r14)
	jne	LBB0_20
## %bb.12:
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:
	movq	_IEEE80211_CHAN_NO_IBSS@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	8(%r13), %r8
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	je	LBB0_8
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	(%r8,%rsi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rdx), %edi
	testl	%edi, %edi
	jle	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rdx), %rdx
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ecx, (%rdx)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=2
	addq	$8, %rdx
	decq	%rdi
	jne	LBB0_18
	jmp	LBB0_25
LBB0_19:
	movq	%rdx, (%r14)
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	4(%rdx), %eax
	movl	%eax, 8(%r14)
LBB0_20:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_cfg80211_reg_can_beacon
	testl	%eax, %eax
	je	LBB0_8
## %bb.21:
	movq	(%r14), %rdx
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_cfg80211_can_use_chan
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_rdev_join_mesh
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movl	24(%r12), %edi
	movl	24(%r14), %esi
	movq	16(%r14), %rdx
	callq	_memcpy
	movq	16(%r14), %rax
	movq	%rax, 16(%r12)
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ## @IEEE80211_MAX_SSID_LEN
	.comm	_IEEE80211_MAX_MESH_ID_LEN,8,3  ## @IEEE80211_MAX_MESH_ID_LEN
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WIPHY_FLAG_MESH_AUTH,4,2       ## @WIPHY_FLAG_MESH_AUTH
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ## @IEEE80211_CHAN_NO_IBSS
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ## @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_join_mesh           ; -- Begin function __cfg80211_join_mesh
	.p2align	2
___cfg80211_join_mesh:                  ; @__cfg80211_join_mesh
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_MAX_MESH_ID_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_MAX_MESH_ID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	x0, x20
	bl	_ASSERT_WDEV_LOCK
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _WIPHY_FLAG_MESH_AUTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WIPHY_FLAG_MESH_AUTH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _EALREADY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_11
	b	LBB0_2
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_25
; %bb.6:
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.7:
	ldr	x8, [x19]
	cbnz	x8, LBB0_21
; %bb.8:
	ldr	q0, [x20, #32]
	str	q0, [x19]
	ldr	x8, [x19]
	cbnz	x8, LBB0_21
; %bb.9:
Lloh14:
	adrp	x8, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.10:
	mov	x9, #0
	ldr	x10, [x23, #8]
Lloh17:
	adrp	x11, _IEEE80211_CHAN_NO_IBSS@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IEEE80211_CHAN_NO_IBSS@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	adrp	x12, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh21:
	ldr	x12, [x12, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh23:
	adrp	x12, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh24:
	ldr	x12, [x12, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh26:
	adrp	x12, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh27:
	ldr	x12, [x12, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	orr	w11, w11, w12
	b	LBB0_15
LBB0_11:
Lloh29:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_25
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x13, [x10, x9, lsl #3]
	cbz	x13, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w12, [x13]
	cmp	w12, #1
	b.lt	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x13, [x13, #8]
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x13]
	tst	w11, w14
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x13, x13, #8
	subs	x12, x12, #1
	b.ne	LBB0_18
	b	LBB0_14
LBB0_20:
	str	x13, [x19]
Lloh31:
	adrp	x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x13, #4]
	stp	w9, w8, [x19, #8]
LBB0_21:
	mov	x0, x23
	mov	x1, x19
	bl	_cfg80211_reg_can_beacon
	cbz	w0, LBB0_25
; %bb.22:
	ldr	x2, [x19]
Lloh34:
	adrp	x8, _CHAN_MODE_SHARED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CHAN_MODE_SHARED@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x20
	bl	_cfg80211_can_use_chan
	cbnz	w0, LBB0_13
; %bb.23:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_rdev_join_mesh
	cbnz	w0, LBB0_13
; %bb.24:
	ldr	w0, [x20, #24]
	ldr	w1, [x19, #24]
	ldr	x2, [x19, #16]
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	stp	x9, x8, [x20, #8]
	b	LBB0_13
LBB0_25:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ; @IEEE80211_MAX_SSID_LEN
	.comm	_IEEE80211_MAX_MESH_ID_LEN,8,3  ; @IEEE80211_MAX_MESH_ID_LEN
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WIPHY_FLAG_MESH_AUTH,4,2       ; @WIPHY_FLAG_MESH_AUTH
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ; @IEEE80211_CHAN_NO_IBSS
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ; @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
.subsections_via_symbols
