	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_id_set
_mesh_id_set:                           ## @mesh_id_set
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r12
	callq	_to_net_dev
	cmpq	$2, %rbx
	jb	LBB0_2
## %bb.1:
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rbx, %rcx
	jae	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-64(%rbp), %r13
	leaq	-48(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mesh_get_default_parameters
	movl	$24, %edi
	callq	_cpu_to_le16
	movl	%eax, -72(%rbp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_memcpy
	leal	-1(%rbx), %r15d
	movq	16(%r13), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, 8(%r13)
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	addl	$3, %ebx
	movl	%ebx, (%r13)
	movq	_CMD_ACT_MESH_CONFIG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CMD_TYPE_MESH_SET_MESH_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	callq	_lbs_mesh_config_send
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ## @IEEE80211_MAX_SSID_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CMD_ACT_MESH_CONFIG_SET,4,2    ## @CMD_ACT_MESH_CONFIG_SET
	.comm	_CMD_TYPE_MESH_SET_MESH_IE,4,2  ## @CMD_TYPE_MESH_SET_MESH_IE
	.no_dead_strip	_mesh_id_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_id_set
_mesh_id_set:                           ; @mesh_id_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x19, x2
	mov	x21, x0
	bl	_to_net_dev
	cmp	x20, #2
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x24, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x8, x8, #1
	cmp	x8, x20
	b.hs	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x22, [x0]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x23, [sp, #24]
	add	x1, sp, #8
	mov	x0, x21
	bl	_mesh_get_default_parameters
	mov	w0, #24
	bl	_cpu_to_le16
	str	w0, [sp, #16]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #24
	bl	_memcpy
	sub	w21, w20, #1
	ldr	x0, [x23, #16]
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	str	w21, [x23, #8]
	ldr	w8, [x24]
	sub	w8, w20, w8
	add	w8, w8, #3
	str	w8, [x23]
Lloh5:
	adrp	x8, _CMD_ACT_MESH_CONFIG_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_ACT_MESH_CONFIG_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _CMD_TYPE_MESH_SET_MESH_IE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_TYPE_MESH_SET_MESH_IE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x22
	bl	_lbs_mesh_config_send
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x0, x19
	bl	_strlen
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ; @IEEE80211_MAX_SSID_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CMD_ACT_MESH_CONFIG_SET,4,2    ; @CMD_ACT_MESH_CONFIG_SET
	.comm	_CMD_TYPE_MESH_SET_MESH_IE,4,2  ; @CMD_TYPE_MESH_SET_MESH_IE
	.no_dead_strip	_mesh_id_set
.subsections_via_symbols
