	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_set_pauseparam
_lio_set_pauseparam:                    ## @lio_set_pauseparam
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_GET_LIO
	movq	%rax, %r15
	movq	(%rax), %r13
	movq	(%r13), %rax
	movq	_OCTEON_CN23XX_PF_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_5
LBB0_2:
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	leaq	-88(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	$0, -72(%rbp)
	movq	_OCTNET_CMD_SET_FLOW_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	_liquidio_link_ctrl_cmd_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	setne	%al
	movl	%eax, -88(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
	movl	%eax, -84(%rbp)
	movq	(%r15), %rdi
	leaq	-88(%rbp), %rsi
	callq	_octnet_send_nic_ctrl_pkt
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	24(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 16(%r14)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_2
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movups	8(%r14), %xmm0
	movups	%xmm0, 8(%r13)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ## @OCTEON_CN23XX_PF_VID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_OCTNET_CMD_SET_FLOW_CTL,4,2    ## @OCTNET_CMD_SET_FLOW_CTL
	.comm	_liquidio_link_ctrl_cmd_completion,4,2 ## @liquidio_link_ctrl_cmd_completion
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set pause parameter, ret=%d\n"

	.no_dead_strip	_lio_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_set_pauseparam
_lio_set_pauseparam:                    ; @lio_set_pauseparam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	bl	_GET_LIO
	ldr	x22, [x0]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _OCTEON_CN23XX_PF_VID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCTEON_CN23XX_PF_VID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	xzr, [sp, #16]
Lloh6:
	adrp	x8, _OCTNET_CMD_SET_FLOW_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTNET_CMD_SET_FLOW_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x21, [sp, #32]
Lloh9:
	adrp	x8, _liquidio_link_ctrl_cmd_completion@GOTPAGE
Lloh10:
	ldr	x8, [x8, _liquidio_link_ctrl_cmd_completion@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldur	q0, [x19, #8]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	rev64.2s	v0, v0
	str	d0, [sp]
	ldr	x0, [x20]
	mov	x1, sp
	bl	_octnet_send_nic_ctrl_pkt
	cbz	w0, LBB0_9
; %bb.4:
	mov	x2, x0
	ldr	x0, [x22, #24]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldur	q0, [x19, #8]
	stur	q0, [x22, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ; @OCTEON_CN23XX_PF_VID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_OCTNET_CMD_SET_FLOW_CTL,4,2    ; @OCTNET_CMD_SET_FLOW_CTL
	.comm	_liquidio_link_ctrl_cmd_completion,4,2 ; @liquidio_link_ctrl_cmd_completion
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set pause parameter, ret=%d\n"

	.no_dead_strip	_lio_set_pauseparam
.subsections_via_symbols
