	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_config_sta         ## -- Begin function wcn36xx_smd_config_sta
	.p2align	4, 0x90
_wcn36xx_smd_config_sta:                ## @wcn36xx_smd_config_sta
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mutex_lock
	movq	_WCN36XX_HAL_CONFIG_STA_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-56(%rbp), %xmm0
	movups	-40(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_HAL_MSG
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_wcn36xx_smd_set_sta_params
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	$2, %ecx
	movl	$24, %r8d
	callq	_wcn36xx_is_fw_version
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movups	-56(%rbp), %xmm0
	movups	-40(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PREPARE_HAL_BUF
	movq	_WCN36XX_DBG_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-36(%rbp), %r8d
	movl	-40(%rbp), %r9d
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ebx
	movl	%esi, 16(%rsp)
	movl	%ebx, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_wcn36xx_dbg
	movl	-56(%rbp), %esi
	movq	%r15, %rdi
	callq	_wcn36xx_smd_send_and_wait
	jmp	LBB0_3
LBB0_1:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wcn36xx_smd_config_sta_v1
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_8
LBB0_5:
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wcn36xx_smd_config_sta_rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_CONFIG_STA_REQ,4,2 ## @WCN36XX_HAL_CONFIG_STA_REQ
	.comm	_WCN36XX_DBG_HAL,4,2            ## @WCN36XX_DBG_HAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hal config sta action %d sta_index %d bssid_index %d bssid %pM type %d mac %pM aid %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sending hal_config_sta failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"hal_config_sta 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_config_sta         ; -- Begin function wcn36xx_smd_config_sta
	.p2align	2
_wcn36xx_smd_config_sta:                ; @wcn36xx_smd_config_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_CONFIG_STA_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_CONFIG_STA_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x22, sp, #48
	add	x0, sp, #48
	bl	_INIT_HAL_MSG
	orr	x3, x22, #0x4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_wcn36xx_smd_set_sta_params
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	w3, #2
	mov	w4, #24
	bl	_wcn36xx_is_fw_version
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp, #16]
	add	x1, sp, #16
	bl	_PREPARE_HAL_BUF
Lloh3:
	adrp	x8, _WCN36XX_DBG_HAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WCN36XX_DBG_HAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	w3, w2, [sp, #72]
	ldp	w5, w4, [sp, #64]
	ldp	w7, w6, [sp, #56]
	ldr	w8, [sp, #52]
	str	w8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wcn36xx_dbg
	ldr	w1, [sp, #48]
	mov	x0, x19
	bl	_wcn36xx_smd_send_and_wait
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	add	x1, sp, #48
	mov	x0, x19
	bl	_wcn36xx_smd_config_sta_v1
	mov	x21, x0
	cbnz	w0, LBB0_2
LBB0_4:
	ldp	w3, w2, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_wcn36xx_smd_config_sta_rsp
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_wcn36xx_err
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_CONFIG_STA_REQ,4,2 ; @WCN36XX_HAL_CONFIG_STA_REQ
	.comm	_WCN36XX_DBG_HAL,4,2            ; @WCN36XX_DBG_HAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hal config sta action %d sta_index %d bssid_index %d bssid %pM type %d mac %pM aid %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sending hal_config_sta failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"hal_config_sta response failed err=%d\n"

.subsections_via_symbols
