	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_wsec_key
_wlc_wsec_key:                          ## @wlc_wsec_key
	.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
	movq	_PARAM_MODE@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_SET@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %edi
	jne	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movb	(%r12), %al
	cmpb	$61, %al
	jne	LBB0_3
## %bb.2:
	movq	_WL_PRIMARY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movb	1(%r12), %al
	incq	%r12
LBB0_3:
	addb	$-53, %al
	movl	$-1, %r14d
	cmpb	$-4, %al
	jb	LBB0_13
## %bb.4:
	cmpb	$44, 1(%r12)
	jne	LBB0_13
## %bb.5:
	leaq	2(%r12), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ecx
	andl	$-17, %ecx
	cmpl	$10, %ecx
	jne	LBB0_13
## %bb.10:
	shrl	%eax
	movl	%eax, -64(%rbp)
	movq	-56(%rbp), %r15
	movb	$0, -33(%rbp)
	movb	2(%r12), %al
	xorl	%ebx, %ebx
	leaq	-35(%rbp), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movb	%al, -35(%rbp)
	movzbl	3(%r12,%rbx,2), %eax
	movb	%al, -34(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movb	%al, (%r15,%rbx)
	movzbl	4(%r12,%rbx,2), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_11
	jmp	LBB0_12
LBB0_7:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, -64(%rbp)
	andl	$-9, %eax
	cmpl	$5, %eax
	jne	LBB0_13
## %bb.8:
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strcpy
LBB0_12:
	movq	_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_vif@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movl	$24, %r8d
	callq	_wl_bssiovar_set
	movl	%eax, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAM_MODE,4,2                 ## @PARAM_MODE
	.comm	_SET,4,2                        ## @SET
	.comm	_WL_PRIMARY_KEY,4,2             ## @WL_PRIMARY_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d:"

L_.str.1:                               ## @.str.1
	.asciz	"s:"

	.comm	_interface,4,2                  ## @interface
L_.str.2:                               ## @.str.2
	.asciz	"wsec_key"

	.comm	_vif,4,2                        ## @vif
	.no_dead_strip	_wlc_wsec_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_wsec_key
_wlc_wsec_key:                          ; @wlc_wsec_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _PARAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x2
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldrb	w8, [x19]
	cmp	w8, #61
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _WL_PRIMARY_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL_PRIMARY_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldrb	w8, [x19, #1]!
LBB0_3:
	sub	w8, w8, #53
	cmn	w8, #4
	b.lo	LBB0_14
; %bb.4:
	ldrb	w8, [x19, #1]
	cmp	w8, #44
	b.ne	LBB0_14
; %bb.5:
	add	x20, x19, #2
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_13
; %bb.6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_strlen
	and	w8, w0, #0xffffffef
	cmp	w8, #10
	b.ne	LBB0_14
; %bb.8:
	lsr	w8, w0, #1
	str	w8, [sp, #8]
	ldr	x20, [sp, #16]
	strb	wzr, [sp, #7]
	ldrb	w8, [x19, #2]
	add	x19, x19, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [sp, #5]
	ldurb	w8, [x19, #-1]
	strb	w8, [sp, #6]
	add	x0, sp, #5
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	strb	w0, [x20], #1
	ldrb	w8, [x19], #2
	cbnz	w8, LBB0_9
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_15
LBB0_11:
	add	x19, x19, #4
	mov	x0, x19
	bl	_strlen
	str	w0, [sp, #8]
	and	w8, w0, #0xfffffff7
	cmp	w8, #5
	b.ne	LBB0_14
; %bb.12:
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_strcpy
LBB0_13:
Lloh13:
	adrp	x8, _interface@GOTPAGE
Lloh14:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _vif@GOTPAGE
Lloh17:
	ldr	x8, [x8, _vif@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	w4, #24
	bl	_wl_bssiovar_set
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAM_MODE,4,2                 ; @PARAM_MODE
	.comm	_SET,4,2                        ; @SET
	.comm	_WL_PRIMARY_KEY,4,2             ; @WL_PRIMARY_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d:"

l_.str.1:                               ; @.str.1
	.asciz	"s:"

	.comm	_interface,4,2                  ; @interface
l_.str.2:                               ; @.str.2
	.asciz	"wsec_key"

	.comm	_vif,4,2                        ; @vif
	.no_dead_strip	_wlc_wsec_key
.subsections_via_symbols
