	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_assign_eq                 ## -- Begin function mlx4_assign_eq
	.p2align	4, 0x90
_mlx4_assign_eq:                        ## @mlx4_assign_eq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_mlx4_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	xorl	%r12d, %r12d
	movq	%r14, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %r14
	testl	%r12d, %r12d
	jne	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rsi
	movl	$1, %edx
	movl	%r14d, %ecx
	shlq	%cl, %rdx
	btq	%r14, %rsi
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	orq	%rdx, %rsi
	movq	%rsi, (%rbx)
	leaq	1(%r14), %r13
	movl	4(%r15), %r12d
	addl	%r13d, %r12d
	movq	_MLX4_IRQNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	16(%rbx), %rax
	movslq	%r12d, %r15
	leaq	(%rax,%r15,4), %r8
	movl	(%rax,%r15,4), %edi
	movq	_mlx4_msi_x_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %eax
	shll	$5, %eax
	movslq	%eax, %rcx
	shlq	$2, %rcx
	addq	24(%rbx), %rcx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	xorq	%rcx, (%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	shlq	$2, %r15
	addq	16(%rbx), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_eq_set_ci
	xorl	%eax, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	callq	_mutex_unlock
	movl	%ebx, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	callq	_mutex_unlock
	movl	%ebx, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%r14d, (%r15)
	cmovel	%ecx, %edx
LBB0_11:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_IRQNAME_SIZE,4,2          ## @MLX4_IRQNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_mlx4_msi_x_interrupt,4,2       ## @mlx4_msi_x_interrupt
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_assign_eq                 ; -- Begin function mlx4_assign_eq
	.p2align	2
_mlx4_assign_eq:                        ; @mlx4_assign_eq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x1
	mov	x20, x0
	bl	_mlx4_priv
	mov	x23, x0
	add	x0, x0, #8
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_mutex_lock
	mov	x22, #0
	mov	w25, #0
	mov	w26, #1
Lloh0:
	adrp	x28, _mlx4_msi_x_interrupt@GOTPAGE
Lloh1:
	ldr	x28, [x28, _mlx4_msi_x_interrupt@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	add	x27, x22, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x27
	cbnz	w19, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	lsl	x9, x26, x22
	tst	x8, x9
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	x8, x8, x9
	str	x8, [x23]
	ldr	w8, [x20, #4]
	add	x27, x22, #1
	add	w19, w8, w27
	ldr	x8, [x23, #24]
Lloh4:
	adrp	x9, _MLX4_IRQNAME_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX4_IRQNAME_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	mul	w9, w19, w1
	add	x0, x8, w9, sxtw #2
	mov	x2, x24
	mov	x3, x21
	bl	_snprintf
	ldp	x8, x9, [x23, #16]
	add	x4, x8, w19, sxtw #2
	ldr	w0, [x4]
	ldr	w1, [x28]
	lsl	w8, w19, #5
	add	x3, x9, w8, sxtw #2
	mov	w2, #0
	bl	_request_irq
	mov	x25, x0
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	lsl	w8, w26, w22
	sxtw	x8, w8
	ldr	x9, [x23]
	eor	x8, x9, x8
	str	x8, [x23]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w19
	ldr	x9, [x23, #16]
	add	x0, x9, x8, lsl #2
	mov	w1, #1
	bl	_eq_set_ci
	b	LBB0_2
LBB0_8:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_mutex_unlock
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w19, [x8]
	b	LBB0_10
LBB0_9:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_mutex_unlock
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	wzr, [x8]
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENOSPC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w22
	csneg	w25, w25, w9, ne
LBB0_10:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_IRQNAME_SIZE,4,2          ; @MLX4_IRQNAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_mlx4_msi_x_interrupt,4,2       ; @mlx4_msi_x_interrupt
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
