	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function octeon_prepare_soft_command
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_octeon_prepare_soft_command
	.p2align	4, 0x90
_octeon_prepare_soft_command:           ## @octeon_prepare_soft_command
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$16, %edx
	setge	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpl	$127, %r13d
	setg	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_octeon_get_conf
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_OCTEON_CN23XX_VF
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	movl	4(%rdx), %edx
	movl	%edx, 108(%rbx)
	movq	_LIO_CONTROL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 100(%rbx)
	movq	_ATOMIC_TAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 92(%rbx)
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,7]
	movups	%xmm0, 64(%rbx)
	movl	$8, 80(%rbx)
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 72(%rbx)
LBB0_4:
	movl	%r15d, 56(%rbx)
	movl	%r13d, 60(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%rbx)
	movq	48(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	48(%rbx), %rax
	movq	16(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %ecx
	movl	%ecx, 48(%rbx)
	movq	%rax, 40(%rbx)
	movq	_LIO_SOFTCMDRESP_IH3@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_LIO_PCICMD_O3@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ATOMIC_TAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 76(%rbx)
	movq	_LIO_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 68(%rbx)
	movl	$1, 36(%rbx)
	movq	%r12, %rdi
	callq	_CFG_GET_CTRL_Q_GRP
	movl	%eax, 60(%rbx)
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 52(%rbx)
	movl	$1, 40(%rbx)
LBB0_10:
	movl	%r15d, 32(%rbx)
	movl	%r13d, 36(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	24(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	24(%rbx), %rax
	movq	16(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r14), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	$1, 40(%rbx)
	movq	_LIO_SOFTCMDRESP_IH2@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movl	$0, 40(%rbx)
	movq	_LIO_PCICMD_O2@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_CONTROL,8,3                ## @LIO_CONTROL
	.comm	_ATOMIC_TAG,8,3                 ## @ATOMIC_TAG
	.comm	_LIO_SOFTCMDRESP_IH3,4,2        ## @LIO_SOFTCMDRESP_IH3
	.comm	_LIO_PCICMD_O3,4,2              ## @LIO_PCICMD_O3
	.comm	_LIO_SOFTCMDRESP_IH2,4,2        ## @LIO_SOFTCMDRESP_IH2
	.comm	_LIO_PCICMD_O2,4,2              ## @LIO_PCICMD_O2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function octeon_prepare_soft_command
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_octeon_prepare_soft_command
	.p2align	2
_octeon_prepare_soft_command:           ; @octeon_prepare_soft_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #15
	cset	w0, gt
	bl	_WARN_ON
	cmp	w24, #127
	cset	w0, gt
	bl	_WARN_ON
	mov	x0, x20
	bl	_octeon_get_conf
	mov	x26, x0
	mov	x0, x20
	bl	_OCTEON_CN23XX_PF
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_OCTEON_CN23XX_VF
	cbz	x0, LBB0_9
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	ldr	w10, [x10, #4]
	str	w10, [x19, #108]
Lloh0:
	adrp	x10, _LIO_CONTROL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LIO_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	stur	x10, [x19, #100]
Lloh3:
	adrp	x10, _ATOMIC_TAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATOMIC_TAG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	stur	x10, [x19, #92]
	ldr	x8, [x8, x9]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x19, #64]
	mov	w9, #8
	stp	w9, w8, [x19, #80]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [x19, #72]
LBB0_4:
	stp	w25, w24, [x19, #56]
	str	x23, [x19, #72]
	ldr	x8, [x19, #48]
	str	x22, [x8]
	ldr	x8, [x19, #48]
	str	x21, [x8, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w9, [x20]
	str	w9, [x19, #48]
	str	x8, [x19, #40]
Lloh8:
	adrp	x8, _LIO_SOFTCMDRESP_IH3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIO_SOFTCMDRESP_IH3@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _LIO_PCICMD_O3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LIO_PCICMD_O3@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #64]
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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh12:
	adrp	x8, _ATOMIC_TAG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATOMIC_TAG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stur	x8, [x19, #76]
Lloh15:
	adrp	x8, _LIO_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIO_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	stur	x8, [x19, #68]
	mov	w27, #1
	str	w27, [x19, #36]
	mov	x0, x26
	bl	_CFG_GET_CTRL_Q_GRP
	str	w0, [x19, #60]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_11
; %bb.10:
	stur	x8, [x19, #52]
	str	w27, [x19, #40]
LBB0_11:
	stp	w25, w24, [x19, #32]
	str	x23, [x19, #48]
	ldr	x8, [x19, #24]
	str	x22, [x8]
	ldr	x8, [x19, #24]
	str	x21, [x8, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w9, [x20]
	str	w9, [x19, #24]
	str	x8, [x19, #16]
	mov	w8, #1
Lloh18:
	adrp	x9, _LIO_SOFTCMDRESP_IH2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LIO_SOFTCMDRESP_IH2@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #40]
	b	LBB0_8
LBB0_13:
Lloh21:
	adrp	x8, _LIO_PCICMD_O2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LIO_PCICMD_O2@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #40]
	b	LBB0_8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_CONTROL,8,3                ; @LIO_CONTROL
	.comm	_ATOMIC_TAG,8,3                 ; @ATOMIC_TAG
	.comm	_LIO_SOFTCMDRESP_IH3,4,2        ; @LIO_SOFTCMDRESP_IH3
	.comm	_LIO_PCICMD_O3,4,2              ; @LIO_PCICMD_O3
	.comm	_LIO_SOFTCMDRESP_IH2,4,2        ; @LIO_SOFTCMDRESP_IH2
	.comm	_LIO_PCICMD_O2,4,2              ; @LIO_PCICMD_O2
.subsections_via_symbols
