	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_port_caps_atomic
_set_port_caps_atomic:                  ## @set_port_caps_atomic
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	leaq	-52(%rbp), %rdx
	callq	_mlx5_ib_get_native_port_mdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %r8
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_mlx5_query_hca_vport_context
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	-48(%rbp), %ecx
	movl	%ecx, %eax
	notl	%eax
	testl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_mlx5_ib_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_5:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	movl	%r15d, -48(%rbp)
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_mlx5_core_modify_hca_vport_context
	movl	%eax, %r12d
LBB0_6:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mlx5_ib_put_native_port_mdev
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to change bitmask 0x%X but change supported 0x%X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_port_caps_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_port_caps_atomic
_set_port_caps_atomic:                  ; @set_port_caps_atomic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x2, sp, #4
	bl	_mlx5_ib_get_native_port_mdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	w2, [sp, #4]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #0
	bl	_mlx5_query_hca_vport_context
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w3, [sp, #8]
	bics	wzr, w21, w3
	b.eq	LBB0_5
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_ib_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_5:
	stp	w21, w22, [sp, #8]
	ldr	w2, [sp, #4]
	add	x4, sp, #8
	mov	x0, x23
	mov	w1, #0
	mov	w3, #0
	bl	_mlx5_core_modify_hca_vport_context
	mov	x24, x0
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_ib_put_native_port_mdev
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to change bitmask 0x%X but change supported 0x%X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_port_caps_atomic
.subsections_via_symbols
