	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6gmac_stop
_s6gmac_stop:                           ## @s6gmac_stop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movl	56(%rbx), %edi
	callq	_phy_stop
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_s6gmac_init_dmac
	movq	%r15, %rdi
	callq	_s6gmac_stop_device
	movq	8(%rbx), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_1
LBB0_4:
	movq	24(%rbx), %rax
	cmpq	%rax, 16(%rbx)
	jne	LBB0_5
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_S6_NUM_TX_SKB@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%rdx,4), %edi
	callq	_dev_kfree_skb
	movq	8(%rbx), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movq	(%r15), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_9
LBB0_5:
	movq	_S6_NUM_RX_SKB@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%rdx,4), %edi
	callq	_dev_kfree_skb
	movq	24(%rbx), %rax
	cmpq	%rax, 16(%rbx)
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 24(%rbx)
	movq	(%r15), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_NUM_TX_SKB,8,3              ## @S6_NUM_TX_SKB
	.comm	_S6_NUM_RX_SKB,8,3              ## @S6_NUM_RX_SKB
	.no_dead_strip	_s6gmac_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6gmac_stop
_s6gmac_stop:                           ; @s6gmac_stop
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_netif_stop_queue
	ldr	w0, [x19, #56]
	bl	_phy_stop
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_s6gmac_init_dmac
	mov	x0, x21
	bl	_s6gmac_stop_device
	ldp	x9, x8, [x19]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _S6_NUM_TX_SKB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S6_NUM_TX_SKB@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	add	x10, x8, #1
	str	x10, [x19, #8]
	ldr	x10, [x21]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	ldr	w0, [x9, x8, lsl #2]
	bl	_dev_kfree_skb
	ldp	x9, x8, [x19]
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_3:
	ldp	x9, x8, [x19, #16]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.4:
Lloh2:
	adrp	x21, _S6_NUM_RX_SKB@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S6_NUM_RX_SKB@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	add	x10, x8, #1
	str	x10, [x19, #24]
	ldr	x10, [x21]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	ldr	w0, [x9, x8, lsl #2]
	bl	_dev_kfree_skb
	ldp	x9, x8, [x19, #16]
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_NUM_TX_SKB,8,3              ; @S6_NUM_TX_SKB
	.comm	_S6_NUM_RX_SKB,8,3              ; @S6_NUM_RX_SKB
	.no_dead_strip	_s6gmac_stop
.subsections_via_symbols
