	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_process_cmdresp_error
_mwifiex_process_cmdresp_error:         ## @mwifiex_process_cmdresp_error
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %r8d
	movl	12(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$-1, 20(%rbx)
LBB0_2:
	movl	12(%r15), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$132, %eax
	jne	LBB0_11
## %bb.5:
	movl	(%r12), %r12d
	movl	(%r15), %r13d
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movq	_EN_AUTO_PS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.6:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movq	_BITMAP_STA_PS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movl	(%r14), %eax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	movq	_MWIFIEX_802_11_POWER_MODE_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_mwifiex_cancel_scan
	jmp	LBB0_11
LBB0_10:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_11:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_mwifiex_recycle_cmd_node
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD_RESP: cmd %#x error, result=%#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"PS_MODE_ENH cmd failed: result=0x%x action=0x%X\n"

	.comm	_EN_AUTO_PS,4,2                 ## @EN_AUTO_PS
	.comm	_BITMAP_STA_PS,4,2              ## @BITMAP_STA_PS
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_MWIFIEX_802_11_POWER_MODE_CAM,4,2 ## @MWIFIEX_802_11_POWER_MODE_CAM
	.comm	_MSG,4,2                        ## @MSG
L_.str.2:                               ## @.str.2
	.asciz	"SDIO RX single-port aggregation Not support\n"

	.no_dead_strip	_mwifiex_process_cmdresp_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_process_cmdresp_error
_mwifiex_process_cmdresp_error:         ; @mwifiex_process_cmdresp_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x22, _ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ERROR@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x21, #12]
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x19, #20]
LBB0_2:
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.3:
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w0, #132
	b.ne	LBB0_11
; %bb.5:
	ldr	w22, [x22]
	ldr	w0, [x21, #8]
	ldr	w23, [x21]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_mwifiex_dbg
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _EN_AUTO_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EN_AUTO_PS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.6:
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
Lloh9:
	adrp	x8, _BITMAP_STA_PS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BITMAP_STA_PS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
Lloh15:
	adrp	x8, _MWIFIEX_802_11_POWER_MODE_CAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MWIFIEX_802_11_POWER_MODE_CAM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_mwifiex_cancel_scan
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _MSG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_11:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_mwifiex_recycle_cmd_node
	mov	x0, x19
	bl	_spin_lock_bh
	str	xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_spin_unlock_bh
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD_RESP: cmd %#x error, result=%#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"PS_MODE_ENH cmd failed: result=0x%x action=0x%X\n"

	.comm	_EN_AUTO_PS,4,2                 ; @EN_AUTO_PS
	.comm	_BITMAP_STA_PS,4,2              ; @BITMAP_STA_PS
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_MWIFIEX_802_11_POWER_MODE_CAM,4,2 ; @MWIFIEX_802_11_POWER_MODE_CAM
	.comm	_MSG,4,2                        ; @MSG
l_.str.2:                               ; @.str.2
	.asciz	"SDIO RX single-port aggregation Not support\n"

	.no_dead_strip	_mwifiex_process_cmdresp_error
.subsections_via_symbols
