	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_sfp_status
_print_sfp_status:                      ## @print_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SFF_8472_BASE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SFF_8472_DIAG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-228(%rbp), %r8
	movl	$1, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_read_i2c
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.1:
	movq	_SFF_8472_DDM_DONE@GOTPCREL(%rip), %rax
	movq	_SFF_8472_DDM_INTERNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-228(%rbp), %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movl	$1, 8(%rbx)
LBB0_3:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_get_sfp_identifier
	leaq	-176(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	callq	_get_sfp_transceiver_class
	leaq	-224(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	callq	_get_sfp_connector
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	leaq	-128(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	leaq	-224(%rbp), %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_5:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_print_sfp_vendor
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.7:
	cmpl	$6, %r14d
	jge	LBB0_8
LBB0_9:
	cmpl	$0, 8(%rbx)
	je	LBB0_11
LBB0_10:
	leaq	-128(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$80, %edx
	callq	_get_sfp_temp
	leaq	-176(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	callq	_get_sfp_voltage
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$80, %edx
	callq	_get_sfp_rx_power
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	callq	_get_sfp_tx_power
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_11:
	cmpl	$3, %r14d
	jl	LBB0_13
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$128, %ecx
	callq	_dump_i2c_data
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	leaq	-128(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$6, %r14d
	jl	LBB0_9
LBB0_8:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_printf_sfp_transceiver_descr
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SFF_8472_BASE,4,2              ## @SFF_8472_BASE
	.comm	_SFF_8472_DIAG_TYPE,4,2         ## @SFF_8472_DIAG_TYPE
	.comm	_SFF_8472_DDM_DONE,4,2          ## @SFF_8472_DDM_DONE
	.comm	_SFF_8472_DDM_INTERNAL,4,2      ## @SFF_8472_DDM_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tplugged: %s %s (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"\t%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"\tmodule temperature: %s Voltage: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tRX: %s TX: %s\n"

L_str:                                  ## @str
	.asciz	"\n\tSFF8472 DUMP (0xA0 0..127 range):"

	.no_dead_strip	_print_sfp_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_sfp_status
_print_sfp_status:                      ; @print_sfp_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _SFF_8472_BASE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SFF_8472_BASE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _SFF_8472_DIAG_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SFF_8472_DIAG_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x4, sp, #36
	mov	w3, #1
	bl	_read_i2c
	ldr	x8, [x19]
	cbnz	x8, LBB0_11
; %bb.1:
Lloh8:
	adrp	x8, _SFF_8472_DDM_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SFF_8472_DDM_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SFF_8472_DDM_INTERNAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SFF_8472_DDM_INTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #36]
	bics	wzr, w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_3:
	add	x22, sp, #120
	add	x1, sp, #120
	mov	x0, x19
	mov	w2, #80
	bl	_get_sfp_identifier
	add	x23, sp, #80
	add	x1, sp, #80
	mov	x0, x19
	mov	w2, #40
	bl	_get_sfp_transceiver_class
	add	x24, sp, #40
	add	x1, sp, #40
	mov	x0, x19
	mov	w2, #40
	bl	_get_sfp_connector
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
	stp	x23, x24, [sp, #8]
	str	x22, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_5:
	add	x22, sp, #120
	add	x1, sp, #120
	mov	x0, x19
	mov	w2, #80
	bl	_print_sfp_vendor
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.6:
	cmp	w20, #6
	b.ge	LBB0_14
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
LBB0_8:
	add	x22, sp, #120
	add	x1, sp, #120
	mov	x0, x19
	mov	w2, #80
	bl	_get_sfp_temp
	add	x23, sp, #80
	add	x1, sp, #80
	mov	x0, x19
	mov	w2, #40
	bl	_get_sfp_voltage
	stp	x22, x23, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	x1, sp, #120
	mov	x0, x19
	mov	w2, #80
	bl	_get_sfp_rx_power
	add	x1, sp, #80
	mov	x0, x19
	mov	w2, #40
	bl	_get_sfp_tx_power
	stp	x22, x23, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_9:
	cmp	w20, #3
	b.lt	LBB0_11
; %bb.10:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #128
	bl	_dump_i2c_data
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_13:
	str	x22, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cmp	w20, #6
	b.lt	LBB0_7
LBB0_14:
	add	x1, sp, #120
	mov	x0, x19
	mov	w2, #80
	bl	_printf_sfp_transceiver_descr
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
	b	LBB0_9
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SFF_8472_BASE,4,2              ; @SFF_8472_BASE
	.comm	_SFF_8472_DIAG_TYPE,4,2         ; @SFF_8472_DIAG_TYPE
	.comm	_SFF_8472_DDM_DONE,4,2          ; @SFF_8472_DDM_DONE
	.comm	_SFF_8472_DDM_INTERNAL,4,2      ; @SFF_8472_DDM_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tplugged: %s %s (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"\t%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"\tmodule temperature: %s Voltage: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tRX: %s TX: %s\n"

l_str:                                  ; @str
	.asciz	"\n\tSFF8472 DUMP (0xA0 0..127 range):"

	.no_dead_strip	_print_sfp_status
.subsections_via_symbols
