	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_qsfp                     ## -- Begin function reset_qsfp
	.p2align	4, 0x90
_reset_qsfp:                            ## @reset_qsfp
	.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	(%rdi), %r12
	xorl	%esi, %esi
	callq	_set_qsfp_int_n
	movq	_QSFP_HFI0_RESET_N@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpq	$0, (%r12)
	movq	_ASIC_QSFP2_OUT@GOTPCREL(%rip), %rbx
	movq	%rbx, %rax
	cmoveq	_ASIC_QSFP1_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_read_csr
	movl	%eax, %r15d
	movl	%r13d, %edx
	notl	%edx
	andl	%eax, %edx
	cmpq	$0, (%r12)
	movq	%rbx, %rax
	cmoveq	_ASIC_QSFP1_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_write_csr
	movl	$10, %edi
	callq	_udelay
	orl	%r13d, %r15d
	cmpq	$0, (%r12)
	cmoveq	_ASIC_QSFP1_OUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_write_csr
	movq	%r14, %rdi
	callq	_wait_for_qsfp_init
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_set_qsfp_int_n
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_qsfp_tx                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QSFP_HFI0_RESET_N,8,3          ## @QSFP_HFI0_RESET_N
	.comm	_ASIC_QSFP2_OUT,4,2             ## @ASIC_QSFP2_OUT
	.comm	_ASIC_QSFP1_OUT,4,2             ## @ASIC_QSFP1_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_qsfp                     ; -- Begin function reset_qsfp
	.p2align	2
_reset_qsfp:                            ; @reset_qsfp
	.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
	ldr	x20, [x0]
	mov	w1, #0
	bl	_set_qsfp_int_n
Lloh0:
	adrp	x8, _QSFP_HFI0_RESET_N@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QSFP_HFI0_RESET_N@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _ASIC_QSFP2_OUT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ASIC_QSFP2_OUT@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh5:
	adrp	x24, _ASIC_QSFP1_OUT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ASIC_QSFP1_OUT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x24, x23, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_read_csr
	mov	x21, x0
	bic	w2, w0, w22
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x24, x23, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_write_csr
	mov	w0, #10
	bl	_udelay
	orr	w2, w21, w22
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x24, x23, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_write_csr
	mov	x0, x19
	bl	_wait_for_qsfp_init
	mov	x0, x19
	mov	w1, #1
	bl	_set_qsfp_int_n
	mov	x0, x19
	mov	w1, #0
	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
	b	_set_qsfp_tx
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QSFP_HFI0_RESET_N,8,3          ; @QSFP_HFI0_RESET_N
	.comm	_ASIC_QSFP2_OUT,4,2             ; @ASIC_QSFP2_OUT
	.comm	_ASIC_QSFP1_OUT,4,2             ; @ASIC_QSFP1_OUT
.subsections_via_symbols
