	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_modify_port
_mlx5_ib_modify_port:                   ## @mlx5_ib_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, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_to_mdev
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mlx5_ib_port_link_layer
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	4(%r14), %edi
	movq	_ib_virt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movl	(%r15), %ecx
	movl	4(%r15), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	notl	%ecx
	orl	%eax, %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_port_caps_atomic           ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ib_query_port
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %eax
	orl	-48(%rbp), %eax
	movl	(%r15), %edx
	notl	%edx
	andl	%eax, %edx
	movl	4(%r14), %edi
	movl	%r12d, %esi
	callq	_mlx5_set_port_caps
	movl	%eax, %r13d
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_ib_virt,4,2                    ## @ib_virt
	.no_dead_strip	_mlx5_ib_modify_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_modify_port
_mlx5_ib_modify_port:                   ; @mlx5_ib_modify_port
	.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	x21, x3
	mov	x20, x1
	mov	x22, x0
	bl	_to_mdev
	mov	x19, x0
	mov	x0, x22
	mov	x1, x20
	bl	_mlx5_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_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _ib_virt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_virt@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_4
; %bb.2:
	ldp	w8, w9, [x21]
	orr	w2, w9, w8
	orn	w3, w9, w8
	mov	x0, x19
	mov	x1, 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
	b	_set_port_caps_atomic
LBB0_3:
	mov	w22, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_mutex_lock
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_ib_query_port
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #8]
	ldp	w10, w9, [x21]
	orr	w8, w9, w8
	bic	w2, w8, w10
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_mlx5_set_port_caps
	mov	x22, x0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_ib_virt,4,2                    ; @ib_virt
	.no_dead_strip	_mlx5_ib_modify_port
.subsections_via_symbols
