	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_qsfp_temp
_get_qsfp_temp:                         ## @get_qsfp_temp
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_SFF_8436_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SFF_8436_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movq	%r12, %r8
	callq	_read_i2c
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movl	$-1, %eax
	cmpl	$255, %ecx
	jne	LBB0_2
## %bb.1:
	cmpl	$255, %edx
	je	LBB0_4
LBB0_2:
	orl	%edx, %ecx
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_convert_sff_temp
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SFF_8436_BASE,4,2              ## @SFF_8436_BASE
	.comm	_SFF_8436_TEMP,4,2              ## @SFF_8436_TEMP
	.no_dead_strip	_get_qsfp_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_qsfp_temp
_get_qsfp_temp:                         ; @get_qsfp_temp
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh3:
	adrp	x8, _SFF_8436_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFF_8436_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SFF_8436_TEMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SFF_8436_TEMP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x21
	mov	w3, #2
	bl	_read_i2c
	ldp	w8, w9, [sp]
	cmp	w8, #255
	b.ne	LBB0_2
; %bb.1:
	cmp	w9, #255
	b.eq	LBB0_3
LBB0_2:
	orr	w8, w8, w9
	cbnz	w8, LBB0_4
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_convert_sff_temp
	mov	w0, #0
LBB0_5:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SFF_8436_BASE,4,2              ; @SFF_8436_BASE
	.comm	_SFF_8436_TEMP,4,2              ; @SFF_8436_TEMP
	.no_dead_strip	_get_qsfp_temp
.subsections_via_symbols
