	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_devcom_send_event         ## -- Begin function mlx5_devcom_send_event
	.p2align	4, 0x90
_mlx5_devcom_send_event:                ## @mlx5_devcom_send_event
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %r15
	leaq	(%r14,%r15,8), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_down_write
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movl	(%rbx), %ecx
	leaq	(%r14,%r15,8), %rdx
	addq	$16, %rdx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdx), %rsi
	movq	(%rsi,%rdi,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	*(%r14,%r15,8)
	movl	%eax, %r13d
LBB0_7:
	movq	%r12, %rdi
	callq	_up_write
LBB0_8:
	movl	%r13d, %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
	.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_send_event         ; -- Begin function mlx5_devcom_send_event
	.p2align	2
_mlx5_devcom_send_event:                ; @mlx5_devcom_send_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x23, #8]
	ldr	x25, [x8]
	mov	w8, #24
	umaddl	x8, w24, w8, x25
	add	x22, x8, #8
	mov	x0, x22
	bl	_down_write
Lloh3:
	adrp	x8, _MLX5_MAX_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_MAX_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x9, #0
	mov	w8, w24
	ldr	w11, [x23]
	mov	w10, #24
	madd	x10, x8, x10, x25
	add	x10, x10, #16
	lsl	x11, x11, #3
	lsl	x12, x12, #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	cmp	x12, x9
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x10]
	ldr	x1, [x13, x9]
	cbz	x1, LBB0_3
; %bb.6:
	mov	w9, #24
	mul	x8, x8, x9
	ldr	x8, [x25, x8]
	mov	x0, x21
	mov	x2, x20
	blr	x8
	mov	x19, x0
LBB0_7:
	mov	x0, x22
	bl	_up_write
LBB0_8:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MLX5_MAX_PORTS,4,2             ; @MLX5_MAX_PORTS
.subsections_via_symbols
