	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_dnld_sleep_confirm_cmd
_mwifiex_dnld_sleep_confirm_cmd:        ## @mwifiex_dnld_sleep_confirm_cmd
	.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
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	_MWIFIEX_BSS_ROLE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mwifiex_get_priv
	movl	48(%r14), %edi
	incl	%edi
	movl	%edi, 48(%r14)
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_HostCmd_SET_SEQ_NO_BSS_INFO
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%rbx)
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movq	%rbx, %r13
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_CMD_D@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_mwifiex_dbg_dump
	movq	(%r14), %rax
	movq	_MWIFIEX_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_MWIFIEX_TYPE_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$20, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	(%rbx), %rsi
	addq	$20, %rsi
	movq	%rax, %rdi
	callq	_skb_put
	movq	_MWIFIEX_USB_TYPE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_put_unaligned_le32
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	movq	32(%r14), %rax
	movq	(%rax), %rsi
	movl	$20, %edx
	callq	_memcpy
	movq	_MWIFIEX_USB_EP_CMD_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	*40(%r14)
	movl	%eax, %r15d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
LBB0_6:
	cmpl	$-1, %r15d
	je	LBB0_7
LBB0_8:
	movl	(%r13), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:
	movq	_PS_STATE_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	32(%r14), %rdi
	movl	28(%r14), %esi
	callq	_skb_push
	movq	_MWIFIEX_TYPE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r14), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	*40(%r14)
	movl	%eax, %r15d
	movq	32(%r14), %rdi
	movl	28(%r14), %esi
	callq	_skb_pull
	cmpl	$-1, %r15d
	jne	LBB0_8
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	incl	24(%r14)
	movl	$-1, %r15d
	jmp	LBB0_15
LBB0_9:
	movq	_PS_STATE_SLEEP_CFM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	(%r13), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_MWIFIEX_IS_HS_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	cmpl	$0, 12(%r14)
	jne	LBB0_15
## %bb.14:
	movl	$1, 8(%r14)
	movq	_MWIFIEX_BSS_ROLE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mwifiex_get_priv
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_mwifiex_hs_activated_event
	jmp	LBB0_15
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ## @MWIFIEX_BSS_ROLE_ANY
	.comm	_CMD,4,2                        ## @CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd: DNLD_CMD: %#x, act %#x, len %d, seqno %#x\n"

	.comm	_CMD_D,4,2                      ## @CMD_D
L_.str.1:                               ## @.str.1
	.asciz	"SLEEP_CFM buffer: "

	.comm	_MWIFIEX_USB,8,3                ## @MWIFIEX_USB
	.comm	_MWIFIEX_TYPE_LEN,8,3           ## @MWIFIEX_TYPE_LEN
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"SLEEP_CFM: dev_alloc_skb failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWIFIEX_USB_TYPE_CMD,4,2       ## @MWIFIEX_USB_TYPE_CMD
	.comm	_MWIFIEX_USB_EP_CMD_EVENT,4,2   ## @MWIFIEX_USB_EP_CMD_EVENT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MWIFIEX_TYPE_CMD,4,2           ## @MWIFIEX_TYPE_CMD
L_.str.3:                               ## @.str.3
	.asciz	"SLEEP_CFM: failed\n"

	.comm	_PS_STATE_SLEEP,4,2             ## @PS_STATE_SLEEP
	.comm	_PS_STATE_SLEEP_CFM,4,2         ## @PS_STATE_SLEEP_CFM
	.comm	_MWIFIEX_IS_HS_CONFIGURED,4,2   ## @MWIFIEX_IS_HS_CONFIGURED
	.no_dead_strip	_mwifiex_dnld_sleep_confirm_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_dnld_sleep_confirm_cmd
