	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lmc_ifdown
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lmc_ifdown:                            ## @lmc_ifdown
	.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
	callq	_dev_to_sc
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_lmc_trace
	movq	%r14, %rdi
	callq	_netif_stop_queue
	incl	8(%r12)
	movq	_csr_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_LMC_CSR_WRITE
	movq	_csr_command@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_LMC_CSR_READ
	movq	_LMC_DEC_ST@GOTPCREL(%rip), %rcx
	movq	_LMC_DEC_SR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_LMC_CSR_WRITE
	movq	_csr_missed_frames@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_LMC_CSR_READ
	movzwl	%ax, %eax
	movq	40(%r12), %rcx
	addl	%eax, (%rcx)
	cmpl	$1, (%r12)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	$0, (%r12)
LBB0_2:
	movq	_LMC_RXDESCS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.3:
	movl	$1, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	addq	$3, %r13
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	$0, (%rax,%rbx,8)
	movq	32(%r12), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%r13,8)
	movl	$-559038737, -8(%rax,%r13,8)    ## imm = 0xDEADBEEF
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_dev_kfree_skb
	jmp	LBB0_6
LBB0_7:
	movq	_LMC_TXDESCS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_dev_kfree_skb
	movq	16(%r12), %rcx
	movl	(%r15), %eax
	jmp	LBB0_11
LBB0_12:
	movq	_LMC_MII16_LED_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lmc_led_off
	movq	%r14, %rdi
	callq	_netif_wake_queue
	incl	4(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_lmc_trace
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lmc_ifdown in"

	.comm	_csr_intr,4,2                   ## @csr_intr
	.comm	_csr_command,4,2                ## @csr_command
	.comm	_LMC_DEC_ST,4,2                 ## @LMC_DEC_ST
	.comm	_LMC_DEC_SR,4,2                 ## @LMC_DEC_SR
	.comm	_csr_missed_frames,4,2          ## @csr_missed_frames
	.comm	_LMC_RXDESCS,4,2                ## @LMC_RXDESCS
	.comm	_LMC_TXDESCS,4,2                ## @LMC_TXDESCS
	.comm	_LMC_MII16_LED_ALL,4,2          ## @LMC_MII16_LED_ALL
L_.str.1:                               ## @.str.1
	.asciz	"lmc_ifdown out"

	.no_dead_strip	_lmc_ifdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmc_ifdown
_lmc_ifdown:                            ; @lmc_ifdown
	.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
	bl	_dev_to_sc
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lmc_trace
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh2:
	adrp	x8, _csr_intr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _csr_intr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_LMC_CSR_WRITE
Lloh5:
	adrp	x21, _csr_command@GOTPAGE
Lloh6:
	ldr	x21, [x21, _csr_command@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_LMC_CSR_READ
Lloh7:
	adrp	x8, _LMC_DEC_ST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LMC_DEC_ST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _LMC_DEC_SR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LMC_DEC_SR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_LMC_CSR_WRITE
Lloh13:
	adrp	x8, _csr_missed_frames@GOTPAGE
Lloh14:
	ldr	x8, [x8, _csr_missed_frames@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LMC_CSR_READ
	ldr	x8, [x20, #40]
	ldr	w9, [x8]
	add	w9, w9, w0, uxth
	str	w9, [x8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	str	wzr, [x20]
LBB0_2:
Lloh16:
	adrp	x21, _LMC_RXDESCS@GOTPAGE
Lloh17:
	ldr	x21, [x21, _LMC_RXDESCS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #48879
	movk	w24, #57005, lsl #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	str	xzr, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #24
	cmp	x23, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x9, x23, #3
	ldr	x0, [x8, x9]
	str	xzr, [x8, x9]
	ldr	x8, [x20, #32]
	add	x8, x8, x22
	stp	xzr, xzr, [x8, #8]
	str	w24, [x8]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_dev_kfree_skb
	b	LBB0_4
LBB0_7:
Lloh18:
	adrp	x21, _LMC_TXDESCS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _LMC_TXDESCS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [x9, x22, lsl #3]
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_dev_kfree_skb
	ldr	x9, [x20, #16]
	ldr	w8, [x21]
	b	LBB0_9
LBB0_12:
Lloh20:
	adrp	x8, _LMC_MII16_LED_ALL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LMC_MII16_LED_ALL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lmc_led_off
	mov	x0, x19
	bl	_netif_wake_queue
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_lmc_trace
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lmc_ifdown in"

	.comm	_csr_intr,4,2                   ; @csr_intr
	.comm	_csr_command,4,2                ; @csr_command
	.comm	_LMC_DEC_ST,4,2                 ; @LMC_DEC_ST
	.comm	_LMC_DEC_SR,4,2                 ; @LMC_DEC_SR
	.comm	_csr_missed_frames,4,2          ; @csr_missed_frames
	.comm	_LMC_RXDESCS,4,2                ; @LMC_RXDESCS
	.comm	_LMC_TXDESCS,4,2                ; @LMC_TXDESCS
	.comm	_LMC_MII16_LED_ALL,4,2          ; @LMC_MII16_LED_ALL
l_.str.1:                               ; @.str.1
	.asciz	"lmc_ifdown out"

	.no_dead_strip	_lmc_ifdown
.subsections_via_symbols
