	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qsfp_mod_present               ## -- Begin function qsfp_mod_present
	.p2align	4, 0x90
_qsfp_mod_present:                      ## @qsfp_mod_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_ASIC_QSFP1_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ASIC_QSFP2_IN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_read_csr
	movq	_QSFP_HFI0_MODPRST_N@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	sete	%cl
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_QSFP2_IN,4,2              ## @ASIC_QSFP2_IN
	.comm	_ASIC_QSFP1_IN,4,2              ## @ASIC_QSFP1_IN
	.comm	_QSFP_HFI0_MODPRST_N,4,2        ## @QSFP_HFI0_MODPRST_N
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qsfp_mod_present               ; -- Begin function qsfp_mod_present
	.p2align	2
_qsfp_mod_present:                      ; @qsfp_mod_present
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _ASIC_QSFP2_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASIC_QSFP2_IN@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	adrp	x10, _ASIC_QSFP1_IN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ASIC_QSFP1_IN@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	bl	_read_csr
Lloh4:
	adrp	x8, _QSFP_HFI0_MODPRST_N@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QSFP_HFI0_MODPRST_N@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_QSFP2_IN,4,2              ; @ASIC_QSFP2_IN
	.comm	_ASIC_QSFP1_IN,4,2              ; @ASIC_QSFP1_IN
	.comm	_QSFP_HFI0_MODPRST_N,4,2        ; @QSFP_HFI0_MODPRST_N
.subsections_via_symbols
