	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coh901318_resume
_coh901318_resume:                      ## @coh901318_resume
	.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
	callq	_to_coh901318_chan
	movq	%rax, %rbx
	movslq	(%rax), %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_disable_powersave
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	_COH901318_CX_CFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	addq	(%rax), %rcx
	movq	_COH901318_CX_CFG_SPACING@GOTPCREL(%rip), %r13
	movslq	(%r13), %rdi
	imulq	%r15, %rdi
	addq	%rcx, %rdi
	callq	_readl
	movq	_COH901318_CX_CFG_CH_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	16(%rbx), %rcx
	movq	(%r12), %rdx
	addq	(%rcx), %rdx
	movslq	(%r13), %rsi
	imulq	%r15, %rsi
	addq	%rdx, %rsi
	movl	%eax, %edi
	callq	_writel
	movq	$0, 8(%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COH901318_CX_CFG,8,3           ## @COH901318_CX_CFG
	.comm	_COH901318_CX_CFG_SPACING,4,2   ## @COH901318_CX_CFG_SPACING
	.comm	_COH901318_CX_CFG_CH_ENABLE,4,2 ## @COH901318_CX_CFG_CH_ENABLE
	.no_dead_strip	_coh901318_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coh901318_resume
_coh901318_resume:                      ; @coh901318_resume
	.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
	bl	_to_coh901318_chan
	mov	x20, x0
	ldrsw	x21, [x0]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_disable_powersave
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _COH901318_CX_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _COH901318_CX_CFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x9, x8
Lloh2:
	adrp	x23, _COH901318_CX_CFG_SPACING@GOTPAGE
Lloh3:
	ldr	x23, [x23, _COH901318_CX_CFG_SPACING@GOTPAGEOFF]
	ldrsw	x9, [x23]
	madd	x0, x9, x21, x8
	bl	_readl
Lloh4:
	adrp	x8, _COH901318_CX_CFG_CH_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COH901318_CX_CFG_CH_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x8, x9, x8
	ldrsw	x9, [x23]
	madd	x1, x9, x21, x8
	bl	_writel
	str	xzr, [x20, #8]
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COH901318_CX_CFG,8,3           ; @COH901318_CX_CFG
	.comm	_COH901318_CX_CFG_SPACING,4,2   ; @COH901318_CX_CFG_SPACING
	.comm	_COH901318_CX_CFG_CH_ENABLE,4,2 ; @COH901318_CX_CFG_CH_ENABLE
	.no_dead_strip	_coh901318_resume
.subsections_via_symbols
