	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_set_bsskey         ## -- Begin function wcn36xx_smd_set_bsskey
	.p2align	4, 0x90
_wcn36xx_smd_set_bsskey:                ## @wcn36xx_smd_set_bsskey
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	_WCN36XX_HAL_SET_BSSKEY_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_HAL_MSG
	movq	%r13, -48(%rbp)
	movl	%r15d, -72(%rbp)
	movl	$1, -68(%rbp)
	movq	-56(%rbp), %rax
	movq	%r12, 40(%rax)
	movq	$0, 32(%rax)
	movq	_WCN36XX_HAL_RX_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	$0, 16(%rax)
	movq	%rbx, 8(%rax)
	movl	(%rax), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movl	8(%r14), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PREPARE_HAL_BUF
	movl	-64(%rbp), %esi
	movq	%r14, %rdi
	callq	_wcn36xx_smd_send_and_wait
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_wcn36xx_smd_rsp_status_check
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_SET_BSSKEY_REQ,4,2 ## @WCN36XX_HAL_SET_BSSKEY_REQ
	.comm	_WCN36XX_HAL_RX_ONLY,4,2        ## @WCN36XX_HAL_RX_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending hal_set_bsskey failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"hal_set_bsskey response failed err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_set_bsskey         ; -- Begin function wcn36xx_smd_set_bsskey
	.p2align	2
_wcn36xx_smd_set_bsskey:                ; @wcn36xx_smd_set_bsskey
	.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
	mov	x19, x2
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_SET_BSSKEY_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_SET_BSSKEY_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #1
	str	w8, [sp, #4]
	str	x19, [sp, #24]
	mov	x0, sp
	bl	_INIT_HAL_MSG
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_SET_BSSKEY_REQ,4,2 ; @WCN36XX_HAL_SET_BSSKEY_REQ
	.comm	_WCN36XX_HAL_RX_ONLY,4,2        ; @WCN36XX_HAL_RX_ONLY
.subsections_via_symbols
