	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_smd_config_sta_rsp
_wcn36xx_smd_config_sta_rsp:            ## @wcn36xx_smd_config_sta_rsp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %rdi
	callq	_wcn36xx_sta_to_priv
	cmpq	$31, %rbx
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	(%r14), %rdx
	movq	_WCN36XX_FW_MSG_RESULT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.5:
	movl	20(%r14), %ecx
	movl	%ecx, 8(%rax)
	movl	24(%r14), %esi
	movl	%esi, 4(%rax)
	movl	12(%r14), %r9d
	movl	%r9d, (%rax)
	movq	_WCN36XX_DBG_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %eax
	movl	16(%r14), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	callq	_wcn36xx_dbg
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_wcn36xx_warn
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WCN36XX_FW_MSG_RESULT_SUCCESS,8,3 ## @WCN36XX_FW_MSG_RESULT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hal config sta response failure: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_WCN36XX_DBG_HAL,4,2            ## @WCN36XX_DBG_HAL
L_.str.1:                               ## @.str.1
	.asciz	"hal config sta rsp status %d sta_index %d bssid_index %d uc_ucast_sig %d p2p %d\n"

	.no_dead_strip	_wcn36xx_smd_config_sta_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_smd_config_sta_rsp
_wcn36xx_smd_config_sta_rsp:            ; @wcn36xx_smd_config_sta_rsp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x2
	mov	x0, x1
	bl	_wcn36xx_sta_to_priv
	cmp	x20, #31
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x2, [x19]
Lloh2:
	adrp	x8, _WCN36XX_FW_MSG_RESULT_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WCN36XX_FW_MSG_RESULT_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.3:
	ldur	d0, [x19, #20]
	rev64.2s	v1, v0
	stur	d1, [x0, #4]
	ldp	w6, w5, [x19, #8]
	str	w5, [x0]
Lloh5:
	adrp	x8, _WCN36XX_DBG_HAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WCN36XX_DBG_HAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w4, [x19, #16]
	fmov	w3, s0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wcn36xx_dbg
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_wcn36xx_warn
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WCN36XX_FW_MSG_RESULT_SUCCESS,8,3 ; @WCN36XX_FW_MSG_RESULT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hal config sta response failure: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_WCN36XX_DBG_HAL,4,2            ; @WCN36XX_DBG_HAL
l_.str.1:                               ; @.str.1
	.asciz	"hal config sta rsp status %d sta_index %d bssid_index %d uc_ucast_sig %d p2p %d\n"

	.no_dead_strip	_wcn36xx_smd_config_sta_rsp
.subsections_via_symbols
