	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_send_cmd
_enetc_send_cmd:                        ## @enetc_send_cmd
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_ENETC_CBDR_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	cmpl	$0, 16(%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_enetc_cbd_unused
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_enetc_clean_cbdr
LBB0_5:
	movl	(%r15), %r12d
	movl	16(%r15), %eax
	movl	%eax, -48(%rbp)
	movups	(%r15), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, 16(%rsp)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r12d, %edi
	callq	_ENETC_CBD
	movl	(%r14), %ecx
	movl	%ecx, (%rax)
	incl	%r12d
	movl	%r12d, %eax
	cltd
	idivl	4(%r15)
	movl	%edx, %r14d
	movl	%edx, (%r15)
	movl	12(%r15), %edi
	movl	%edx, %esi
	callq	_enetc_wr_reg
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	callq	_enetc_rd_reg
	cmpl	%r14d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$10, %edi
	callq	_udelay
	addl	$-10, %ebx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_enetc_clean_cbdr
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_CBDR_TIMEOUT,4,2         ## @ENETC_CBDR_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_enetc_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_send_cmd
_enetc_send_cmd:                        ; @enetc_send_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENETC_CBDR_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_CBDR_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_enetc_cbd_unused
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_enetc_clean_cbdr
LBB0_4:
	ldr	w21, [x19]
	ldr	q0, [x19]
	str	q0, [sp]
	ldr	w8, [x19, #16]
	str	w8, [sp, #16]
	mov	x0, sp
	mov	x1, x21
	bl	_ENETC_CBD
	ldr	w8, [x20]
	str	w8, [x0]
	add	w8, w21, #1
	ldr	w9, [x19, #4]
	sdiv	w10, w8, w9
	msub	w20, w10, w9, w8
	str	w20, [x19]
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_enetc_wr_reg
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_enetc_rd_reg
	cmp	w0, w20
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w22, w22, #10
	b.ne	LBB0_5
	b	LBB0_9
LBB0_7:
	cbz	w22, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_enetc_clean_cbdr
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_CBDR_TIMEOUT,4,2         ; @ENETC_CBDR_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_enetc_send_cmd
.subsections_via_symbols