_mwifiex_dnld_sleep_confirm_cmd:        ; @mwifiex_dnld_sleep_confirm_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
Lloh0:
	adrp	x25, _MWIFIEX_BSS_ROLE_ANY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MWIFIEX_BSS_ROLE_ANY@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_mwifiex_get_priv
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldp	w2, w1, [x0]
	mov	x0, x8
	bl	_HostCmd_SET_SEQ_NO_BSS_INFO
	bl	_cpu_to_le16
	str	w0, [x20, #8]
Lloh2:
	adrp	x8, _CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	w0, [x20, #16]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x22, x23, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_dbg
Lloh7:
	adrp	x8, _CMD_D@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_D@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_mwifiex_dbg_dump
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _MWIFIEX_USB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MWIFIEX_USB@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
Lloh15:
	adrp	x21, _MWIFIEX_TYPE_LEN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MWIFIEX_TYPE_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #20
	bl	_dev_alloc_skb
	cbz	x0, LBB0_11
; %bb.2:
	mov	x22, x0
	ldr	x8, [x21]
	add	x1, x8, #20
	bl	_skb_put
Lloh17:
	adrp	x8, _MWIFIEX_USB_TYPE_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWIFIEX_USB_TYPE_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x1, [x22]
	bl	_put_unaligned_le32
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	mov	w2, #20
	bl	_memcpy
	ldr	x8, [x19, #40]
Lloh20:
	adrp	x9, _MWIFIEX_USB_EP_CMD_EVENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MWIFIEX_USB_EP_CMD_EVENT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	blr	x8
	mov	x21, x0
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_dev_kfree_skb_any
LBB0_4:
	cmn	w21, #1
	b.eq	LBB0_10
LBB0_5:
	ldr	w0, [x20]
	bl	_le16_to_cpu
Lloh26:
	adrp	x8, _PS_STATE_SLEEP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PS_STATE_SLEEP@GOTPAGEOFF]
Lloh28:
	adrp	x9, _PS_STATE_SLEEP_CFM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PS_STATE_SLEEP_CFM@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	cbnz	w0, LBB0_12
; %bb.6:
Lloh30:
	adrp	x8, _MWIFIEX_IS_HS_CONFIGURED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MWIFIEX_IS_HS_CONFIGURED@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_12
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_mwifiex_get_priv
	mov	w1, #1
	bl	_mwifiex_hs_activated_event
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #28]
	bl	_skb_push
Lloh33:
	adrp	x8, _MWIFIEX_TYPE_CMD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MWIFIEX_TYPE_CMD@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldp	x2, x8, [x19, #32]
	mov	x0, x19
	mov	x3, #0
	blr	x8
	mov	x21, x0
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #28]
	bl	_skb_pull
	cmn	w21, #1
	b.ne	LBB0_5
LBB0_10:
Lloh36:
	adrp	x8, _ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str.2@PAGE
Lloh45:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ; @MWIFIEX_BSS_ROLE_ANY
	.comm	_CMD,4,2                        ; @CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd: DNLD_CMD: %#x, act %#x, len %d, seqno %#x\n"

	.comm	_CMD_D,4,2                      ; @CMD_D
l_.str.1:                               ; @.str.1
	.asciz	"SLEEP_CFM buffer: "

	.comm	_MWIFIEX_USB,8,3                ; @MWIFIEX_USB
	.comm	_MWIFIEX_TYPE_LEN,8,3           ; @MWIFIEX_TYPE_LEN
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"SLEEP_CFM: dev_alloc_skb failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWIFIEX_USB_TYPE_CMD,4,2       ; @MWIFIEX_USB_TYPE_CMD
	.comm	_MWIFIEX_USB_EP_CMD_EVENT,4,2   ; @MWIFIEX_USB_EP_CMD_EVENT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MWIFIEX_TYPE_CMD,4,2           ; @MWIFIEX_TYPE_CMD
l_.str.3:                               ; @.str.3
	.asciz	"SLEEP_CFM: failed\n"

	.comm	_PS_STATE_SLEEP,4,2             ; @PS_STATE_SLEEP
	.comm	_PS_STATE_SLEEP_CFM,4,2         ; @PS_STATE_SLEEP_CFM
	.comm	_MWIFIEX_IS_HS_CONFIGURED,4,2   ; @MWIFIEX_IS_HS_CONFIGURED
	.no_dead_strip	_mwifiex_dnld_sleep_confirm_cmd
.subsections_via_symbols
