	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_mesh_config
_lbs_mesh_config:                       ## @lbs_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movq	-48(%rbp), %rbx
	cmpl	$128, %r12d
	je	LBB0_5
## %bb.1:
	movl	$-1, %eax
	cmpl	$129, %r12d
	jne	LBB0_6
## %bb.2:
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	(%rbx), %rax
	movabsq	$343597383680, %rcx             ## imm = 0x5000000000
	movq	%rcx, (%rax)
	movl	$67, 8(%rax)
	movq	_MARVELL_MESH_IE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_MARVELL_MESH_IE_SUBTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_MARVELL_MESH_IE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_MARVELL_MESH_PROTO_ID_HWMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_MARVELL_MESH_METRIC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_MARVELL_MESH_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	%rdx, 16(%rbx)
	movl	8(%rbx), %edi
	movl	8(%rax), %esi
	callq	_memcpy
LBB0_4:
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	16(%rbx), %rcx
	subq	%rax, %rcx
	addq	$4, %rcx
	movq	%rcx, 48(%rbx)
	movl	$4, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
LBB0_5:
	movl	(%r14), %edx
	movq	16(%rbx), %r8
	movl	8(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_lbs_deb_cmd
	movl	(%r14), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	___lbs_mesh_config_send
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_MARVELL_MESH_IE_TYPE,4,2       ## @MARVELL_MESH_IE_TYPE
	.comm	_MARVELL_MESH_IE_SUBTYPE,4,2    ## @MARVELL_MESH_IE_SUBTYPE
	.comm	_MARVELL_MESH_IE_VERSION,4,2    ## @MARVELL_MESH_IE_VERSION
	.comm	_MARVELL_MESH_PROTO_ID_HWMP,4,2 ## @MARVELL_MESH_PROTO_ID_HWMP
	.comm	_MARVELL_MESH_METRIC_ID,4,2     ## @MARVELL_MESH_METRIC_ID
	.comm	_MARVELL_MESH_CAPABILITY,4,2    ## @MARVELL_MESH_CAPABILITY
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ## @IEEE80211_MAX_SSID_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mesh config action %d type %x channel %d SSID %*pE\n"

	.no_dead_strip	_lbs_mesh_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lbs_mesh_config
lCPI0_0:
	.long	0                               ; 0x0
	.long	80                              ; 0x50
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lbs_mesh_config:                       ; @lbs_mesh_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	x22, [sp, #16]
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #56]
	ldr	x8, [x22]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	mov	w9, #67
	str	w9, [x8, #8]
Lloh5:
	adrp	x9, _MARVELL_MESH_IE_TYPE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MARVELL_MESH_IE_TYPE@GOTPAGEOFF]
	str	d0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _MARVELL_MESH_IE_SUBTYPE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MARVELL_MESH_IE_SUBTYPE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #40]
Lloh11:
	adrp	x8, _MARVELL_MESH_IE_VERSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MARVELL_MESH_IE_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MARVELL_MESH_PROTO_ID_HWMP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MARVELL_MESH_PROTO_ID_HWMP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #32]
Lloh17:
	adrp	x8, _MARVELL_MESH_METRIC_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MARVELL_MESH_METRIC_ID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _MARVELL_MESH_CAPABILITY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MARVELL_MESH_CAPABILITY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x2, [x8]
	str	x2, [x22, #16]
	ldr	w0, [x22, #8]
	ldr	w1, [x8, #8]
	bl	_memcpy
LBB0_4:
Lloh23:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	ldr	x9, [x22, #16]
	sub	x8, x9, x8
	add	x8, x8, #4
	str	x8, [x22, #48]
	mov	w0, #4
	bl	_cpu_to_le16
	str	x0, [sp, #8]
LBB0_5:
	ldr	w2, [x20]
	ldr	x4, [x22, #16]
	ldr	w5, [x22, #8]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x21
	bl	_lbs_deb_cmd
	ldr	w3, [x20]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	___lbs_mesh_config_send
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_MARVELL_MESH_IE_TYPE,4,2       ; @MARVELL_MESH_IE_TYPE
	.comm	_MARVELL_MESH_IE_SUBTYPE,4,2    ; @MARVELL_MESH_IE_SUBTYPE
	.comm	_MARVELL_MESH_IE_VERSION,4,2    ; @MARVELL_MESH_IE_VERSION
	.comm	_MARVELL_MESH_PROTO_ID_HWMP,4,2 ; @MARVELL_MESH_PROTO_ID_HWMP
	.comm	_MARVELL_MESH_METRIC_ID,4,2     ; @MARVELL_MESH_METRIC_ID
	.comm	_MARVELL_MESH_CAPABILITY,4,2    ; @MARVELL_MESH_CAPABILITY
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ; @IEEE80211_MAX_SSID_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mesh config action %d type %x channel %d SSID %*pE\n"

	.no_dead_strip	_lbs_mesh_config
.subsections_via_symbols
