	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_chip_reset
_init_chip_reset:                       ## @init_chip_reset
	.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
	movb	8(%rdi), %al
	movq	(%rdi), %rdx
	btrq	%rax, %rdx
	movq	%rdx, (%rdi)
	cmpl	$0, 16(%rdi)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	88(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	80(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_clear_bit
	incq	%rbx
	movslq	16(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	(%r15), %rdx
LBB0_4:
	movq	64(%r15), %rax
	movl	28(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_write_kreg
	leaq	72(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$0, 20(%r15)
	movq	64(%r15), %rax
	movl	24(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	64(%r15), %rax
	movl	20(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_read_kreg64
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	64(%r15), %rax
	movl	16(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	64(%r15), %rax
	movl	12(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_read_kreg32
	movq	24(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_6
## %bb.5:
	movq	56(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_info
LBB0_6:
	movq	64(%r15), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_read_kreg32
	movq	32(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_8
## %bb.7:
	movq	56(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_info
LBB0_8:
	movq	64(%r15), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_read_kreg32
	movq	40(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_10
## %bb.9:
	movq	56(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_info
LBB0_10:
	movq	64(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ipath_read_kreg32
	movq	48(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_12
## %bb.11:
	movq	56(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_info
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tidcnt was %u before reset, now %u, using original\n"

L_.str.1:                               ## @.str.1
	.asciz	"tidbase was %u before reset, now %u, using original\n"

L_.str.2:                               ## @.str.2
	.asciz	"egrcnt was %u before reset, now %u, using original\n"

L_.str.3:                               ## @.str.3
	.asciz	"egrbase was %u before reset, now %u, using original\n"

	.no_dead_strip	_init_chip_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_chip_reset
_init_chip_reset:                       ; @init_chip_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #1
	ldp	x10, x9, [x0]
	lsl	x8, x8, x9
	bic	x2, x10, x8
	str	x2, [x0]
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	add	x0, x20, x8
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x19, #80]
	add	x0, x20, x8
	mov	x1, x19
	bl	_clear_bit
	add	x20, x20, #1
	ldrsw	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_2
; %bb.3:
	ldr	x2, [x19]
LBB0_4:
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #28]
	mov	x0, x19
	bl	_ipath_write_kreg
	add	x20, x19, #72
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	wzr, [x19, #20]
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #24]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #20]
	mov	x0, x19
	bl	_ipath_read_kreg64
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #16]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #12]
	mov	x0, x19
	bl	_ipath_read_kreg32
	ldr	x2, [x19, #24]
	cmp	x0, x2
	b.eq	LBB0_6
; %bb.5:
	mov	x3, x0
	ldr	x0, [x19, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_6:
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_ipath_read_kreg32
	ldr	x2, [x19, #32]
	cmp	x0, x2
	b.eq	LBB0_8
; %bb.7:
	mov	x3, x0
	ldr	x0, [x19, #56]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_8:
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_ipath_read_kreg32
	ldr	x2, [x19, #40]
	cmp	x0, x2
	b.eq	LBB0_10
; %bb.9:
	mov	x3, x0
	ldr	x0, [x19, #56]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_10:
	ldr	x8, [x19, #64]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipath_read_kreg32
	ldr	x2, [x19, #48]
	cmp	x0, x2
	b.eq	LBB0_12
; %bb.11:
	mov	x3, x0
	ldr	x0, [x19, #56]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tidcnt was %u before reset, now %u, using original\n"

l_.str.1:                               ; @.str.1
	.asciz	"tidbase was %u before reset, now %u, using original\n"

l_.str.2:                               ; @.str.2
	.asciz	"egrcnt was %u before reset, now %u, using original\n"

l_.str.3:                               ; @.str.3
	.asciz	"egrbase was %u before reset, now %u, using original\n"

	.no_dead_strip	_init_chip_reset
.subsections_via_symbols
