	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_to_8820
_write_to_8820:                         ## @write_to_8820
	.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
	movl	%ecx, %r8d
	movq	%rdi, %rbx
	movl	(%rsi), %ecx
	movl	%ecx, %esi
	callq	_dst_put_ci
	movq	_verbose@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_DST_CA_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_DST_CA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movl	(%r14), %edi
	movq	_DST_CA_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_rdc_reset_state
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_CA_ERROR,4,2               ## @DST_CA_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" DST-CI Command failed."

	.comm	_DST_CA_NOTICE,4,2              ## @DST_CA_NOTICE
L_.str.1:                               ## @.str.1
	.asciz	" Resetting DST."

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	" DST-CI Command success."

	.no_dead_strip	_write_to_8820
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_to_8820
_write_to_8820:                         ; @write_to_8820
	.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
	mov	x4, x3
	mov	x19, x0
	ldr	w1, [x1]
	mov	x3, x1
	bl	_dst_put_ci
	mov	x8, x0
Lloh0:
	adrp	x20, _verbose@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
	ldr	w0, [x20]
	tbnz	x8, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DST_CA_NOTICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DST_CA_NOTICE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str.2@PAGE
Lloh6:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _DST_CA_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DST_CA_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _DST_CA_NOTICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DST_CA_NOTICE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_rdc_reset_state
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_CA_ERROR,4,2               ; @DST_CA_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" DST-CI Command failed."

	.comm	_DST_CA_NOTICE,4,2              ; @DST_CA_NOTICE
l_.str.1:                               ; @.str.1
	.asciz	" Resetting DST."

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	" DST-CI Command success."

	.no_dead_strip	_write_to_8820
.subsections_via_symbols
