	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_test_interrupts
_mlx4_en_test_interrupts:               ## @mlx4_en_test_interrupts
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	(%r15), %rdi
	callq	_mlx4_test_async
	movl	%eax, %r12d
	movq	(%r15), %rdi
	movq	_MLX4_FLAG_MSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.1:
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	callq	_mlx4_test_interrupt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_FLAG_MSI_X,4,2            ## @MLX4_FLAG_MSI_X
	.no_dead_strip	_mlx4_en_test_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_test_interrupts
_mlx4_en_test_interrupts:               ; @mlx4_en_test_interrupts
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x0, [x21]
	bl	_mlx4_test_async
	mov	x20, x0
	ldr	x0, [x21]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX4_FLAG_MSI_X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_FLAG_MSI_X@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_mlx4_is_slave
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w1, [x8]
	bl	_mlx4_test_interrupt
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_5
; %bb.7:
	mov	w20, #0
	b	LBB0_2
LBB0_8:
	mov	x20, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_FLAG_MSI_X,4,2            ; @MLX4_FLAG_MSI_X
	.no_dead_strip	_mlx4_en_test_interrupts
.subsections_via_symbols
