	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_port_immutable
_hns_roce_port_immutable:               ## @hns_roce_port_immutable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	-32(%rbp), %rdx
	callq	_ib_query_port
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	-28(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	_IB_MGMT_MAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_RDMA_CORE_PORT_IBA_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_to_hr_dev
	movq	_HNS_ROCE_CAP_FLAG_ROCE_V1_V2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_MAD_SIZE,4,2           ## @IB_MGMT_MAD_SIZE
	.comm	_RDMA_CORE_PORT_IBA_ROCE,4,2    ## @RDMA_CORE_PORT_IBA_ROCE
	.comm	_HNS_ROCE_CAP_FLAG_ROCE_V1_V2,4,2 ## @HNS_ROCE_CAP_FLAG_ROCE_V1_V2
	.comm	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP,4,2 ## @RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP
	.no_dead_strip	_hns_roce_port_immutable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_port_immutable
_hns_roce_port_immutable:               ; @hns_roce_port_immutable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x0
	add	x2, sp, #8
	bl	_ib_query_port
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	d0, [sp, #8]
	str	d0, [x19, #8]
Lloh0:
	adrp	x8, _IB_MGMT_MAD_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_MAD_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RDMA_CORE_PORT_IBA_ROCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RDMA_CORE_PORT_IBA_ROCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x21
	bl	_to_hr_dev
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _HNS_ROCE_CAP_FLAG_ROCE_V1_V2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HNS_ROCE_CAP_FLAG_ROCE_V1_V2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_MAD_SIZE,4,2           ; @IB_MGMT_MAD_SIZE
	.comm	_RDMA_CORE_PORT_IBA_ROCE,4,2    ; @RDMA_CORE_PORT_IBA_ROCE
	.comm	_HNS_ROCE_CAP_FLAG_ROCE_V1_V2,4,2 ; @HNS_ROCE_CAP_FLAG_ROCE_V1_V2
	.comm	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP,4,2 ; @RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP
	.no_dead_strip	_hns_roce_port_immutable
.subsections_via_symbols
