	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slave_event
_slave_event:                           ## @slave_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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %r12
	movl	8(%rbx), %eax
	movq	_SLAVE_EVENT_EQ_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	leal	-1(%rcx), %edx
	andl	%eax, %edx
	movslq	%edx, %r15
	testl	%eax, %ecx
	sete	%al
	movb	(%r12,%r15,8), %cl
	shrb	$7, %cl
	xorb	%al, %cl
	je	LBB0_1
## %bb.2:
	leaq	(%r12,%r15,8), %rdi
	movq	%rsi, %r13
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$7, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12,%r15,8)
	xorl	%eax, %eax
	callq	_dma_wmb
	movl	8(%rbx), %eax
	xorl	%ecx, %ecx
	movl	(%r13), %edx
	andl	%eax, %edx
	sete	%cl
	shll	$7, %ecx
	movl	%ecx, (%r12,%r15,8)
	incl	%eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx4_warn
LBB0_3:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SLAVE_EVENT_EQ_SIZE,4,2        ## @SLAVE_EVENT_EQ_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master failed to generate an EQE for slave: %d. No free EQE on slave events queue\n"

	.no_dead_strip	_slave_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slave_event
_slave_event:                           ; @slave_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	x22, x2
	mov	x21, x1
	mov	x24, x0
	bl	_mlx4_priv
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x26, [x20, #16]
	ldr	w9, [x20, #8]
Lloh0:
	adrp	x25, _SLAVE_EVENT_EQ_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SLAVE_EVENT_EQ_SIZE@GOTPAGEOFF]
	ldr	w10, [x25]
	sub	w8, w10, #1
	and	w8, w8, w9
	add	x23, x26, w8, sxtw #3
	tst	w10, w9
	cset	w9, eq
	ldrb	w10, [x23]
	eor	w9, w9, w10, lsr #7
	tbz	w9, #0, LBB0_2
; %bb.1:
	sxtw	x24, w8
	mov	x0, x23
	mov	x1, x22
	mov	w2, #7
	bl	_memcpy
	add	x8, x26, x24, lsl #3
	str	w21, [x8, #4]
	bl	_dma_wmb
	ldr	w8, [x25]
	ldp	w0, w9, [x20, #4]
	tst	w8, w9
	cset	w8, eq
	lsl	w8, w8, #7
	str	w8, [x23]
	add	w8, w9, #1
	str	w8, [x20, #8]
	mov	x1, x20
	bl	_queue_work
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	bl	_mlx4_warn
LBB0_3:
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SLAVE_EVENT_EQ_SIZE,4,2        ; @SLAVE_EVENT_EQ_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master failed to generate an EQE for slave: %d. No free EQE on slave events queue\n"

	.no_dead_strip	_slave_event
.subsections_via_symbols
