	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_chan
_enable_chan:                           ## @enable_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	8(%rax), %edi
	callq	_DRCMR
	movq	_DRCMR_MAPVLD@GOTPCREL(%rip), %rcx
	movl	(%r14), %edi
	orl	(%rcx), %edi
	addl	4(%r14), %eax
	movl	%eax, %esi
	callq	_writel
	movq	_DALGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	4(%r14), %edi
	callq	_readl
	movq	8(%r14), %rcx
	movb	(%r14), %dl
	movl	%eax, %edi
	btsl	%edx, %edi
	btrl	%edx, %eax
	cmpq	$0, (%rcx)
	cmovel	%eax, %edi
	movl	(%rbx), %esi
	addl	4(%r14), %esi
	callq	_writel
	movl	(%r14), %ebx
	shll	$2, %ebx
	movq	_DCSR@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	4(%r14), %edi
	addl	%ebx, %edi
	callq	_readl
	movq	_DCSR_RUN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	addl	4(%r14), %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRCMR_MAPVLD,4,2               ## @DRCMR_MAPVLD
	.comm	_DALGN,4,2                      ## @DALGN
	.comm	_DCSR,4,2                       ## @DCSR
	.comm	_DCSR_RUN,4,2                   ## @DCSR_RUN
	.no_dead_strip	_enable_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_chan
_enable_chan:                           ; @enable_chan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x8, #8]
	bl	_DRCMR
Lloh0:
	adrp	x8, _DRCMR_MAPVLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRCMR_MAPVLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	orr	w8, w9, w8
	add	w1, w10, w0
	mov	x0, x8
	bl	_writel
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x20, _DALGN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DALGN@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w0, w9, w8
	bl	_readl
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #1
	ldp	w10, w11, [x19]
	lsl	w9, w9, w10
	orr	w10, w9, w0
	bic	w9, w0, w9
	cmp	x8, #0
	csel	w0, w9, w10, eq
	ldr	w8, [x20]
	add	w1, w8, w11
	bl	_writel
Lloh5:
	adrp	x8, _DCSR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCSR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	add	w20, w8, w9, lsl #2
	add	w0, w10, w20
	bl	_readl
Lloh8:
	adrp	x8, _DCSR_RUN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCSR_RUN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w8, [x19, #4]
	add	w1, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRCMR_MAPVLD,4,2               ; @DRCMR_MAPVLD
	.comm	_DALGN,4,2                      ; @DALGN
	.comm	_DCSR,4,2                       ; @DCSR
	.comm	_DCSR_RUN,4,2                   ; @DCSR_RUN
	.no_dead_strip	_enable_chan
.subsections_via_symbols
