	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_clear_txbdr
_enetc_clear_txbdr:                     ## @enetc_clear_txbdr
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	movq	_ENETC_TBMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_enetc_txbdr_wr
	movq	_ENETC_TBSR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_enetc_txbdr_rd
	movq	_ENETC_TBSR_BUSY@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.1:
	movl	$8, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_enetc_txbdr_rd
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.2:
	movl	$16, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_enetc_txbdr_rd
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:
	movl	$32, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_enetc_txbdr_rd
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.5:
	movl	$64, %edi
	callq	_msleep
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_warn                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_TBMR,4,2                 ## @ENETC_TBMR
	.comm	_ENETC_TBSR,4,2                 ## @ENETC_TBSR
	.comm	_ENETC_TBSR_BUSY,4,2            ## @ENETC_TBSR_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout for tx ring #%d clear\n"

	.no_dead_strip	_enetc_clear_txbdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_clear_txbdr
_enetc_clear_txbdr:                     ; @enetc_clear_txbdr
	.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	x20, x1
	mov	x21, x0
	ldr	w19, [x1]
Lloh0:
	adrp	x8, _ENETC_TBMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_TBMR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #0
	bl	_enetc_txbdr_wr
Lloh3:
	adrp	x22, _ENETC_TBSR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ENETC_TBSR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_enetc_txbdr_rd
Lloh5:
	adrp	x23, _ENETC_TBSR_BUSY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ENETC_TBSR_BUSY@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	mov	w0, #8
	bl	_msleep
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_enetc_txbdr_rd
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	mov	w0, #16
	bl	_msleep
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_enetc_txbdr_rd
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #32
	bl	_msleep
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_enetc_txbdr_rd
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #64
	bl	_msleep
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	b	_netdev_warn
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_TBMR,4,2                 ; @ENETC_TBMR
	.comm	_ENETC_TBSR,4,2                 ; @ENETC_TBSR
	.comm	_ENETC_TBSR_BUSY,4,2            ; @ENETC_TBSR_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout for tx ring #%d clear\n"

	.no_dead_strip	_enetc_clear_txbdr
.subsections_via_symbols
