	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_all_down
_sky2_all_down:                         ## @sky2_all_down
	.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, %r14
	movq	_SKY2_HW_IRQ_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_B0_IMSK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sky2_write32
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sky2_read32
	movq	24(%r14), %rax
	movl	(%rax), %edi
	callq	_synchronize_irq
	leaq	16(%r14), %rdi
	callq	_napi_disable
LBB0_2:
	cmpl	$0, 4(%r14)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_netif_tx_disable
	movq	%r15, %rdi
	callq	_sky2_hw_down
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKY2_HW_IRQ_SETUP,4,2          ## @SKY2_HW_IRQ_SETUP
	.comm	_B0_IMSK,4,2                    ## @B0_IMSK
	.no_dead_strip	_sky2_all_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_all_down
_sky2_all_down:                         ; @sky2_all_down
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SKY2_HW_IRQ_SETUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SKY2_HW_IRQ_SETUP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _B0_IMSK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _B0_IMSK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_sky2_write32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sky2_read32
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_synchronize_irq
	add	x0, x19, #16
	bl	_napi_disable
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_netif_tx_disable
	mov	x0, x21
	bl	_sky2_hw_down
	b	LBB0_4
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SKY2_HW_IRQ_SETUP,4,2          ; @SKY2_HW_IRQ_SETUP
	.comm	_B0_IMSK,4,2                    ; @B0_IMSK
	.no_dead_strip	_sky2_all_down
.subsections_via_symbols
