	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_qsfp_read
_test_qsfp_read:                        ## @test_qsfp_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_PORT_TYPE_QSFP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	callq	_qsfp_mod_present
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_one_qsfp_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	cmpl	$1, %eax
	je	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_TYPE_QSFP,8,3             ## @PORT_TYPE_QSFP
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_test_qsfp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_qsfp_read
_test_qsfp_read:                        ; @test_qsfp_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PORT_TYPE_QSFP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_TYPE_QSFP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_qsfp_mod_present
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #2
	mov	w4, #1
	bl	_one_qsfp_read
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_TYPE_QSFP,8,3             ; @PORT_TYPE_QSFP
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_test_qsfp_read
.subsections_via_symbols
