	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssip_rx_waketest
_ssip_rx_waketest:                      ## @ssip_rx_waketest
	.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, %ebx
	movq	%rdi, %r14
	callq	_hsi_client_drvdata
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_SSIP_PAYLOAD
	movl	%eax, %r15d
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	(%r12), %rdx
	movq	_HANDSHAKE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_SSIP_WAKETEST_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r12), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ssi_waketest
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_del_timer
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_SSIP_WAKETEST_FAILED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	%r15d, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_notice
	testl	%r15d, (%rbx)
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssip_error                     ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r12), %edi
	callq	_netif_wake_queue
	movl	8(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HANDSHAKE,8,3                  ## @HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wake lines test ignored M(%d)\n"

	.comm	_SSIP_WAKETEST_FLAG,4,2         ## @SSIP_WAKETEST_FLAG
	.comm	_ACTIVE,8,3                     ## @ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"WAKELINES TEST %s\n"

	.comm	_SSIP_WAKETEST_FAILED,4,2       ## @SSIP_WAKETEST_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"FAILED"

L_.str.3:                               ## @.str.3
	.asciz	"OK"

L_.str.4:                               ## @.str.4
	.asciz	"CMT is ONLINE\n"

	.no_dead_strip	_ssip_rx_waketest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssip_rx_waketest
_ssip_rx_waketest:                      ; @ssip_rx_waketest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_hsi_client_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_SSIP_PAYLOAD
	mov	x21, x0
	add	x22, x20, #12
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh3:
	adrp	x8, _SSIP_WAKETEST_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSIP_WAKETEST_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_ssi_waketest
LBB0_3:
	mov	x0, x22
	bl	_spin_lock_bh
Lloh6:
	adrp	x8, _ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x0, x20
	str	x8, [x0], #16
	bl	_del_timer
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh9:
	adrp	x22, _SSIP_WAKETEST_FAILED@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SSIP_WAKETEST_FAILED@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.3@PAGE
Lloh14:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, w21
	csel	x2, x10, x9, eq
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_notice
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_ssip_error
LBB0_5:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x22
	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
	add	sp, sp, #64
	b	_spin_unlock_bh
LBB0_6:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x20, #8]
	bl	_netif_wake_queue
	ldr	w0, [x20, #8]
	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
	add	sp, sp, #64
	b	_netif_carrier_on
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HANDSHAKE,8,3                  ; @HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wake lines test ignored M(%d)\n"

	.comm	_SSIP_WAKETEST_FLAG,4,2         ; @SSIP_WAKETEST_FLAG
	.comm	_ACTIVE,8,3                     ; @ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"WAKELINES TEST %s\n"

	.comm	_SSIP_WAKETEST_FAILED,4,2       ; @SSIP_WAKETEST_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"FAILED"

l_.str.3:                               ; @.str.3
	.asciz	"OK"

l_.str.4:                               ; @.str.4
	.asciz	"CMT is ONLINE\n"

	.no_dead_strip	_ssip_rx_waketest
.subsections_via_symbols
