	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_modify_port             ## -- Begin function pvrdma_modify_port
	.p2align	4, 0x90
_pvrdma_modify_port:                    ## @pvrdma_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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_to_vdev
	movq	%rax, %r12
	movq	%rax, %r15
	movq	_IB_PORT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r14d, %eax
	je	LBB0_2
## %bb.1:
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ib_query_port
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	8(%r15), %eax
	orl	4(%r13), %eax
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r15)
	movq	_IB_PORT_SHUTDOWN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$0, (%r15)
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_SHUTDOWN,4,2           ## @IB_PORT_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported port modify mask %#x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_modify_port             ; -- Begin function pvrdma_modify_port
	.p2align	2
_pvrdma_modify_port:                    ; @pvrdma_modify_port
	.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	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	bl	_to_vdev
	mov	x20, x0
Lloh0:
	adrp	x25, _IB_PORT_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IB_PORT_SHUTDOWN@GOTPAGEOFF]
	ldr	w8, [x25]
	bics	wzr, w19, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_2:
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	bl	_ib_query_port
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x20, #8]
	ldp	w10, w9, [x21]
	orr	w8, w8, w9
	bic	w8, w8, w10
	str	w8, [x20, #8]
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
	str	wzr, [x20]
LBB0_5:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x23
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_SHUTDOWN,4,2           ; @IB_PORT_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported port modify mask %#x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
