	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_subn_get_portinfo
_recv_subn_get_portinfo:                ## @recv_subn_get_portinfo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movl	28(%rdi), %edi
	callq	_be32_to_cpu
	cmpq	(%rbx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	jmp	LBB0_25
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_idev
	movq	%rax, %r15
	movq	56(%rax), %r13
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r14), %rcx
	movq	_IB_MGMT_METHOD_SET@GOTPCREL(%rip), %rdx
	movq	(%r15), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.3:
	cmpq	8(%r14), %rax
	je	LBB0_5
## %bb.4:
	cmpl	$0, 8(%r15)
	jne	LBB0_6
LBB0_5:
	movq	%rax, (%r12)
LBB0_6:
	movl	52(%r15), %eax
	movl	%eax, 160(%r12)
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:
	callq	_cpu_to_be16
	jmp	LBB0_9
LBB0_8:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	%rax, 152(%r12)
	movl	12(%r15), %edi
	callq	_cpu_to_be16
	movq	%rax, 144(%r12)
	movl	16(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 136(%r12)
	movl	20(%r15), %edi
	callq	_cpu_to_be16
	movq	%rax, 128(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	56(%r13), %eax
	movl	%eax, 124(%r12)
	movl	52(%r13), %eax
	movl	%eax, 120(%r12)
	movl	48(%r13), %eax
	movl	%eax, 116(%r12)
	movl	4(%r13), %eax
	shll	$4, %eax
	movl	%eax, 16(%r12)
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ipath_ib_linkstate
	incl	%eax
	orl	%eax, 16(%r12)
	movq	_ipath_cvt_physportstate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	16(%r13), %rbx
	movl	(%rax,%rbx,4), %ebx
	shll	$4, %ebx
	movq	%r13, %rdi
	callq	_get_linkdowndefaultstate
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rbx), %eax
	incl	%eax
	movl	%eax, 20(%r12)
	movl	8(%r15), %eax
	shll	$6, %eax
	orl	24(%r13), %eax
	movl	%eax, 24(%r12)
	movl	28(%r13), %eax
	shll	$4, %eax
	orl	32(%r13), %eax
	movl	%eax, 28(%r12)
	movl	36(%r13), %eax
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jle	LBB0_10
## %bb.13:
	cmpl	$1024, %eax                     ## imm = 0x400
	je	LBB0_17
## %bb.14:
	cmpl	$2048, %eax                     ## imm = 0x800
	je	LBB0_19
## %bb.15:
	cmpl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_19
## %bb.16:
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_18
## %bb.11:
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_19
## %bb.12:
	movq	_IB_MTU_512@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_IB_MTU_2048@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	_IB_MTU_1024@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_IB_MTU_256@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
	shlq	$4, %rax
	orq	24(%r15), %rax
	movq	%rax, 32(%r12)
	movl	$16, 40(%r12)
	movl	48(%r15), %eax
	movl	%eax, 112(%r12)
	movq	_ipath_mtu4096@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.22:
	movq	_IB_MTU_2048@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
LBB0_23:
	movq	(%rax), %rax
	movq	%rax, 104(%r12)
	movl	$16, 44(%r12)
	movl	32(%r15), %edi
	callq	_cpu_to_be16
	movq	%rax, 96(%r12)
	movq	%r13, %rdi
	callq	_ipath_get_cr_errpkey
	subl	36(%r15), %eax
	movzwl	%ax, %edi
	callq	_cpu_to_be16
	movq	%rax, 88(%r12)
	movl	40(%r15), %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%r12)
	movl	$1, 48(%r12)
	movl	44(%r15), %eax
	movl	%eax, 72(%r12)
	movl	$3, 52(%r12)
	movq	%r13, %rdi
	callq	_get_phyerrthreshold
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	%r13, %rdi
	callq	_get_overrunthreshold
	orl	%ebx, %eax
	movl	%eax, 56(%r12)
	movq	_IB_PORT_LINK_LATENCY_SUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_25
