	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssi_waketest                   ## -- Begin function ssi_waketest
	.p2align	4, 0x90
_ssi_waketest:                          ## @ssi_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	%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
	movl	%esi, %r12d
	callq	_hsi_get_port
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_hsi_port_drvdata
	movq	%rax, %r13
	movl	4(%r15), %edi
	callq	_to_hsi_controller
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hsi_controller_drvdata
	movq	%rax, %rbx
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setne	%al
	movl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	xorl	%edi, %edi
	callq	_SSI_WAKE
	movl	%eax, %r14d
	movq	(%rbx), %rbx
	movl	(%r15), %edi
	callq	_SSI_SET_WAKE_REG
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
LBB0_2:
	xorl	%edi, %edi
	callq	_SSI_WAKE
	movl	%eax, %r12d
	movq	(%rbx), %rbx
	movl	(%r15), %edi
	callq	_SSI_CLEAR_WAKE_REG
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssi_waketest                   ; -- Begin function ssi_waketest
	.p2align	2
_ssi_waketest:                          ; @ssi_waketest
	.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	x22, x1
	bl	_hsi_get_port
	mov	x19, x0
	bl	_hsi_port_drvdata
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_to_hsi_controller
	mov	x20, x0
	bl	_hsi_controller_drvdata
	mov	x21, x0
	cmp	w22, #0
	cset	w8, ne
	str	w8, [x23]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_pm_runtime_get_sync
	mov	w0, #0
	bl	_SSI_WAKE
	mov	x20, x0
	ldr	x21, [x21]
	ldr	w0, [x19]
	bl	_SSI_SET_WAKE_REG
	add	x1, x0, x21
	mov	x0, x20
	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
	b	_writel_relaxed
LBB0_2:
	mov	w0, #0
	bl	_SSI_WAKE
	mov	x22, x0
	ldr	x21, [x21]
	ldr	w0, [x19]
	bl	_SSI_CLEAR_WAKE_REG
	add	x1, x0, x21
	mov	x0, x22
	bl	_writel_relaxed
	ldr	w0, [x20]
	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
	b	_pm_runtime_put
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
