	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __subn_set_opa_psi
___subn_set_opa_psi:                    ## @__subn_set_opa_psi
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %r12d
	movl	%esi, %edi
	callq	_OPA_AM_NPORT
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_OPA_AM_START_SM_CFG
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$1, %r13d
	jne	LBB0_13
## %bb.1:
	movl	$4, %edi
	movl	%r12d, %esi
	callq	_smp_length_check
	testq	%rax, %rax
	je	LBB0_2
LBB0_13:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_2:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_driver_lstate
	movl	%eax, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_port_states_to_logical_state
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_port_states_to_phys_state
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	_IB_PORT_INIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_7
## %bb.3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.4:
	cmpl	%r13d, %edx
	je	LBB0_6
## %bb.5:
	movq	_IB_PORT_ARMED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_7
LBB0_6:
	movl	$1, (%rdi)
	jmp	LBB0_7
LBB0_8:
	movq	_IB_PORT_ARMED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_7
## %bb.9:
	cmpl	$0, (%rdi)
	je	LBB0_10
LBB0_7:
	movq	%rbx, %rsi
	movl	%eax, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_set_port_states
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	movl	%r12d, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	___subn_get_opa_psi
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_IB_PORT_INIT,4,2               ## @IB_PORT_INIT
	.comm	_IB_PORT_ARMED,4,2              ## @IB_PORT_ARMED
	.no_dead_strip	___subn_set_opa_psi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __subn_set_opa_psi
___subn_set_opa_psi:                    ; @__subn_set_opa_psi
	.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	x26, x7
	mov	x19, x6
	mov	x27, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
	mov	x0, x1
	bl	_OPA_AM_NPORT
	mov	x20, x0
	mov	x0, x25
	bl	_OPA_AM_START_SM_CFG
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x28, x0
	mov	w0, #4
	mov	x1, x19
	bl	_smp_length_check
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x22
	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
	b	_reply
LBB0_3:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x23
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
	mov	x1, x21
	bl	_to_iport
	bl	_ppd_from_ibp
	mov	x21, x0
	bl	_driver_lstate
	mov	x20, x0
	mov	x0, x24
	bl	_port_states_to_logical_state
	mov	x27, x0
	mov	x0, x24
	bl	_port_states_to_phys_state
	mov	x3, x0
Lloh3:
	adrp	x8, _IB_PORT_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_10
; %bb.4:
	cbz	w28, LBB0_8
; %bb.5:
	cmp	w27, w20
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _IB_PORT_ARMED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PORT_ARMED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_10
LBB0_7:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _IB_PORT_ARMED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_PORT_ARMED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x21]
	cbz	w8, LBB0_12
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x27
	mov	x4, x26
	bl	_set_port_states
	cbz	w0, LBB0_13
; %bb.11:
	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_12:
Lloh12:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_13:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	ldr	w4, [sp, #4]                    ; 4-byte Folded Reload
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	mov	x6, x19
	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
	b	___subn_get_opa_psi
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_IB_PORT_INIT,4,2               ; @IB_PORT_INIT
	.comm	_IB_PORT_ARMED,4,2              ; @IB_PORT_ARMED
	.no_dead_strip	___subn_set_opa_psi
.subsections_via_symbols
