	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c2_reset
_c2_reset:                              ## @c2_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), %r14
	movq	_C2_PCI_HRX_QUI@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%r14), %esi
	movq	%r14, %rdi
	callq	_C2_SET_CUR_RX
	movl	$2, %edi
	callq	_ssleep
	movq	%r14, %rdi
	callq	_C2_GET_CUR_RX
	movl	%eax, %ebx
	movl	(%r15), %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r15), %eax
LBB0_2:
	notl	%eax
	andl	%eax, %ebx
	movl	%ebx, (%r14)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_C2_PCI_HRX_QUI,4,2             ## @C2_PCI_HRX_QUI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"c2_reset: failed to quiesce the hardware!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Current RX: %u\n"

	.no_dead_strip	_c2_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c2_reset
_c2_reset:                              ; @c2_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _C2_PCI_HRX_QUI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _C2_PCI_HRX_QUI@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_C2_SET_CUR_RX
	mov	w0, #2
	bl	_ssleep
	mov	x0, x19
	bl	_C2_GET_CUR_RX
	mov	x20, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x21]
LBB0_2:
	bic	w8, w20, w8
	str	w8, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_C2_PCI_HRX_QUI,4,2             ; @C2_PCI_HRX_QUI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"c2_reset: failed to quiesce the hardware!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Current RX: %u\n"

	.no_dead_strip	_c2_reset
.subsections_via_symbols
