	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_write_tmpl
_dc_write_tmpl:                         ## @dc_write_tmpl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movl	32(%rbp), %r15d
	movq	(%rdi), %r14
	movq	_WCLK@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	%eax, %edi
	shll	$20, %edi
	movl	$1, %r8d
	jmp	LBB0_5
LBB0_2:
	movl	24(%rbp), %r10d
	movl	16(%rbp), %ecx
	movq	_WRG@GOTPCREL(%rip), %rdi
	shll	$4, %ecx
	shll	$11, %r9d
	addl	$2048, %r9d                     ## imm = 0x800
	cmpl	%edx, (%rdi)
	jne	LBB0_4
## %bb.3:
	movl	%eax, %edi
	shll	$15, %edi
	orl	%r10d, %edi
	orl	%ecx, %edi
	orl	%r9d, %edi
	movl	$7, %r8d
	movl	$17, %ecx
	jmp	LBB0_6
LBB0_4:
	shll	$15, %r8d
	addl	$32768, %r8d                    ## imm = 0x8000
	movl	%eax, %edi
	shll	$20, %edi
	orl	%r8d, %edi
	orl	%r10d, %edi
	orl	%ecx, %edi
	orl	%r9d, %edi
	movl	$4, %r8d
LBB0_5:
	movl	$12, %ecx
LBB0_6:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%r8d, %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	shll	$9, %r15d
	orl	%edx, %r15d
	shll	$3, %esi
	movslq	%esi, %rbx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$4, %rsi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WCLK,4,2                       ## @WCLK
	.comm	_WRG,4,2                        ## @WRG
	.no_dead_strip	_dc_write_tmpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc_write_tmpl
_dc_write_tmpl:                         ; @dc_write_tmpl
	.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
	ldr	w8, [x29, #16]
	ldr	x20, [x0]
Lloh0:
	adrp	x9, _WCLK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WCLK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	lsl	w0, w3, #20
	mov	w9, #1
	mov	w10, #12
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x9, _WRG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WRG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w10, w6, #4
	lsl	w11, w5, #11
	add	w11, w11, #2048
	lsl	w12, w4, #15
	add	w12, w12, #8, lsl #12           ; =32768
	orr	w12, w12, w3, lsl #20
	orr	w12, w12, w7
	orr	w12, w12, w10
	orr	w12, w12, w11
	mov	w13, #4
	mov	w14, #12
	orr	w15, w7, w3, lsl #15
	orr	w10, w15, w10
	orr	w11, w10, w11
	mov	w15, #7
	mov	w10, #17
	cmp	w9, w2
	csel	w10, w14, w10, ne
	csel	w9, w13, w15, ne
	csel	w0, w12, w11, ne
LBB0_3:
	asr	w10, w3, w10
	lsl	w9, w2, w9
	orr	w9, w10, w9
	orr	w19, w9, w8, lsl #9
	ldr	x8, [x20]
	lsl	w9, w1, #3
	sxtw	x21, w9
	add	x1, x8, x21
	bl	_writel
	ldr	x8, [x20]
	add	x8, x8, x21
	add	x1, x8, #4
	mov	x0, x19
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WCLK,4,2                       ; @WCLK
	.comm	_WRG,4,2                        ; @WRG
	.no_dead_strip	_dc_write_tmpl
.subsections_via_symbols
