	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __subn_get_opa_psi
___subn_get_opa_psi:                    ## @__subn_get_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	16(%rbp), %r14d
	movl	%esi, %edi
	callq	_OPA_AM_NPORT
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_OPA_AM_START_SM_CFG
	cmpl	$1, %r12d
	jne	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	$24, %edi
	movl	%r14d, %esi
	callq	_smp_length_check
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_driver_lstate
	movl	%eax, %r13d
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_IB_PORT_INIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_5
## %bb.6:
	movl	$1, (%r12)
	movl	$32, %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%r12), %eax
	shll	$5, %eax
LBB0_7:
	movl	4(%r12), %ecx
	shll	$4, %ecx
	orl	%eax, %ecx
	orl	8(%r12), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ecx, 16(%rbx)
	movq	%r12, %rdi
	callq	_driver_pstate
	shll	$4, %eax
	andl	$15, %r13d
	orl	%eax, %r13d
	movl	%r13d, 20(%rbx)
	movl	16(%r12), %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%rbx)
	movl	12(%r12), %edi
	callq	_cpu_to_be16
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	addl	$24, (%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_IB_PORT_INIT,4,2               ## @IB_PORT_INIT
	.no_dead_strip	___subn_get_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_get_opa_psi
___subn_get_opa_psi:                    ; @__subn_get_opa_psi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x25, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x1
	bl	_OPA_AM_NPORT
	mov	x26, x0
	mov	x0, x24
	bl	_OPA_AM_START_SM_CFG
	cmp	w26, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x24, x0
	mov	w0, #24
	mov	x1, x25
	bl	_smp_length_check
	cbz	x0, LBB0_4
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, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_reply
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	bl	_to_iport
	bl	_ppd_from_ibp
	mov	x22, x0
	bl	_driver_lstate
	mov	x23, x0
	cbz	w24, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _IB_PORT_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x22]
	mov	w8, #32
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22]
	lsl	w8, w8, #5
LBB0_8:
	ldp	w9, w10, [x22, #4]
	orr	w8, w8, w9, lsl #4
	orr	w8, w8, w10
	str	w8, [x21, #16]
	mov	x0, x22
	bl	_driver_pstate
	bfi	w23, w0, #4, #28
	str	w23, [x21, #20]
	ldr	w0, [x22, #16]
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	ldr	w0, [x22, #12]
	bl	_cpu_to_be16
	str	x0, [x21]
	cbz	x20, LBB0_3
; %bb.9:
	ldr	w8, [x20]
	add	w8, w8, #24
	str	w8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_IB_PORT_INIT,4,2               ; @IB_PORT_INIT
	.no_dead_strip	___subn_get_opa_psi
.subsections_via_symbols
