	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_qsfp_status
_print_qsfp_status:                     ## @print_qsfp_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	$184, %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)
	movl	$1, (%rdi)
	leaq	-128(%rbp), %rsi
	movl	$80, %edx
	callq	_get_qsfp_identifier
	leaq	-176(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	callq	_get_qsfp_transceiver_class
	leaq	-224(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	callq	_get_qsfp_connector
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	-128(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	leaq	-224(%rbp), %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_print_sfp_vendor
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	cmpl	$2, %r14d
	jge	LBB0_5
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	leaq	-128(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$2, %r14d
	jl	LBB0_10
LBB0_5:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_get_qsfp_rev_compliance
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	leaq	-128(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	movq	%rbx, %rdi
	callq	_get_qsfp_br
	cmpq	$0, 8(%rbx)
	jne	LBB0_10
## %bb.8:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$80, %edx
	callq	_get_qsfp_temp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	cmpl	$3, %r14d
	jl	LBB0_14
LBB0_13:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_SFF_8436_BASE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_dump_i2c_data
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$82, %ecx
	callq	_dump_i2c_data
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-176(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_get_qsfp_voltage
	leaq	L_.str.4(%rip), %rdi
	leaq	-128(%rbp), %r12
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$80, %edx
	movl	$1, %ecx
	callq	_get_qsfp_rx_power
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	movl	$1, %ecx
	callq	_get_qsfp_tx_power
	leaq	L_.str.5(%rip), %r13
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$80, %edx
	movl	$2, %ecx
	callq	_get_qsfp_rx_power
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	movl	$2, %ecx
	callq	_get_qsfp_tx_power
	movq	%r13, %rdi
	movl	$2, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$80, %edx
	movl	$3, %ecx
	callq	_get_qsfp_rx_power
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	movl	$3, %ecx
	callq	_get_qsfp_tx_power
	movq	%r13, %rdi
	movl	$3, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$80, %edx
	movl	$4, %ecx
	callq	_get_qsfp_rx_power
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	movl	$4, %ecx
	callq	_get_qsfp_tx_power
	movq	%r13, %rdi
	movl	$4, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printf
	cmpl	$3, %r14d
	jge	LBB0_13
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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	"\tcompliance level: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tnominal bitrate: %u Mbps\n"

L_.str.4:                               ## @.str.4
	.asciz	"\tmodule temperature: %s voltage: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"\tlane %d: RX: %s TX: %s\n"

	.comm	_SFF_8436_BASE,4,2              ## @SFF_8436_BASE
L_str:                                  ## @str
	.asciz	"\n\tSFF8436 DUMP (0xA0 128..255 range):"

L_str.8:                                ## @str.8
	.asciz	"\n\tSFF8436 DUMP (0xA0 0..81 range):"

	.no_dead_strip	_print_qsfp_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_qsfp_status
_print_qsfp_status:                     ; @print_qsfp_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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]
	mov	w8, #1
	str	w8, [x0]
	add	x21, sp, #104
	add	x1, sp, #104
	mov	w2, #80
	bl	_get_qsfp_identifier
	add	x22, sp, #64
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	bl	_get_qsfp_transceiver_class
	add	x23, sp, #24
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #40
	bl	_get_qsfp_connector
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	stp	x22, x23, [sp, #8]
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
	add	x21, sp, #104
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	bl	_print_sfp_vendor
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	cmp	w20, #2
	b.ge	LBB0_5
	b	LBB0_10
LBB0_4:
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cmp	w20, #2
	b.lt	LBB0_10
LBB0_5:
	add	x21, sp, #104
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	bl	_get_qsfp_rev_compliance
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.6:
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_7:
	mov	x0, x19
	bl	_get_qsfp_br
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_10
; %bb.8:
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.9:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_10:
	add	x22, sp, #104
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	bl	_get_qsfp_temp
	cbz	x0, LBB0_15
; %bb.11:
	cmp	w20, #3
	b.lt	LBB0_13
LBB0_12:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh13:
	adrp	x20, _SFF_8436_BASE@GOTPAGE
Lloh14:
	ldr	x20, [x20, _SFF_8436_BASE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #128
	mov	w3, #128
	bl	_dump_i2c_data
Lloh15:
	adrp	x0, l_str.8@PAGE
Lloh16:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #82
	bl	_dump_i2c_data
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_15:
	add	x23, sp, #64
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	bl	_get_qsfp_voltage
	stp	x22, x23, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w21, #1
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	mov	w3, #1
	bl	_get_qsfp_rx_power
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	mov	w3, #1
	bl	_get_qsfp_tx_power
	stp	x22, x23, [sp, #8]
	str	x21, [sp]
Lloh22:
	adrp	x21, l_.str.5@PAGE
Lloh23:
	add	x21, x21, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_printf
	mov	w24, #2
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	mov	w3, #2
	bl	_get_qsfp_rx_power
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	mov	w3, #2
	bl	_get_qsfp_tx_power
	stp	x22, x23, [sp, #8]
	str	x24, [sp]
	mov	x0, x21
	bl	_printf
	mov	w24, #3
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	mov	w3, #3
	bl	_get_qsfp_rx_power
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	mov	w3, #3
	bl	_get_qsfp_tx_power
	stp	x22, x23, [sp, #8]
	str	x24, [sp]
	mov	x0, x21
	bl	_printf
	mov	w24, #4
	add	x1, sp, #104
	mov	x0, x19
	mov	w2, #80
	mov	w3, #4
	bl	_get_qsfp_rx_power
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #40
	mov	w3, #4
	bl	_get_qsfp_tx_power
	stp	x22, x23, [sp, #8]
	str	x24, [sp]
	mov	x0, x21
	bl	_printf
	cmp	w20, #3
	b.ge	LBB0_12
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.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	"\tcompliance level: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tnominal bitrate: %u Mbps\n"

l_.str.4:                               ; @.str.4
	.asciz	"\tmodule temperature: %s voltage: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"\tlane %d: RX: %s TX: %s\n"

	.comm	_SFF_8436_BASE,4,2              ; @SFF_8436_BASE
l_str:                                  ; @str
	.asciz	"\n\tSFF8436 DUMP (0xA0 128..255 range):"

l_str.8:                                ; @str.8
	.asciz	"\n\tSFF8436 DUMP (0xA0 0..81 range):"

	.no_dead_strip	_print_qsfp_status
.subsections_via_symbols
