	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_subn_set_portinfo
_recv_subn_set_portinfo:                ## @recv_subn_set_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	4(%rdi), %edi
	callq	_be32_to_cpu
	cmpq	(%r15), %rax
	jle	LBB0_1
LBB0_29:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_recv_subn_get_portinfo
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_to_idev
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	%rax, %r15
	movq	72(%rax), %r14
	movq	%rbx, -64(%rbp)
	movl	%r12d, -68(%rbp)
	movl	80(%r13), %eax
	movl	%eax, 68(%r15)
	movl	76(%r13), %eax
	movl	%eax, 64(%r15)
	movl	72(%r13), %edi
	callq	_be16_to_cpu
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 56(%r15)
	movq	%rbx, %r15
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	68(%r13), %edi
	callq	_be16_to_cpu
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, (%r14)
	jne	LBB0_3
## %bb.2:
	movl	(%r13), %ecx
	andl	$7, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%ecx, 8(%rdx)
	je	LBB0_6
LBB0_3:
	testq	%rax, %rax
	je	LBB0_29
## %bb.4:
	movq	_IPATH_MULTICAST_LID_BASE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_29
## %bb.5:
	movl	(%r13), %edx
	andl	$7, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ipath_set_lid
	movq	_IB_EVENT_LID_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_ib_dispatch_event
LBB0_6:
	movl	64(%r13), %edi
	callq	_be16_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	je	LBB0_10
## %bb.7:
	testq	%rax, %rax
	je	LBB0_29
## %bb.8:
	movq	_IPATH_MULTICAST_LID_BASE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_29
## %bb.9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_IB_EVENT_SM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_ib_dispatch_event
LBB0_10:
	movl	4(%r13), %esi
	testl	%esi, %esi
	je	LBB0_16
## %bb.11:
	cmpl	$255, %esi
	jne	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_link_width_enabled
LBB0_16:
	movl	8(%r13), %esi
	andl	$15, %esi
	je	LBB0_22
## %bb.17:
	cmpl	$15, %esi
	jne	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_link_speed_enabled
LBB0_22:
	movl	12(%r13), %eax
	andl	$15, %eax
	je	LBB0_28
## %bb.23:
	cmpl	$2, %eax
	je	LBB0_26
## %bb.24:
	cmpl	$1, %eax
	jne	LBB0_29
## %bb.25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	jmp	LBB0_27
LBB0_13:
	cmpl	$15, %esi
	jg	LBB0_29
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_29
	jmp	LBB0_15
LBB0_19:
	cmpl	$7, %esi
	ja	LBB0_29
## %bb.20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_29
	jmp	LBB0_21
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
LBB0_27:
	callq	_set_linkdowndefaultstate
	testl	%eax, %eax
	jne	LBB0_29
LBB0_28:
	movl	(%r13), %eax
	sarl	$6, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movl	60(%r13), %eax
	movl	%eax, 48(%rcx)
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_MULTICAST_LID_BASE,8,3   ## @IPATH_MULTICAST_LID_BASE
	.comm	_IB_EVENT_LID_CHANGE,4,2        ## @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_SM_CHANGE,4,2         ## @IB_EVENT_SM_CHANGE
	.comm	_ipath_mtu4096,4,2              ## @ipath_mtu4096
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ## @IB_EVENT_CLIENT_REREGISTER
	.comm	_IPATH_IB_LINKDOWN_ONLY,8,3     ## @IPATH_IB_LINKDOWN_ONLY
	.comm	_IPATH_IB_LINKDOWN_SLEEP,8,3    ## @IPATH_IB_LINKDOWN_SLEEP
	.comm	_IPATH_IB_LINKDOWN,8,3          ## @IPATH_IB_LINKDOWN
	.comm	_IPATH_IB_LINKDOWN_DISABLE,8,3  ## @IPATH_IB_LINKDOWN_DISABLE
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ## @IB_MAD_RESULT_CONSUMED
	.comm	_IPATH_LINKINIT,4,2             ## @IPATH_LINKINIT
	.comm	_IPATH_LINKARMED,4,2            ## @IPATH_LINKARMED
	.comm	_IPATH_LINKACTIVE,4,2           ## @IPATH_LINKACTIVE
	.comm	_IPATH_IB_LINKARM,8,3           ## @IPATH_IB_LINKARM
	.comm	_IPATH_IB_LINKACTIVE,8,3        ## @IPATH_IB_LINKACTIVE
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.no_dead_strip	_recv_subn_set_portinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_subn_set_portinfo
_recv_subn_set_portinfo:                ; @recv_subn_set_portinfo
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_be32_to_cpu
	ldr	x8, [x20]
	cmp	x0, x8
	b.gt	LBB0_27
