	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvt_modify_port
_rvt_modify_port:                       ## @rvt_modify_port
	.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	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ib_to_rvt
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ibport_num_to_idx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%r12), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rbx
	movq	_IB_PORT_OPA_MASK_CHG@GOTPCREL(%rip), %rcx
	movl	4(%r13), %eax
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	12(%rbx), %edx
	orl	%eax, %edx
	movl	(%r13), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, 12(%rbx)
	orl	%ecx, %eax
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	*8(%r12)
LBB0_7:
	movq	_IB_PORT_SHUTDOWN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	*(%r12)
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_4:
	movl	8(%rbx), %edx
	orl	%eax, %edx
	movl	(%r13), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, 8(%rbx)
	orl	%ecx, %eax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	_IB_PORT_RESET_QKEY_CNTR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	$0, (%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_PORT_OPA_MASK_CHG,4,2       ## @IB_PORT_OPA_MASK_CHG
	.comm	_IB_PORT_SHUTDOWN,4,2           ## @IB_PORT_SHUTDOWN
	.comm	_IB_PORT_RESET_QKEY_CNTR,4,2    ## @IB_PORT_RESET_QKEY_CNTR
	.no_dead_strip	_rvt_modify_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvt_modify_port
_rvt_modify_port:                       ; @rvt_modify_port
	.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, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_ib_to_rvt
	mov	x21, x0
	mov	x0, x23
	mov	x1, x20
	bl	_ibport_num_to_idx
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	x23, [x8, w0, uxtw #3]
Lloh0:
	adrp	x8, _IB_PORT_OPA_MASK_CHG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORT_OPA_MASK_CHG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x22, #4]
	tst	w9, w19
	b.eq	LBB0_7
; %bb.2:
	ldr	w9, [x23, #12]
	orr	w10, w9, w8
	ldr	w9, [x22]
	bic	w10, w10, w9
	str	w10, [x23, #12]
	orr	w8, w8, w9
	cbz	w8, LBB0_4
LBB0_3:
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
LBB0_4:
Lloh3:
	adrp	x8, _IB_PORT_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	ldr	w9, [x23, #8]
	orr	w10, w9, w8
	ldr	w9, [x22]
	bic	w10, w10, w9
	str	w10, [x23, #8]
	orr	w8, w8, w9
	cbnz	w8, LBB0_3
	b	LBB0_4
LBB0_8:
	mov	w0, #0
LBB0_9:
Lloh9:
	adrp	x8, _IB_PORT_RESET_QKEY_CNTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_PORT_RESET_QKEY_CNTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.10:
	str	xzr, [x23]
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_PORT_OPA_MASK_CHG,4,2       ; @IB_PORT_OPA_MASK_CHG
	.comm	_IB_PORT_SHUTDOWN,4,2           ; @IB_PORT_SHUTDOWN
	.comm	_IB_PORT_RESET_QKEY_CNTR,4,2    ; @IB_PORT_RESET_QKEY_CNTR
	.no_dead_strip	_rvt_modify_port
.subsections_via_symbols
