	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_port_immutable
_mlx4_port_immutable:                   ## @mlx4_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_mdev
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mlx4_ib_port_link_layer
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_RDMA_CORE_PORT_IBA_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_2:
	movq	(%r12), %rax
	movq	_MLX4_DEV_CAP_FLAG_IBOE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_RDMA_CORE_PORT_IBA_ROCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
LBB0_4:
	movq	_MLX4_DEV_CAP_FLAG2_ROCE_V1_V2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_5
## %bb.6:
	movq	_RDMA_CORE_PORT_IBA_ROCE@GOTPCREL(%rip), %rcx
	movq	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_7
LBB0_5:
	movl	(%r15), %eax
LBB0_7:
	movq	_RDMA_CORE_PORT_RAW_PACKET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	_RDMA_CORE_PORT_IBA_ROCE@GOTPCREL(%rip), %rcx
	movq	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
LBB0_8:
	movq	_IB_MGMT_MAD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_9:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ib_query_port
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	-36(%rbp), %ecx
	movl	%ecx, 8(%r15)
	movl	-40(%rbp), %ecx
	movl	%ecx, 4(%r15)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_RDMA_CORE_PORT_IBA_IB,4,2      ## @RDMA_CORE_PORT_IBA_IB
	.comm	_IB_MGMT_MAD_SIZE,8,3           ## @IB_MGMT_MAD_SIZE
	.comm	_MLX4_DEV_CAP_FLAG_IBOE,4,2     ## @MLX4_DEV_CAP_FLAG_IBOE
	.comm	_RDMA_CORE_PORT_IBA_ROCE,4,2    ## @RDMA_CORE_PORT_IBA_ROCE
	.comm	_MLX4_DEV_CAP_FLAG2_ROCE_V1_V2,4,2 ## @MLX4_DEV_CAP_FLAG2_ROCE_V1_V2
	.comm	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP,4,2 ## @RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP
	.comm	_RDMA_CORE_PORT_RAW_PACKET,4,2  ## @RDMA_CORE_PORT_RAW_PACKET
	.no_dead_strip	_mlx4_port_immutable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_port_immutable
_mlx4_port_immutable:                   ; @mlx4_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	x20, x1
	mov	x21, x0
	bl	_to_mdev
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_ib_port_link_layer
Lloh0:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RDMA_CORE_PORT_IBA_IB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_CORE_PORT_IBA_IB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
LBB0_2:
	ldr	x9, [x22]
	ldr	w10, [x9]
Lloh6:
	adrp	x8, _MLX4_DEV_CAP_FLAG_IBOE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_DEV_CAP_FLAG_IBOE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x8]
Lloh9:
	adrp	x8, _RDMA_CORE_PORT_IBA_ROCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_CORE_PORT_IBA_ROCE@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	w10, [x8]
	str	w10, [x19]
LBB0_4:
	ldr	w10, [x9, #4]
Lloh11:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_ROCE_V1_V2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_ROCE_V1_V2@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x9]
Lloh14:
	adrp	x9, _RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
	ldr	w10, [x8]
	ldr	w11, [x9]
	orr	w10, w11, w10
	str	w10, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w10, [x19]
LBB0_7:
Lloh16:
	adrp	x11, _RDMA_CORE_PORT_RAW_PACKET@GOTPAGE
Lloh17:
	ldr	x11, [x11, _RDMA_CORE_PORT_RAW_PACKET@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x19]
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w10
	b.eq	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _IB_MGMT_MAD_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_MGMT_MAD_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_9:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_ib_query_port
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	d0, [sp, #8]
	stur	d0, [x19, #4]
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_RDMA_CORE_PORT_IBA_IB,4,2      ; @RDMA_CORE_PORT_IBA_IB
	.comm	_IB_MGMT_MAD_SIZE,8,3           ; @IB_MGMT_MAD_SIZE
	.comm	_MLX4_DEV_CAP_FLAG_IBOE,4,2     ; @MLX4_DEV_CAP_FLAG_IBOE
	.comm	_RDMA_CORE_PORT_IBA_ROCE,4,2    ; @RDMA_CORE_PORT_IBA_ROCE
	.comm	_MLX4_DEV_CAP_FLAG2_ROCE_V1_V2,4,2 ; @MLX4_DEV_CAP_FLAG2_ROCE_V1_V2
	.comm	_RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP,4,2 ; @RDMA_CORE_PORT_IBA_ROCE_UDP_ENCAP
	.comm	_RDMA_CORE_PORT_RAW_PACKET,4,2  ; @RDMA_CORE_PORT_RAW_PACKET
	.no_dead_strip	_mlx4_port_immutable
.subsections_via_symbols
