	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capability_set
_capability_set:                        ## @capability_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r12
	callq	_to_net_dev
	movq	(%rax), %r14
	leaq	-64(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$256, -44(%rbp)                 ## imm = 0x100
	jge	LBB0_2
## %bb.3:
	leaq	-48(%rbp), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mesh_get_default_parameters
	movl	$4, %edi
	callq	_cpu_to_le16
	movl	%eax, -56(%rbp)
	movq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	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
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lbs_mesh_config_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.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	_capability_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capability_set
_capability_set:                        ; @capability_set
	.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	x19, x2
	mov	x21, x0
	bl	_to_net_dev
	ldr	x20, [x0]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #4
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #256
	b.ge	LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_mesh_get_default_parameters
	mov	w0, #4
	bl	_cpu_to_le16
	str	w0, [sp, #24]
	ldr	x21, [sp, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #4]
	str	w8, [x21]
Lloh2:
	adrp	x8, _CMD_ACT_MESH_CONFIG_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_ACT_MESH_CONFIG_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _CMD_TYPE_MESH_SET_MESH_IE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_TYPE_MESH_SET_MESH_IE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_lbs_mesh_config_send
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_strlen
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.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	_capability_set
.subsections_via_symbols
