	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_put_native_port_mdev   ## -- Begin function mlx5_ib_put_native_port_mdev
	.p2align	4, 0x90
_mlx5_ib_put_native_port_mdev:          ## @mlx5_ib_put_native_port_mdev
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$12, %rdi
	callq	_mlx5_ib_port_link_layer
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_mlx5_core_mp_enabled
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_6
## %bb.2:
	movslq	%r14d, %r15
	shlq	$4, %r15
	leaq	-16(%r15), %r14
	addq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	movq	-8(%rax,%r15), %rdi
	cmpq	$0, 24(%rdi)
	jne	LBB0_5
## %bb.3:
	decl	16(%rdi)
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	callq	_complete
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ## @IB_LINK_LAYER_ETHERNET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_put_native_port_mdev   ; -- Begin function mlx5_ib_put_native_port_mdev
	.p2align	2
_mlx5_ib_put_native_port_mdev:          ; @mlx5_ib_put_native_port_mdev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	add	x0, x0, #12
	bl	_mlx5_ib_port_link_layer
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_mlx5_core_mp_enabled
Lloh0:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w21, w8, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19]
	sbfiz	x9, x20, #4, #32
	sub	x21, x9, #16
	add	x20, x8, x21
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19]
	add	x8, x8, x21
	ldr	x0, [x8, #8]
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x0, #16]
	sub	w8, w8, #1
	str	w8, [x0, #16]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_complete
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ; @IB_LINK_LAYER_ETHERNET
.subsections_via_symbols
