	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_update_mesh_config
_nl80211_update_mesh_config:            ## @nl80211_update_mesh_config
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	8(%rax), %r14
	movq	8(%r14), %r12
	movq	(%r12), %rcx
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	(%rax), %r15
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	leaq	-40(%rbp), %rax
	leaq	-44(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_nl80211_parse_mesh_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_wdev_lock
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$0, 8(%r12)
	cmovnel	%ecx, %ebx
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rdev_update_mesh_config
	movl	%eax, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_wdev_unlock
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.no_dead_strip	_nl80211_update_mesh_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_update_mesh_config
_nl80211_update_mesh_config:            ; @nl80211_update_mesh_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x1]
	ldr	x20, [x8, #8]
	ldr	x19, [x20, #8]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	x21, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x0, x1
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_nl80211_parse_mesh_config
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_wdev_lock
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _ENOLINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOLINK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w22, wzr, w9, ne
	cbnz	w22, LBB0_5
; %bb.4:
	ldr	w2, [sp, #4]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_rdev_update_mesh_config
	mov	x22, x0
LBB0_5:
	mov	x0, x19
	bl	_wdev_unlock
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.no_dead_strip	_nl80211_update_mesh_config
.subsections_via_symbols
