	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_stop_rx
_smsc9420_stop_rx:                      ## @smsc9420_stop_rx
	.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	%rdi, %r15
	movq	_DMAC_INTR_ENA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_smsc9420_reg_read
	movq	_DMAC_INTR_ENA_RX_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_write
	movq	%r15, %rdi
	callq	_smsc9420_pci_flush_write
	movq	_MAC_CR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movq	_MAC_CR_RXEN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_write
	movq	%r15, %rdi
	callq	_smsc9420_pci_flush_write
	movq	_DMAC_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movq	_DMAC_CONTROL_SR_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_write
	movq	%r15, %rdi
	callq	_smsc9420_pci_flush_write
	movl	$-999, %ebx                     ## imm = 0xFC19
	movq	_DMAC_STATUS@GOTPCREL(%rip), %r14
	movq	_DMAC_STS_RS_@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
## %bb.3:
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_warn
LBB0_4:
	movl	(%r14), %esi
	movq	_DMAC_STS_RXPS_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smsc9420_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAC_INTR_ENA,4,2              ## @DMAC_INTR_ENA
	.comm	_DMAC_INTR_ENA_RX_,4,2          ## @DMAC_INTR_ENA_RX_
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_RXEN_,4,2               ## @MAC_CR_RXEN_
	.comm	_DMAC_CONTROL,4,2               ## @DMAC_CONTROL
	.comm	_DMAC_CONTROL_SR_,4,2           ## @DMAC_CONTROL_SR_
	.comm	_DMAC_STATUS,4,2                ## @DMAC_STATUS
	.comm	_DMAC_STS_RS_,4,2               ## @DMAC_STS_RS_
	.comm	_ifdown,4,2                     ## @ifdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX DMAC did not stop! timeout\n"

	.comm	_DMAC_STS_RXPS_,4,2             ## @DMAC_STS_RXPS_
	.no_dead_strip	_smsc9420_stop_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_stop_rx
_smsc9420_stop_rx:                      ; @smsc9420_stop_rx
	.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, x0
Lloh0:
	adrp	x20, _DMAC_INTR_ENA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DMAC_INTR_ENA@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_smsc9420_reg_read
Lloh2:
	adrp	x8, _DMAC_INTR_ENA_RX_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMAC_INTR_ENA_RX_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	x0, x19
	bl	_smsc9420_pci_flush_write
Lloh5:
	adrp	x20, _MAC_CR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
Lloh7:
	adrp	x8, _MAC_CR_RXEN_@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAC_CR_RXEN_@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	x0, x19
	bl	_smsc9420_pci_flush_write
Lloh10:
	adrp	x20, _DMAC_CONTROL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _DMAC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
Lloh12:
	adrp	x8, _DMAC_CONTROL_SR_@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMAC_CONTROL_SR_@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	x0, x19
	bl	_smsc9420_pci_flush_write
	mov	w21, #-999
Lloh15:
	adrp	x20, _DMAC_STATUS@GOTPAGE
Lloh16:
	ldr	x20, [x20, _DMAC_STATUS@GOTPAGEOFF]
Lloh17:
	adrp	x22, _DMAC_STS_RS_@GOTPAGE
Lloh18:
	ldr	x22, [x22, _DMAC_STS_RS_@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	adds	w21, w21, #1
	b.lo	LBB0_1
; %bb.3:
Lloh19:
	adrp	x8, _ifdown@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
LBB0_4:
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _DMAC_STS_RXPS_@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DMAC_STS_RXPS_@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	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	_smsc9420_reg_write
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAC_INTR_ENA,4,2              ; @DMAC_INTR_ENA
	.comm	_DMAC_INTR_ENA_RX_,4,2          ; @DMAC_INTR_ENA_RX_
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_MAC_CR_RXEN_,4,2               ; @MAC_CR_RXEN_
	.comm	_DMAC_CONTROL,4,2               ; @DMAC_CONTROL
	.comm	_DMAC_CONTROL_SR_,4,2           ; @DMAC_CONTROL_SR_
	.comm	_DMAC_STATUS,4,2                ; @DMAC_STATUS
	.comm	_DMAC_STS_RS_,4,2               ; @DMAC_STS_RS_
	.comm	_ifdown,4,2                     ; @ifdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX DMAC did not stop! timeout\n"

	.comm	_DMAC_STS_RXPS_,4,2             ; @DMAC_STS_RXPS_
	.no_dead_strip	_smsc9420_stop_rx
.subsections_via_symbols
