	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_qsfp_high_power
_set_qsfp_high_power:                   ## @set_qsfp_high_power
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	_QSFP_MOD_PWR_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_get_qsfp_power_class
	movq	%rax, %r15
	movq	_QSFP_POWER_CLASS_1@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %r15
	jle	LBB0_6
## %bb.1:
	movq	_QSFP_PWR_CTRL_BYTE_OFFS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	(%rbx,%rdx,8), %rax
	andq	$-4, %rax
	orq	$1, %rax
	movq	%rax, -48(%rbp)
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %r8d
	callq	_qsfp_write
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	_QSFP_POWER_CLASS_4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jle	LBB0_5
## %bb.4:
	orb	$4, -48(%rbp)
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	(%r12), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %r8d
	callq	_qsfp_write
	cmpl	$1, %eax
	jne	LBB0_2
LBB0_5:
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	jmp	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QSFP_MOD_PWR_OFFS,8,3          ## @QSFP_MOD_PWR_OFFS
	.comm	_QSFP_POWER_CLASS_1,8,3         ## @QSFP_POWER_CLASS_1
	.comm	_QSFP_PWR_CTRL_BYTE_OFFS,8,3    ## @QSFP_PWR_CTRL_BYTE_OFFS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QSFP_POWER_CLASS_4,8,3         ## @QSFP_POWER_CLASS_4
	.no_dead_strip	_set_qsfp_high_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_qsfp_high_power
_set_qsfp_high_power:                   ; @set_qsfp_high_power
	.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, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _QSFP_MOD_PWR_OFFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QSFP_MOD_PWR_OFFS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	bl	_get_qsfp_power_class
Lloh3:
	adrp	x8, _QSFP_POWER_CLASS_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QSFP_POWER_CLASS_1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x21, _QSFP_PWR_CTRL_BYTE_OFFS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _QSFP_PWR_CTRL_BYTE_OFFS@GOTPAGEOFF]
	ldr	x2, [x21]
	ldr	x8, [x22, x2, lsl #3]
	and	x8, x8, #0xfffffffffffffffc
	orr	x8, x8, #0x1
	str	x8, [sp, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #1
	bl	_qsfp_write
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _QSFP_POWER_CLASS_4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QSFP_POWER_CLASS_4@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x20, x8
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	orr	x8, x8, #0x4
	str	x8, [sp, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	x2, [x21]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #1
	bl	_qsfp_write
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #300
	bl	_msleep
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QSFP_MOD_PWR_OFFS,8,3          ; @QSFP_MOD_PWR_OFFS
	.comm	_QSFP_POWER_CLASS_1,8,3         ; @QSFP_POWER_CLASS_1
	.comm	_QSFP_PWR_CTRL_BYTE_OFFS,8,3    ; @QSFP_PWR_CTRL_BYTE_OFFS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QSFP_POWER_CLASS_4,8,3         ; @QSFP_POWER_CLASS_4
	.no_dead_strip	_set_qsfp_high_power
.subsections_via_symbols
