	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_set_engine_affin
_qed_iwarp_set_engine_affin:            ## @qed_iwarp_set_engine_affin
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	_QED_BOTH_ENG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.6:
	movq	_QED_ENG0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_QED_ENG1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_qed_llh_set_ppfid_affinity
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_DP_NOTICE
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_DP_VERBOSE
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_BOTH_ENG,4,2               ## @QED_BOTH_ENG
	.comm	_QED_ENG1,4,2                   ## @QED_ENG1
	.comm	_QED_ENG0,4,2                   ## @QED_ENG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set the engine affinity of ppfid %d\n"

	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"LLH: Set the engine affinity of non-RoCE packets as %d\n"

	.no_dead_strip	_qed_iwarp_set_engine_affin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_set_engine_affin
_qed_iwarp_set_engine_affin:            ; @qed_iwarp_set_engine_affin
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	cbz	w1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _QED_BOTH_ENG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_BOTH_ENG@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _QED_ENG1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QED_ENG1@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh7:
	adrp	x10, _QED_ENG0@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QED_ENG0@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
LBB0_5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_qed_llh_set_ppfid_affinity
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_DP_NOTICE
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _QED_MSG_SP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QED_MSG_SP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_DP_VERBOSE
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_BOTH_ENG,4,2               ; @QED_BOTH_ENG
	.comm	_QED_ENG1,4,2                   ; @QED_ENG1
	.comm	_QED_ENG0,4,2                   ; @QED_ENG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set the engine affinity of ppfid %d\n"

	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"LLH: Set the engine affinity of non-RoCE packets as %d\n"

	.no_dead_strip	_qed_iwarp_set_engine_affin
.subsections_via_symbols
