	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_vendor_cmd_smart_config_set_group_key
_wlcore_vendor_cmd_smart_config_set_group_key: ## @wlcore_vendor_cmd_smart_config_set_group_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	%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
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_wiphy_to_ieee80211_hw
	movq	(%rax), %r14
	movq	_NUM_WLCORE_VENDOR_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_MAX_WLCORE_VENDOR_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_wlcore_vendor_attr_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_nla_parse_deprecated
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_WLCORE_VENDOR_ATTR_GROUP_ID@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_1
## %bb.4:
	movq	_WLCORE_VENDOR_ATTR_GROUP_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_1
## %bb.5:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	12(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_get_u32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_WLCORE_VENDOR_ATTR_GROUP_KEY@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_len
	movl	%eax, %ebx
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_data
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_wlcore_smart_config_set_group_key
	movl	%eax, %ebx
	movl	12(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	movl	12(%r14), %edi
	callq	_pm_runtime_put_noidle
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_WLCORE_VENDOR_ATTR,4,2     ## @NUM_WLCORE_VENDOR_ATTR
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode cmd smart config set group key"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_WLCORE_VENDOR_ATTR,4,2     ## @MAX_WLCORE_VENDOR_ATTR
	.comm	_wlcore_vendor_attr_policy,4,2  ## @wlcore_vendor_attr_policy
	.comm	_WLCORE_VENDOR_ATTR_GROUP_ID,8,3 ## @WLCORE_VENDOR_ATTR_GROUP_ID
	.comm	_WLCORE_VENDOR_ATTR_GROUP_KEY,8,3 ## @WLCORE_VENDOR_ATTR_GROUP_KEY
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.no_dead_strip	_wlcore_vendor_cmd_smart_config_set_group_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_vendor_cmd_smart_config_set_group_key
_wlcore_vendor_cmd_smart_config_set_group_key: ; @wlcore_vendor_cmd_smart_config_set_group_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x3
	mov	x22, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_wiphy_to_ieee80211_hw
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _NUM_WLCORE_VENDOR_ATTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_WLCORE_VENDOR_ATTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	cbz	x22, LBB0_6
; %bb.1:
Lloh13:
	adrp	x8, _MAX_WLCORE_VENDOR_ATTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_WLCORE_VENDOR_ATTR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _wlcore_vendor_attr_policy@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wlcore_vendor_attr_policy@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x5, #0
	bl	_nla_parse_deprecated
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh19:
	adrp	x23, _WLCORE_VENDOR_ATTR_GROUP_ID@GOTPAGE
Lloh20:
	ldr	x23, [x23, _WLCORE_VENDOR_ATTR_GROUP_ID@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_6
; %bb.3:
Lloh21:
	adrp	x24, _WLCORE_VENDOR_ATTR_GROUP_KEY@GOTPAGE
Lloh22:
	ldr	x24, [x24, _WLCORE_VENDOR_ATTR_GROUP_KEY@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_6:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x22
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_11
; %bb.10:
	ldr	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_u32
	mov	x22, x0
	ldr	x8, [x24]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_len
	mov	x23, x0
	ldr	x8, [x24]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_data
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_wlcore_smart_config_set_group_key
	mov	x22, x0
	ldr	w0, [x19, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_12
LBB0_11:
	mov	x22, x0
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_noidle
LBB0_12:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_7
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_WLCORE_VENDOR_ATTR,4,2     ; @NUM_WLCORE_VENDOR_ATTR
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode cmd smart config set group key"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_WLCORE_VENDOR_ATTR,4,2     ; @MAX_WLCORE_VENDOR_ATTR
	.comm	_wlcore_vendor_attr_policy,4,2  ; @wlcore_vendor_attr_policy
	.comm	_WLCORE_VENDOR_ATTR_GROUP_ID,8,3 ; @WLCORE_VENDOR_ATTR_GROUP_ID
	.comm	_WLCORE_VENDOR_ATTR_GROUP_KEY,8,3 ; @WLCORE_VENDOR_ATTR_GROUP_KEY
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.no_dead_strip	_wlcore_vendor_cmd_smart_config_set_group_key
.subsections_via_symbols
