	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rxch_teardown
_emac_rxch_teardown:                    ## @emac_rxch_teardown
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movabsq	$-4294967280, %rbx              ## imm = 0xFFFFFFFF00000010
	movq	_EMAC_TEARDOWN_VALUE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_EMAC_RXCP
	movl	%eax, %edi
	callq	_emac_read
	notl	%eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	incq	%rbx
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_4:
	movq	%r12, %rdi
	callq	_EMAC_RXCP
	movl	(%r15), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emac_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_TEARDOWN_VALUE,4,2        ## @EMAC_TEARDOWN_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EMAC: RX teardown aborted\n"

	.no_dead_strip	_emac_rxch_teardown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rxch_teardown
_emac_rxch_teardown:                    ; @emac_rxch_teardown
	.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
	ldr	x20, [x0]
	mov	x22, #-65520
	movk	x22, #0, lsl #16
Lloh0:
	adrp	x21, _EMAC_TEARDOWN_VALUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EMAC_TEARDOWN_VALUE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_EMAC_RXCP
	bl	_emac_read
	ldr	w8, [x21]
	bics	wzr, w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	adds	x22, x22, #1
	b.lo	LBB0_1
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x19
	bl	_EMAC_RXCP
	ldr	w1, [x21]
	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
	b	_emac_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_TEARDOWN_VALUE,4,2        ; @EMAC_TEARDOWN_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EMAC: RX teardown aborted\n"

	.no_dead_strip	_emac_rxch_teardown
.subsections_via_symbols
