	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_devcom_get_peer_data      ## -- Begin function mlx5_devcom_get_peer_data
	.p2align	4, 0x90
_mlx5_devcom_get_peer_data:             ## @mlx5_devcom_get_peer_data
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movl	%r14d, %r12d
	shlq	$4, %r12
	leaq	(%r15,%r12), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_down_read
	cmpl	$0, 12(%r15,%r12)
	je	LBB0_6
## %bb.3:
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.4:
	movl	(%rbx), %edx
	leal	1(%rdx), %esi
	cmpl	%ecx, %esi
	sete	%dil
	testl	%edx, %edx
	setne	%bl
	orb	%dil, %bl
	cmovel	%esi, %eax
	testl	%edx, %edx
	cmovnel	%eax, %ecx
	testb	%bl, %bl
	cmovnel	%ecx, %eax
LBB0_5:
	movq	(%r15,%r12), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_up_read
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ## @MLX5_MAX_PORTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_devcom_get_peer_data      ; -- Begin function mlx5_devcom_get_peer_data
	.p2align	2
_mlx5_devcom_get_peer_data:             ; @mlx5_devcom_get_peer_data
	.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
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x22, [x8]
	add	x23, x22, w20, uxtw #4
	add	x21, x23, #8
	mov	x0, x21
	bl	_down_read
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w8, w20
Lloh0:
	adrp	x9, _MLX5_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w10, [x19]
	add	w11, w10, #1
	cmp	w11, w9
	cset	w11, eq
	cmp	w10, #0
	cset	w12, ne
	orr	w11, w12, w11
	cmp	w11, #0
	csinc	w10, wzr, w10, ne
	eor	w11, w11, #0x1
	orr	w11, w11, w12
	cmp	w11, #0
	csel	w9, w10, w9, ne
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_up_read
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x8, x8, #4
	ldr	x8, [x22, x8]
	ldr	x0, [x8, x9, lsl #3]
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ; @MLX5_MAX_PORTS
.subsections_via_symbols