; %bb.1:
	mov	x0, x20
	bl	_to_idev
	mov	x22, x0
	ldr	x23, [x0, #72]
	str	x20, [sp, #8]
	str	w19, [sp, #4]
	ldur	d0, [x24, #76]
	str	d0, [x0, #64]
	ldr	w0, [x24, #72]
	bl	_be16_to_cpu
	str	x0, [x22, #56]
	ldr	w0, [x24, #68]
	bl	_be16_to_cpu
	mov	x1, x0
	ldr	x8, [x23]
Lloh0:
	adrp	x25, _IPATH_MULTICAST_LID_BASE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IPATH_MULTICAST_LID_BASE@GOTPAGEOFF]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x23, #8]
	ldr	w9, [x24]
	and	w9, w9, #0x7
	cmp	w8, w9
	b.eq	LBB0_5
LBB0_3:
	ldr	x8, [x25]
	cmp	x1, #0
	ccmp	x8, x1, #4, ne
	b.le	LBB0_27
; %bb.4:
	ldr	w8, [x24]
	and	w2, w8, #0x7
	mov	x0, x23
	bl	_ipath_set_lid
Lloh2:
	adrp	x8, _IB_EVENT_LID_CHANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_EVENT_LID_CHANGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	bl	_ib_dispatch_event
LBB0_5:
	ldr	w0, [x24, #64]
	bl	_be16_to_cpu
	ldr	x8, [x22]
	cmp	x8, x0
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x25]
	cmp	x0, #0
	ccmp	x8, x0, #4, ne
	b.le	LBB0_27
; %bb.7:
	str	x0, [x22]
Lloh5:
	adrp	x8, _IB_EVENT_SM_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_EVENT_SM_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	bl	_ib_dispatch_event
LBB0_8:
	ldr	w1, [x24, #4]
	cbz	w1, LBB0_12
; %bb.9:
	cmp	w1, #255
	b.ne	LBB0_20
; %bb.10:
	ldr	w1, [x23, #12]
LBB0_11:
	mov	x0, x23
	bl	_set_link_width_enabled
LBB0_12:
	ldr	w8, [x24, #8]
	ands	w1, w8, #0xf
	b.eq	LBB0_16
; %bb.13:
	cmp	w1, #15
	b.ne	LBB0_22
; %bb.14:
	ldr	w1, [x23, #16]
LBB0_15:
	mov	x0, x23
	bl	_set_link_speed_enabled
LBB0_16:
	ldr	w8, [x24, #12]
	ands	w8, w8, #0xf
	b.eq	LBB0_26
; %bb.17:
	cmp	w8, #2
	b.eq	LBB0_24
; %bb.18:
	cmp	w8, #1
	b.ne	LBB0_27
; %bb.19:
	mov	x0, x23
	mov	w1, #1
	b	LBB0_25
LBB0_20:
	cmp	w1, #15
	b.gt	LBB0_27
; %bb.21:
	ldr	w8, [x23, #12]
	bics	wzr, w1, w8
	b.ne	LBB0_27
	b	LBB0_11
LBB0_22:
	cmp	w1, #7
	b.hi	LBB0_27
; %bb.23:
	ldr	w8, [x23, #16]
	bics	wzr, w1, w8
	b.ne	LBB0_27
	b	LBB0_15
LBB0_24:
	mov	x0, x23
	mov	w1, #0
LBB0_25:
	bl	_set_linkdowndefaultstate
	cbnz	w0, LBB0_27
LBB0_26:
	ldr	w8, [x24]
	asr	w8, w8, #6
	str	w8, [x22, #8]
	ldr	w8, [x24, #60]
	str	w8, [x22, #48]
LBB0_27:
Lloh8:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_recv_subn_get_portinfo
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_MULTICAST_LID_BASE,8,3   ; @IPATH_MULTICAST_LID_BASE
	.comm	_IB_EVENT_LID_CHANGE,4,2        ; @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_SM_CHANGE,4,2         ; @IB_EVENT_SM_CHANGE
	.comm	_ipath_mtu4096,4,2              ; @ipath_mtu4096
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ; @IB_EVENT_CLIENT_REREGISTER
	.comm	_IPATH_IB_LINKDOWN_ONLY,8,3     ; @IPATH_IB_LINKDOWN_ONLY
	.comm	_IPATH_IB_LINKDOWN_SLEEP,8,3    ; @IPATH_IB_LINKDOWN_SLEEP
	.comm	_IPATH_IB_LINKDOWN,8,3          ; @IPATH_IB_LINKDOWN
	.comm	_IPATH_IB_LINKDOWN_DISABLE,8,3  ; @IPATH_IB_LINKDOWN_DISABLE
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ; @IB_MAD_RESULT_CONSUMED
	.comm	_IPATH_LINKINIT,4,2             ; @IPATH_LINKINIT
	.comm	_IPATH_LINKARMED,4,2            ; @IPATH_LINKARMED
	.comm	_IPATH_LINKACTIVE,4,2           ; @IPATH_LINKACTIVE
	.comm	_IPATH_IB_LINKARM,8,3           ; @IPATH_IB_LINKARM
	.comm	_IPATH_IB_LINKACTIVE,8,3        ; @IPATH_IB_LINKACTIVE
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.no_dead_strip	_recv_subn_set_portinfo
.subsections_via_symbols
