	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sfp_status                     ## -- Begin function sfp_status
	.p2align	4, 0x90
_sfp_status:                            ## @sfp_status
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%ebx, -64(%rbp)
	movq	%r15, -48(%rbp)
	movl	$0, -36(%rbp)
	movq	_SFF_8472_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SFF_8472_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r8
	movq	%r12, %rdi
	movl	$1, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_read_i2c
	cmpq	$0, -56(%rbp)
	jne	LBB0_5
## %bb.1:
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	addl	$-128, %eax
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	callq	_print_qsfp_status
	jmp	LBB0_5
LBB0_4:
	callq	_print_sfp_status
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFF_8472_BASE,4,2              ## @SFF_8472_BASE
	.comm	_SFF_8472_ID,4,2                ## @SFF_8472_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sfp_status                     ; -- Begin function sfp_status
	.p2align	2
_sfp_status:                            ; @sfp_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	stp	wzr, w21, [sp, #4]
	str	x20, [sp, #24]
Lloh0:
	adrp	x8, _SFF_8472_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFF_8472_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SFF_8472_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFF_8472_ID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	add	x4, sp, #4
	mov	w3, #1
	bl	_read_i2c
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_5
; %bb.2:
	sub	w8, w8, #128
	add	x0, sp, #8
	mov	x1, x19
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
	bl	_print_qsfp_status
	b	LBB0_5
LBB0_4:
	bl	_print_sfp_status
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SFF_8472_BASE,4,2              ; @SFF_8472_BASE
	.comm	_SFF_8472_ID,4,2                ; @SFF_8472_ID
.subsections_via_symbols
