	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_set_ppfid_affinity     ## -- Begin function qed_llh_set_ppfid_affinity
	.p2align	4, 0x90
_qed_llh_set_ppfid_affinity:            ## @qed_llh_set_ppfid_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_QED_LEADING_HWFN
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_QED_IS_CMT
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_qed_llh_abs_ppfid
	movl	%r12d, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_5
## %bb.6:
	cltq
	leaq	l_switch.table.qed_llh_set_ppfid_affinity(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_NIG_REG_PPF_TO_ENGINE_SEL@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %r12d
	shll	$2, %r12d
	addl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_qed_rd
	movl	%eax, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NIG_REG_PPF_TO_ENGINE_SEL_NON_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_SET_FIELD
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_wr
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	cmpl	$128, %ebx
	sete	%al
	movl	%eax, (%r13)
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_ptt_release
	jmp	LBB0_11
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid affinity value for ppfid [%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_NON_ROCE,4,2 ## @NIG_REG_PPF_TO_ENGINE_SEL_NON_ROCE
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.qed_llh_set_ppfid_affinity
l_switch.table.qed_llh_set_ppfid_affinity:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_set_ppfid_affinity     ; -- Begin function qed_llh_set_ppfid_affinity
	.p2align	2
_qed_llh_set_ppfid_affinity:            ; @qed_llh_set_ppfid_affinity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_QED_LEADING_HWFN
	mov	x19, x0
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	bl	_QED_IS_CMT
	cbz	w0, LBB0_5
; %bb.2:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	bl	_qed_llh_abs_ppfid
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.3:
	sub	w8, w21, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, l_switch.table.qed_llh_set_ppfid_affinity@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qed_llh_set_ppfid_affinity@PAGEOFF
	ldr	w24, [x9, w8, sxtw #2]
Lloh2:
	adrp	x8, _NIG_REG_PPF_TO_ENGINE_SEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NIG_REG_PPF_TO_ENGINE_SEL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	add	w25, w8, w9, lsl #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_qed_rd
	mov	x26, x0
Lloh5:
	adrp	x8, _NIG_REG_PPF_TO_ENGINE_SEL_NON_ROCE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIG_REG_PPF_TO_ENGINE_SEL_NON_ROCE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_SET_FIELD
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	mov	x3, x26
	bl	_qed_wr
	cbz	w23, LBB0_8
LBB0_5:
	mov	w24, #0
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_DP_NOTICE
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_QED_IS_IWARP_PERSONALITY
	mov	w24, #0
	cbz	x0, LBB0_10
; %bb.9:
	cmp	w21, #128
	cset	w8, eq
	str	w8, [x22]
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
LBB0_11:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid affinity value for ppfid [%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_NON_ROCE,4,2 ; @NIG_REG_PPF_TO_ENGINE_SEL_NON_ROCE
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.qed_llh_set_ppfid_affinity
l_switch.table.qed_llh_set_ppfid_affinity:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	2                               ; 0x2

.subsections_via_symbols
