	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_set_opa_errorinfo
_pma_set_opa_errorinfo:                 ## @pma_set_opa_errorinfo
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_dd_from_ibdev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	movq	16(%r12), %r14
	movl	4(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_OPA_AM_NPORT
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movl	12(%rax), %edi
	callq	_be64_to_cpu
	movl	%eax, %edi
	callq	_hweight64
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$1, %r15d
	jne	LBB0_19
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_19
## %bb.2:
	movq	8(%r12), %rax
	movl	12(%rax), %edi
	callq	_be64_to_cpu
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$32, %esi
	callq	_find_first_bit
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.4:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movq	_ES_PORT_RCV_ERROR_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
LBB0_6:
	movq	_ES_EXCESSIVE_BUFFER_OVERRUN_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_RCV_ERR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_csr
LBB0_8:
	movq	_ES_PORT_XMIT_CONSTRAINT_ERROR_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
LBB0_10:
	movq	_ES_PORT_RCV_CONSTRAINT_ERROR_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
LBB0_12:
	movq	_ES_UNCORRECTABLE_ERROR_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_14:
	movq	_ES_FM_CONFIG_ERROR_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_OPA_EI_STATUS_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_16:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	addl	$24, (%rcx)
	jmp	LBB0_18
LBB0_19:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_3:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
LBB0_18:
	movq	%r13, %rdi
	callq	_reply
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_ES_PORT_RCV_ERROR_INFO,4,2     ## @ES_PORT_RCV_ERROR_INFO
	.comm	_OPA_EI_STATUS_SMASK,4,2        ## @OPA_EI_STATUS_SMASK
	.comm	_ES_EXCESSIVE_BUFFER_OVERRUN_INFO,4,2 ## @ES_EXCESSIVE_BUFFER_OVERRUN_INFO
	.comm	_RCV_ERR_INFO,4,2               ## @RCV_ERR_INFO
	.comm	_RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK,4,2 ## @RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK
	.comm	_ES_PORT_XMIT_CONSTRAINT_ERROR_INFO,4,2 ## @ES_PORT_XMIT_CONSTRAINT_ERROR_INFO
	.comm	_ES_PORT_RCV_CONSTRAINT_ERROR_INFO,4,2 ## @ES_PORT_RCV_CONSTRAINT_ERROR_INFO
	.comm	_ES_UNCORRECTABLE_ERROR_INFO,4,2 ## @ES_UNCORRECTABLE_ERROR_INFO
	.comm	_ES_FM_CONFIG_ERROR_INFO,4,2    ## @ES_FM_CONFIG_ERROR_INFO
	.no_dead_strip	_pma_set_opa_errorinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pma_set_opa_errorinfo
_pma_set_opa_errorinfo:                 ; @pma_set_opa_errorinfo
	.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	x20, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_dd_from_ibdev
	mov	x21, x0
	ldr	x26, [x19, #8]
	ldr	x23, [x26, #16]
	ldr	w0, [x19, #4]
	bl	_be32_to_cpu
	bl	_OPA_AM_NPORT
	mov	x24, x0
	ldr	x8, [x26, #8]
	ldr	w0, [x8, #12]
	bl	_be64_to_cpu
	bl	_hweight64
	mov	x25, x0
	mov	x0, x23
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cmp	w24, #1
	ccmp	w25, #1, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	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
	b	_reply
LBB0_2:
	ldr	x8, [x26, #8]
	ldr	w0, [x8, #12]
	bl	_be64_to_cpu
	str	w0, [sp, #12]
	add	x0, sp, #12
	mov	w1, #32
	bl	_find_first_bit
	cmp	w0, w22
	b.ne	LBB0_17
; %bb.3:
	ldr	w0, [x26]
	bl	_be32_to_cpu
	mov	x22, x0
Lloh3:
	adrp	x8, _ES_PORT_RCV_ERROR_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ES_PORT_RCV_ERROR_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x23, _OPA_EI_STATUS_SMASK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _OPA_EI_STATUS_SMASK@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
LBB0_5:
Lloh8:
	adrp	x8, _ES_EXCESSIVE_BUFFER_OVERRUN_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ES_EXCESSIVE_BUFFER_OVERRUN_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _RCV_ERR_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RCV_ERR_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_write_csr
LBB0_7:
Lloh17:
	adrp	x8, _ES_PORT_XMIT_CONSTRAINT_ERROR_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ES_PORT_XMIT_CONSTRAINT_ERROR_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x23]
	ldr	w9, [x21, #12]
	bic	w8, w9, w8
	str	w8, [x21, #12]
LBB0_9:
Lloh20:
	adrp	x8, _ES_PORT_RCV_CONSTRAINT_ERROR_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ES_PORT_RCV_CONSTRAINT_ERROR_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	str	w8, [x21, #8]
LBB0_11:
Lloh23:
	adrp	x8, _ES_UNCORRECTABLE_ERROR_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ES_UNCORRECTABLE_ERROR_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x23]
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
	str	w8, [x21, #4]
LBB0_13:
Lloh26:
	adrp	x8, _ES_FM_CONFIG_ERROR_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ES_FM_CONFIG_ERROR_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x23]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_15:
	cbz	x20, LBB0_18
; %bb.16:
	ldr	w8, [x20]
	add	w8, w8, #24
	str	w8, [x20]
	b	LBB0_18
LBB0_17:
Lloh29:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_18:
	mov	x0, x19
	bl	_reply
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_ES_PORT_RCV_ERROR_INFO,4,2     ; @ES_PORT_RCV_ERROR_INFO
	.comm	_OPA_EI_STATUS_SMASK,4,2        ; @OPA_EI_STATUS_SMASK
	.comm	_ES_EXCESSIVE_BUFFER_OVERRUN_INFO,4,2 ; @ES_EXCESSIVE_BUFFER_OVERRUN_INFO
	.comm	_RCV_ERR_INFO,4,2               ; @RCV_ERR_INFO
	.comm	_RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK,4,2 ; @RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK
	.comm	_ES_PORT_XMIT_CONSTRAINT_ERROR_INFO,4,2 ; @ES_PORT_XMIT_CONSTRAINT_ERROR_INFO
	.comm	_ES_PORT_RCV_CONSTRAINT_ERROR_INFO,4,2 ; @ES_PORT_RCV_CONSTRAINT_ERROR_INFO
	.comm	_ES_UNCORRECTABLE_ERROR_INFO,4,2 ; @ES_UNCORRECTABLE_ERROR_INFO
	.comm	_ES_FM_CONFIG_ERROR_INFO,4,2    ; @ES_FM_CONFIG_ERROR_INFO
	.no_dead_strip	_pma_set_opa_errorinfo
.subsections_via_symbols
