	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400mu_suspend
_i2400mu_suspend:                       ## @i2400mu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_usb_get_intfdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_d_fnstart
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rmb
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.1:
	movq	%r15, %r12
	addq	$8, %r12
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_d_printf
	movq	%r15, %rdi
	callq	_atomic_dec
	movq	%r12, %rdi
	callq	_i2400m_cmd_enter_powersave
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_atomic_inc
	testl	%r12d, %r12d
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	xorl	%r12d, %r12d
LBB0_3:
	movq	%r15, %rdi
	callq	_i2400mu_notification_release
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_d_printf
LBB0_4:
	leaq	L_.str.5(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_d_fnend
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(iface %p pm_msg %u)\n"

	.comm	_I2400M_SS_DATA_PATH_CONNECTED,8,3 ## @I2400M_SS_DATA_PATH_CONNECTED
	.comm	_EBADF,4,2                      ## @EBADF
L_.str.2:                               ## @.str.2
	.asciz	"fw up: entering powersave\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to suspend, will reset on resume\n"

L_.str.4:                               ## @.str.4
	.asciz	"powersave requested\n"

L_.str.5:                               ## @.str.5
	.asciz	"(iface %p pm_msg %u) = %d\n"

	.no_dead_strip	_i2400mu_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400mu_suspend
_i2400mu_suspend:                       ; @i2400mu_suspend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x20
	mov	x4, x19
	bl	_d_fnstart
	bl	_rmb
	mov	x22, x21
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	bl	_d_printf
	mov	x0, x21
	bl	_atomic_dec
	mov	x0, x22
	bl	_i2400m_cmd_enter_powersave
	mov	x22, x0
	mov	x0, x21
	bl	_atomic_inc
	tbz	w22, #31, LBB0_3
; %bb.2:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w22, #0
LBB0_3:
	mov	x0, x21
	bl	_i2400mu_notification_release
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	bl	_d_printf
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh8:
	adrp	x2, l_.str.5@PAGE
Lloh9:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x20
	mov	x4, x19
	mov	x5, x22
	bl	_d_fnend
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(iface %p pm_msg %u)\n"

	.comm	_I2400M_SS_DATA_PATH_CONNECTED,8,3 ; @I2400M_SS_DATA_PATH_CONNECTED
	.comm	_EBADF,4,2                      ; @EBADF
l_.str.2:                               ; @.str.2
	.asciz	"fw up: entering powersave\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to suspend, will reset on resume\n"

l_.str.4:                               ; @.str.4
	.asciz	"powersave requested\n"

l_.str.5:                               ; @.str.5
	.asciz	"(iface %p pm_msg %u) = %d\n"

	.no_dead_strip	_i2400mu_suspend
.subsections_via_symbols