## %bb.24:
	movq	_IPATH_IB_CFG_LINKLATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*40(%r13)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	64(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 4(%rdx)
	movl	%eax, 8(%rdx)
LBB0_25:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_IB_MGMT_METHOD_SET,8,3         ## @IB_MGMT_METHOD_SET
	.comm	_IB_LID_PERMISSIVE,8,3          ## @IB_LID_PERMISSIVE
	.comm	_ipath_cvt_physportstate,8,3    ## @ipath_cvt_physportstate
	.comm	_IB_MTU_4096,8,3                ## @IB_MTU_4096
	.comm	_IB_MTU_2048,8,3                ## @IB_MTU_2048
	.comm	_IB_MTU_1024,8,3                ## @IB_MTU_1024
	.comm	_IB_MTU_512,8,3                 ## @IB_MTU_512
	.comm	_IB_MTU_256,8,3                 ## @IB_MTU_256
	.comm	_ipath_mtu4096,8,3              ## @ipath_mtu4096
	.comm	_IB_PORT_LINK_LATENCY_SUP,4,2   ## @IB_PORT_LINK_LATENCY_SUP
	.comm	_IPATH_IB_CFG_LINKLATENCY,4,2   ## @IPATH_IB_CFG_LINKLATENCY
	.no_dead_strip	_recv_subn_get_portinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function recv_subn_get_portinfo
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
lCPI0_1:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_recv_subn_get_portinfo:                ; @recv_subn_get_portinfo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w0, [x0, #28]
	bl	_be32_to_cpu
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	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, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_23
LBB0_2:
	mov	x0, x20
	bl	_to_idev
	mov	x21, x0
	ldr	x20, [x0, #56]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x9, [x19]
Lloh3:
	adrp	x8, _IB_MGMT_METHOD_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_METHOD_SET@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldr	x8, [x21]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x21, #8]
	cbnz	w9, LBB0_6
LBB0_5:
	str	x8, [x23]
LBB0_6:
	ldr	w8, [x21, #52]
	str	w8, [x23, #160]
	ldr	w0, [x20]
	cbz	w0, LBB0_8
; %bb.7:
	bl	_cpu_to_be16
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
LBB0_9:
	str	x0, [x23, #152]
	ldr	w0, [x21, #12]
	bl	_cpu_to_be16
	str	x0, [x23, #144]
	ldr	w0, [x21, #16]
	bl	_cpu_to_be32
	str	w0, [x23, #136]
	ldr	w0, [x21, #20]
	bl	_cpu_to_be16
	str	x0, [x23, #128]
	str	x22, [x23, #8]
	ldr	w8, [x20, #56]
	str	w8, [x23, #124]
	ldr	d0, [x20, #48]
	stur	d0, [x23, #116]
	ldr	w8, [x20, #4]
	lsl	w8, w8, #4
	str	w8, [x23, #16]
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_ipath_ib_linkstate
	add	w8, w0, #1
	ldr	w9, [x23, #16]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ipath_cvt_physportstate@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ipath_cvt_physportstate@GOTPAGEOFF]
	str	w8, [x23, #16]
Lloh11:
	ldr	x8, [x9]
	ldr	x9, [x20, #16]
	and	x9, x9, x22
	ldr	w22, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_get_linkdowndefaultstate
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, eq
	orr	w8, w8, w22, lsl #4
	ldr	w9, [x21, #8]
	ldp	w10, w11, [x20, #24]
	orr	w9, w10, w9, lsl #6
	stp	w8, w9, [x23, #20]
	ldp	w8, w10, [x20, #32]
	orr	w8, w8, w11, lsl #4
	str	w8, [x23, #28]
Lloh12:
	adrp	x8, _IB_MTU_4096@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_MTU_4096@GOTPAGEOFF]
Lloh14:
	adrp	x9, _IB_MTU_2048@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_MTU_2048@GOTPAGEOFF]
	cmp	w10, #1023
	b.le	LBB0_14
; %bb.10:
	cmp	w10, #1024
	b.eq	LBB0_18
; %bb.11:
	cmp	w10, #2048
	b.eq	LBB0_17
; %bb.12:
	cmp	w10, #1, lsl #12                ; =4096
	b.ne	LBB0_17
; %bb.13:
	ldr	x10, [x8]
	b	LBB0_21
LBB0_14:
	cmp	w10, #256
	b.eq	LBB0_19
; %bb.15:
	cmp	w10, #512
	b.ne	LBB0_17
; %bb.16:
Lloh16:
	adrp	x10, _IB_MTU_512@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IB_MTU_512@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	ldr	x10, [x9]
	b	LBB0_21
LBB0_18:
Lloh18:
	adrp	x10, _IB_MTU_1024@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IB_MTU_1024@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh20:
	adrp	x10, _IB_MTU_256@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IB_MTU_256@GOTPAGEOFF]
LBB0_20:
	ldr	x10, [x10]
LBB0_21:
	ldr	x11, [x21, #24]
	orr	x10, x11, x10, lsl #4
	str	x10, [x23, #32]
	ldr	w10, [x21, #48]
	str	w10, [x23, #112]
Lloh22:
	adrp	x10, _ipath_mtu4096@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ipath_mtu4096@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x23, #104]
	movi.2s	v0, #16
	str	d0, [x23, #40]
	ldr	w0, [x21, #32]
	bl	_cpu_to_be16
	str	x0, [x23, #96]
	mov	x0, x20
	bl	_ipath_get_cr_errpkey
	ldr	w8, [x21, #36]
	sub	w8, w0, w8
	and	w0, w8, #0xffff
	bl	_cpu_to_be16
	str	x0, [x23, #88]
	ldr	w0, [x21, #40]
	bl	_cpu_to_be16
	str	x0, [x23, #80]
	ldr	w8, [x21, #44]
	str	w8, [x23, #72]
Lloh25:
	adrp	x8, lCPI0_0@PAGE
Lloh26:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x23, #48]
	mov	x0, x20
	bl	_get_phyerrthreshold
	mov	x22, x0
	mov	x0, x20
	bl	_get_overrunthreshold
	orr	w8, w0, w22, lsl #4
	str	w8, [x23, #56]
	ldr	w8, [x21, #16]
Lloh27:
	adrp	x9, _IB_PORT_LINK_LATENCY_SUP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_PORT_LINK_LATENCY_SUP@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	x8, [x20, #40]
Lloh30:
	adrp	x9, _IPATH_IB_CFG_LINKLATENCY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IPATH_IB_CFG_LINKLATENCY@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	dup.2s	v0, w0
	ldr	x8, [x23, #64]
Lloh33:
	adrp	x9, lCPI0_1@PAGE
Lloh34:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
	sshl.2s	v0, v0, v1
	str	d0, [x8]
	str	w0, [x8, #8]
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_IB_MGMT_METHOD_SET,8,3         ; @IB_MGMT_METHOD_SET
	.comm	_IB_LID_PERMISSIVE,8,3          ; @IB_LID_PERMISSIVE
	.comm	_ipath_cvt_physportstate,8,3    ; @ipath_cvt_physportstate
	.comm	_IB_MTU_4096,8,3                ; @IB_MTU_4096
	.comm	_IB_MTU_2048,8,3                ; @IB_MTU_2048
	.comm	_IB_MTU_1024,8,3                ; @IB_MTU_1024
	.comm	_IB_MTU_512,8,3                 ; @IB_MTU_512
	.comm	_IB_MTU_256,8,3                 ; @IB_MTU_256
	.comm	_ipath_mtu4096,8,3              ; @ipath_mtu4096
	.comm	_IB_PORT_LINK_LATENCY_SUP,4,2   ; @IB_PORT_LINK_LATENCY_SUP
	.comm	_IPATH_IB_CFG_LINKLATENCY,4,2   ; @IPATH_IB_CFG_LINKLATENCY
	.no_dead_strip	_recv_subn_get_portinfo
.subsections_via_symbols
