	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_reset_hw
_macb_reset_hw:                         ## @macb_reset_hw
	.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
	movq	_NCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_macb_readl
	movl	%eax, %r15d
	movq	_RE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	movl	%eax, %ebx
	movq	_TE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	orl	%eax, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_CLRSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_macb_writel
	movq	_TSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_macb_writel
	movq	_RSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_macb_writel
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rbx
	xorl	%r15d, %r15d
	movq	_ISR@GOTPCREL(%rip), %r13
	movq	_MACB_CAPS_ISR_CLEAR_ON_WRITE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	$4, %rbx
	cmpl	(%r14), %r15d
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_queue_writel
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_queue_readl
	movl	(%r12), %eax
	testl	%eax, 4(%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_queue_writel
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCR,4,2                        ## @NCR
	.comm	_RE,4,2                         ## @RE
	.comm	_TE,4,2                         ## @TE
	.comm	_CLRSTAT,4,2                    ## @CLRSTAT
	.comm	_TSR,4,2                        ## @TSR
	.comm	_RSR,4,2                        ## @RSR
	.comm	_IDR,4,2                        ## @IDR
	.comm	_ISR,4,2                        ## @ISR
	.comm	_MACB_CAPS_ISR_CLEAR_ON_WRITE,4,2 ## @MACB_CAPS_ISR_CLEAR_ON_WRITE
	.no_dead_strip	_macb_reset_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_reset_hw
_macb_reset_hw:                         ; @macb_reset_hw
	.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
Lloh0:
	adrp	x22, _NCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NCR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_macb_readl
	mov	x20, x0
Lloh2:
	adrp	x8, _RE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MACB_BIT
	mov	x21, x0
Lloh5:
	adrp	x8, _TE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MACB_BIT
	orr	w8, w0, w21
	bic	w20, w20, w8
Lloh8:
	adrp	x8, _CLRSTAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLRSTAT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MACB_BIT
	orr	w2, w20, w0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_macb_writel
Lloh11:
	adrp	x8, _TSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TSR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_macb_writel
Lloh14:
	adrp	x8, _RSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_macb_writel
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w21, #0
	ldr	x20, [x19, #8]
Lloh17:
	adrp	x22, _IDR@GOTPAGE
Lloh18:
	ldr	x22, [x22, _IDR@GOTPAGEOFF]
Lloh19:
	adrp	x23, _ISR@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ISR@GOTPAGEOFF]
Lloh21:
	adrp	x24, _MACB_CAPS_ISR_CLEAR_ON_WRITE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _MACB_CAPS_ISR_CLEAR_ON_WRITE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w21, w8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #-1
	bl	_queue_writel
	ldr	w1, [x23]
	mov	x0, x20
	bl	_queue_readl
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #-1
	bl	_queue_writel
	b	LBB0_2
LBB0_5:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NCR,4,2                        ; @NCR
	.comm	_RE,4,2                         ; @RE
	.comm	_TE,4,2                         ; @TE
	.comm	_CLRSTAT,4,2                    ; @CLRSTAT
	.comm	_TSR,4,2                        ; @TSR
	.comm	_RSR,4,2                        ; @RSR
	.comm	_IDR,4,2                        ; @IDR
	.comm	_ISR,4,2                        ; @ISR
	.comm	_MACB_CAPS_ISR_CLEAR_ON_WRITE,4,2 ; @MACB_CAPS_ISR_CLEAR_ON_WRITE
	.no_dead_strip	_macb_reset_hw
.subsections_via_symbols
