	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_bind_slave_port
_mlx5_ib_bind_slave_port:               ## @mlx5_ib_bind_slave_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	%rsi, %r14
	movq	%rdi, %r13
	movl	8(%rsi), %edi
	callq	_mlx5_core_native_port_num
	movq	%rax, %r15
	movq	%rax, %r12
	decq	%r12
	movq	_mlx5_ib_multiport_mutex@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	%r12, %rbx
	shlq	$4, %rbx
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_spin_lock
	movq	8(%r13), %rdi
	cmpq	$0, 8(%rdi,%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_mlx5_ib_dbg
	addq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_7
LBB0_2:
	leaq	(%rdi,%rbx), %rax
	addq	$8, %rax
	movq	%r14, (%rax)
	movq	%r13, 16(%r14)
	movq	$0, (%r14)
	addq	%rbx, %rdi
	callq	_spin_unlock
	movl	(%r13), %edi
	movl	8(%r14), %esi
	callq	_mlx5_nic_vport_affiliate_multiport
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	8(%r14), %edi
	callq	_mlx5_core_native_port_num
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_get_port_caps
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlx5_add_netdev_notifier
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_mlx5_ib_err
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx5_ib_unbind_slave_port
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_mlx5_ib_event_slave_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	8(%r14), %edi
	movq	%r14, %rsi
	callq	_mlx5_notifier_register
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlx5_ib_init_cong_debugfs
	movl	$1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ## @mlx5_ib_multiport_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d already affiliated.\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed adding netdev notifier for port %u\n"

	.comm	_mlx5_ib_event_slave_port,8,3   ## @mlx5_ib_event_slave_port
	.no_dead_strip	_mlx5_ib_bind_slave_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_bind_slave_port
_mlx5_ib_bind_slave_port:               ; @mlx5_ib_bind_slave_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_mlx5_core_native_port_num
	mov	x22, x0
	sub	x21, x0, #1
Lloh0:
	adrp	x0, _mlx5_ib_multiport_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mlx5_ib_multiport_mutex@GOTPAGEOFF]
	bl	_lockdep_assert_held
	ldr	x8, [x19, #8]
	lsl	x23, x21, #4
	add	x0, x8, x23
	bl	_spin_lock
	ldr	x8, [x19, #8]
	add	x9, x8, x23
	ldr	x10, [x9, #8]!
	cbz	x10, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_mlx5_ib_dbg
	ldr	x8, [x19, #8]
	add	x0, x8, x21, lsl #4
	bl	_spin_unlock
	b	LBB0_7
LBB0_2:
	str	x20, [x9]
	str	x19, [x20, #16]
	add	x0, x8, x21, lsl #4
	str	xzr, [x20]
	bl	_spin_unlock
	ldr	w0, [x19]
	ldr	w1, [x20, #8]
	bl	_mlx5_nic_vport_affiliate_multiport
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_mlx5_core_native_port_num
	mov	x1, x0
	mov	x0, x19
	bl	_get_port_caps
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5_add_netdev_notifier
	cbz	w0, LBB0_9
; %bb.5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_mlx5_ib_err
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_ib_unbind_slave_port
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _mlx5_ib_event_slave_port@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mlx5_ib_event_slave_port@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w0, [x20, #8]
	mov	x1, x20
	bl	_mlx5_notifier_register
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5_ib_init_cong_debugfs
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ; @mlx5_ib_multiport_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d already affiliated.\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed adding netdev notifier for port %u\n"

	.comm	_mlx5_ib_event_slave_port,8,3   ; @mlx5_ib_event_slave_port
	.no_dead_strip	_mlx5_ib_bind_slave_port
.subsections_via_symbols
