	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_qsfp_tx                    ## -- Begin function set_qsfp_tx
	.p2align	4, 0x90
_set_qsfp_tx:                           ## @set_qsfp_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	testl	%esi, %esi
	movl	$15, %eax
	cmovnel	%ebx, %eax
	movl	%eax, -12(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %esi
	movq	_QSFP_TX_CTRL_BYTE_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	movl	$1, %r8d
	callq	_qsfp_write
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	cmpl	$1, %eax
	cmovnel	%eax, %ebx
	testl	%eax, %eax
	cmovel	%edx, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QSFP_TX_CTRL_BYTE_OFFS,4,2     ## @QSFP_TX_CTRL_BYTE_OFFS
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_qsfp_tx                    ; -- Begin function set_qsfp_tx
	.p2align	2
_set_qsfp_tx:                           ; @set_qsfp_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #15
	cmp	w1, #0
	csel	w8, w8, wzr, eq
	stur	w8, [x29, #-4]
	ldr	x8, [x0]
	ldr	w1, [x8]
Lloh0:
	adrp	x8, _QSFP_TX_CTRL_BYTE_OFFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QSFP_TX_CTRL_BYTE_OFFS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x3, x29, #4
	mov	w4, #1
	bl	_qsfp_write
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w9, wzr, w0, eq
	cmp	w0, #0
	csneg	w0, w9, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QSFP_TX_CTRL_BYTE_OFFS,4,2     ; @QSFP_TX_CTRL_BYTE_OFFS
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
