	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_write_dfc_entry
_ccdc_write_dfc_entry:                  ## @ccdc_write_dfc_entry
	.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
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movslq	%edi, %rbx
	movl	(%rax,%rbx,4), %edi
	movq	_DFCMEM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_DFCMEM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_DFCMEM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_DFCMEM3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_DFCMEM4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_DFCMEMCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_regr
	movq	_CCDC_DFCMEMCTL_DFCMWR_MASK@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_regw
	movl	$-1001, %ebx                    ## imm = 0xFC17
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_regr
	incl	%ebx
	testl	%eax, (%r15)
	jne	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movq	_ccdc_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DFCMEM0,4,2                    ## @DFCMEM0
	.comm	_DFCMEM1,4,2                    ## @DFCMEM1
	.comm	_DFCMEM2,4,2                    ## @DFCMEM2
	.comm	_DFCMEM3,4,2                    ## @DFCMEM3
	.comm	_DFCMEM4,4,2                    ## @DFCMEM4
	.comm	_DFCMEMCTL,4,2                  ## @DFCMEMCTL
	.comm	_CCDC_DFCMEMCTL_DFCMWR_MASK,4,2 ## @CCDC_DFCMEMCTL_DFCMWR_MASK
	.comm	_ccdc_cfg,4,2                   ## @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"defect table write timeout !!!\n"

	.comm	_DFC_WRITE_WAIT_COUNT,4,2       ## @DFC_WRITE_WAIT_COUNT
	.no_dead_strip	_ccdc_write_dfc_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_write_dfc_entry
_ccdc_write_dfc_entry:                  ; @ccdc_write_dfc_entry
	.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
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x1]
	sbfiz	x20, x0, #2, #32
	ldr	w0, [x8, x20]
Lloh0:
	adrp	x8, _DFCMEM0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DFCMEM0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_regw
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20]
Lloh3:
	adrp	x8, _DFCMEM1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DFCMEM1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_regw
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20]
Lloh6:
	adrp	x8, _DFCMEM2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DFCMEM2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_regw
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20]
Lloh9:
	adrp	x8, _DFCMEM3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DFCMEM3@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_regw
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20]
Lloh12:
	adrp	x8, _DFCMEM4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DFCMEM4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_regw
Lloh15:
	adrp	x19, _DFCMEMCTL@GOTPAGE
Lloh16:
	ldr	x19, [x19, _DFCMEMCTL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_regr
Lloh17:
	adrp	x20, _CCDC_DFCMEMCTL_DFCMWR_MASK@GOTPAGE
Lloh18:
	ldr	x20, [x20, _CCDC_DFCMEMCTL_DFCMWR_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w0, w8, w0
	ldr	w1, [x19]
	bl	_regw
	mov	w21, #-1001
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_regr
	ldr	w8, [x20]
	add	w21, w21, #1
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _ccdc_cfg@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ccdc_cfg@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DFCMEM0,4,2                    ; @DFCMEM0
	.comm	_DFCMEM1,4,2                    ; @DFCMEM1
	.comm	_DFCMEM2,4,2                    ; @DFCMEM2
	.comm	_DFCMEM3,4,2                    ; @DFCMEM3
	.comm	_DFCMEM4,4,2                    ; @DFCMEM4
	.comm	_DFCMEMCTL,4,2                  ; @DFCMEMCTL
	.comm	_CCDC_DFCMEMCTL_DFCMWR_MASK,4,2 ; @CCDC_DFCMEMCTL_DFCMWR_MASK
	.comm	_ccdc_cfg,4,2                   ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"defect table write timeout !!!\n"

	.comm	_DFC_WRITE_WAIT_COUNT,4,2       ; @DFC_WRITE_WAIT_COUNT
	.no_dead_strip	_ccdc_write_dfc_entry
.subsections_via_symbols
