	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_usb_suspend
_mwifiex_usb_suspend:                   ## @mwifiex_usb_suspend
	.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	%rdi, %r15
	callq	_usb_get_intfdata
	movq	%rax, %r12
	leaq	56(%rax), %rdi
	callq	_wait_for_completion
	movq	48(%r12), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	_MWIFIEX_IS_SUSPENDED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
LBB0_4:
	movq	%r14, %rdi
	callq	_mwifiex_enable_hs
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_MWIFIEX_IS_HS_ENABLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	leaq	40(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_usb_kill_urb
LBB0_9:
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	_MWIFIEX_RX_DATA_URB@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_usb_kill_urb
	movl	(%r14), %eax
	jmp	LBB0_14
LBB0_15:
	movq	_MWIFIEX_TX_DATA_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.16:
	movq	_MWIFIEX_TX_DATA_URB@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_MWIFIEX_TX_DATA_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_24
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	testl	%eax, %eax
	jle	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r12), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_22
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r13,8), %rcx
	movq	(%rcx,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	callq	_usb_kill_urb
	movl	(%r15), %eax
	jmp	LBB0_21
LBB0_24:
	movq	(%r12), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_usb_kill_urb
	jmp	LBB0_26
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	movq	_MWIFIEX_IS_HS_ENABLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card is not valid\n"

	.comm	_MWIFIEX_IS_SUSPENDED,4,2       ## @MWIFIEX_IS_SUSPENDED
	.comm	_WARN,4,2                       ## @WARN
L_.str.1:                               ## @.str.1
	.asciz	"Device already suspended\n"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"cmd: failed to suspend\n"

	.comm	_MWIFIEX_IS_HS_ENABLING,4,2     ## @MWIFIEX_IS_HS_ENABLING
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MWIFIEX_RX_DATA_URB,4,2        ## @MWIFIEX_RX_DATA_URB
	.comm	_MWIFIEX_TX_DATA_PORT,4,2       ## @MWIFIEX_TX_DATA_PORT
	.comm	_MWIFIEX_TX_DATA_URB,4,2        ## @MWIFIEX_TX_DATA_URB
	.no_dead_strip	_mwifiex_usb_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_usb_suspend
_mwifiex_usb_suspend:                   ; @mwifiex_usb_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	add	x0, x0, #56
	bl	_wait_for_completion
	ldr	x20, [x19, #48]
	cbz	x20, LBB0_24
; %bb.1:
Lloh0:
	adrp	x21, _MWIFIEX_IS_SUSPENDED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MWIFIEX_IS_SUSPENDED@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _WARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WARN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mwifiex_dbg
LBB0_3:
	mov	x0, x20
	bl	_mwifiex_enable_hs
	cbz	w0, LBB0_26
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_set_bit
Lloh7:
	adrp	x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	add	x0, x19, #40
	bl	_atomic_read
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_usb_kill_urb
LBB0_7:
	add	x0, x19, #24
	bl	_atomic_read
	cbz	x0, LBB0_13
; %bb.8:
Lloh10:
	adrp	x20, _MWIFIEX_RX_DATA_URB@GOTPAGE
Lloh11:
	ldr	x20, [x20, _MWIFIEX_RX_DATA_URB@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_usb_kill_urb
	ldr	w8, [x20]
	b	LBB0_10
LBB0_13:
Lloh12:
	adrp	x20, _MWIFIEX_TX_DATA_PORT@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MWIFIEX_TX_DATA_PORT@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.14:
	mov	x21, #0
Lloh14:
	adrp	x22, _MWIFIEX_TX_DATA_URB@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MWIFIEX_TX_DATA_URB@GOTPAGEOFF]
	ldr	w8, [x22]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w9, [x20]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_22
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x23, #0
	ldr	x24, [x19, #8]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_15
LBB0_20:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x24, x21, lsl #3]
	ldr	x0, [x9, x23, lsl #3]
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	bl	_usb_kill_urb
	ldr	w8, [x22]
	b	LBB0_19
LBB0_22:
	ldr	x0, [x19]
	cbz	x0, LBB0_27
; %bb.23:
	bl	_usb_kill_urb
	b	LBB0_25
LBB0_24:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_25:
	mov	w0, #0
	b	LBB0_27
LBB0_26:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mwifiex_dbg
Lloh23:
	adrp	x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh26:
	adrp	x8, _EFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card is not valid\n"

	.comm	_MWIFIEX_IS_SUSPENDED,4,2       ; @MWIFIEX_IS_SUSPENDED
	.comm	_WARN,4,2                       ; @WARN
l_.str.1:                               ; @.str.1
	.asciz	"Device already suspended\n"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"cmd: failed to suspend\n"

	.comm	_MWIFIEX_IS_HS_ENABLING,4,2     ; @MWIFIEX_IS_HS_ENABLING
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MWIFIEX_RX_DATA_URB,4,2        ; @MWIFIEX_RX_DATA_URB
	.comm	_MWIFIEX_TX_DATA_PORT,4,2       ; @MWIFIEX_TX_DATA_PORT
	.comm	_MWIFIEX_TX_DATA_URB,4,2        ; @MWIFIEX_TX_DATA_URB
	.no_dead_strip	_mwifiex_usb_suspend
.subsections_via_symbols
