	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_clean_cbdr
_enetc_clean_cbdr:                      ## @enetc_clean_cbdr
	.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
	movq	%rdi, %r14
	movl	8(%rdi), %ebx
	movl	16(%rdi), %edi
	callq	_enetc_rd_reg
	cmpl	%ebx, %eax
	jne	LBB0_1
LBB0_5:
	movl	%ebx, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENETC_CBD_STATUS_MASK@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	12(%r14)
	movl	16(%r14), %edi
	movl	%edx, %ebx
	callq	_enetc_rd_reg
	cmpl	%ebx, %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movl	16(%r14), %esi
	movl	%ebx, %edx
	callq	_ENETC_CBD
	movq	%rax, %r12
	movl	(%r13), %edx
	andl	(%rax), %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movl	4(%r12), %ecx
	movq	%r15, %rsi
	callq	_dev_warn
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_CBD_STATUS_MASK,4,2      ## @ENETC_CBD_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD err %04x for cmd %04x\n"

	.no_dead_strip	_enetc_clean_cbdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_clean_cbdr
_enetc_clean_cbdr:                      ; @enetc_clean_cbdr
	.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
	mov	x19, x0
	ldr	w20, [x0, #8]
	ldr	w0, [x0, #16]
	bl	_enetc_rd_reg
	cmp	w0, w20
	b.ne	LBB0_2
LBB0_1:
	str	w20, [x19, #8]
	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
LBB0_2:
Lloh0:
	adrp	x24, _ENETC_CBD_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENETC_CBD_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
                                        ; implicit-def: $x22
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	w8, w20, #1
	ldp	w9, w0, [x19, #12]
	sdiv	w10, w8, w9
	msub	w20, w10, w9, w8
	bl	_enetc_rd_reg
	cmp	w0, w20
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	w8, [x19, #16]
	and	x9, x22, #0xffffffff00000000
	orr	x22, x9, x8
	mov	x1, x22
	mov	x2, x20
	bl	_ENETC_CBD
	mov	x23, x0
	ldr	w8, [x0]
	ldr	w9, [x24]
	ands	w2, w9, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	ldr	w3, [x23, #4]
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_CBD_STATUS_MASK,4,2      ; @ENETC_CBD_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD err %04x for cmd %04x\n"

	.no_dead_strip	_enetc_clean_cbdr
.subsections_via_symbols
