	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_set_roce_affinity      ## -- Begin function qed_llh_set_roce_affinity
	.p2align	4, 0x90
_qed_llh_set_roce_affinity:             ## @qed_llh_set_roce_affinity
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_QED_LEADING_HWFN
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_qed_ptt_acquire
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_QED_IS_CMT
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	cmpl	$130, %ebx
	je	LBB0_9
## %bb.4:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.6:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.7:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_9:
	movq	_NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$15, %ecx
	callq	_qed_wr
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	jle	LBB0_15
## %bb.11:
	xorl	%r14d, %r14d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-80(%rbp), %rdx
	callq	_qed_llh_abs_ppfid
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-80(%rbp), %ebx
	shll	$2, %ebx
	movq	_NIG_REG_PPF_TO_ENGINE_SEL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_qed_rd
	movl	%eax, %r12d
	movq	_NIG_REG_PPF_TO_ENGINE_SEL_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_SET_FIELD
	movq	%r15, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_qed_wr
	incq	%r14
	movq	(%r15), %rax
	cmpq	(%rax), %r14
	jl	LBB0_12
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_qed_ptt_release
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_13:
	movl	%eax, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL,4,2 ## @NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid affinity value for RoCE [%d]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIG_REG_PPF_TO_ENGINE_SEL,4,2  ## @NIG_REG_PPF_TO_ENGINE_SEL
	.comm	_NIG_REG_PPF_TO_ENGINE_SEL_ROCE,4,2 ## @NIG_REG_PPF_TO_ENGINE_SEL_ROCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_set_roce_affinity      ; -- Begin function qed_llh_set_roce_affinity
	.p2align	2
_qed_llh_set_roce_affinity:             ; @qed_llh_set_roce_affinity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x21, x0
	bl	_QED_LEADING_HWFN
	mov	x19, x0
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_QED_IS_CMT
	cbz	w0, LBB0_13
; %bb.2:
	cmp	w22, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w22, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w22, #128
	b.ne	LBB0_16
; %bb.5:
	mov	w22, #1
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_7:
Lloh3:
	adrp	x8, _NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #15
	bl	_qed_wr
	mov	w22, #2
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
Lloh6:
	adrp	x26, _NIG_REG_PPF_TO_ENGINE_SEL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NIG_REG_PPF_TO_ENGINE_SEL@GOTPAGEOFF]
Lloh8:
	adrp	x27, _NIG_REG_PPF_TO_ENGINE_SEL_ROCE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _NIG_REG_PPF_TO_ENGINE_SEL_ROCE@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_qed_llh_abs_ppfid
	cbnz	w0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	ldr	w9, [sp, #8]
	add	w24, w8, w9, lsl #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_qed_rd
	mov	x25, x0
	ldr	w1, [x27]
	mov	x2, x22
	bl	_SET_FIELD
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	bl	_qed_wr
	add	x23, x23, #1
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_13:
	mov	w24, #0
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_DP_NOTICE
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_17:
	mov	x24, x0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL,4,2 ; @NIG_REG_LLH_ENG_CLS_ROCE_QP_SEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid affinity value for RoCE [%d]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIG_REG_PPF_TO_ENGINE_SEL,4,2  ; @NIG_REG_PPF_TO_ENGINE_SEL
	.comm	_NIG_REG_PPF_TO_ENGINE_SEL_ROCE,4,2 ; @NIG_REG_PPF_TO_ENGINE_SEL_ROCE
.subsections_via_symbols
