	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_test_loopback
_mlx4_en_test_loopback:                 ## @mlx4_en_test_loopback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, 16(%rdi)
	movl	$1, (%rdi)
	movq	8(%rdi), %rdi
	movl	(%rdi), %esi
	callq	_mlx4_en_update_loopback_state
	movq	%rbx, %rdi
	callq	_mlx4_en_test_loopback_xmit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_en_err
	movl	$1, %r15d
LBB0_8:
	movl	$0, (%rbx)
	movq	8(%rbx), %rdi
	movl	(%rdi), %esi
	callq	_mlx4_en_update_loopback_state
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MLX4_EN_LOOPBACK_RETRIES@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %rsi
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	movq	_MLX4_EN_LOOPBACK_TIMEOUT@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_msleep
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_4
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transmitting loopback packet failed\n"

	.comm	_MLX4_EN_LOOPBACK_RETRIES,4,2   ## @MLX4_EN_LOOPBACK_RETRIES
	.comm	_MLX4_EN_LOOPBACK_TIMEOUT,4,2   ## @MLX4_EN_LOOPBACK_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Loopback packet didn't arrive\n"

	.no_dead_strip	_mlx4_en_test_loopback
.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_loopback
_mlx4_en_test_loopback:                 ; @mlx4_en_test_loopback
	.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	x19, x0
	str	xzr, [x0, #16]
	mov	w8, #1
	str	w8, [x0]
	ldr	x0, [x0, #8]
	ldr	w1, [x0]
	bl	_mlx4_en_update_loopback_state
	mov	x0, x19
	bl	_mlx4_en_test_loopback_xmit
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_en_err
	mov	w20, #1
LBB0_3:
	str	wzr, [x19]
	ldr	x0, [x19, #8]
	ldr	w1, [x0]
	bl	_mlx4_en_update_loopback_state
	mov	x0, x20
	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
LBB0_4:
Lloh2:
	adrp	x21, _MLX4_EN_LOOPBACK_RETRIES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MLX4_EN_LOOPBACK_RETRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w22, #0
Lloh4:
	adrp	x23, _MLX4_EN_LOOPBACK_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MLX4_EN_LOOPBACK_TIMEOUT@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_6
	b	LBB0_2
LBB0_8:
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
	mov	w20, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transmitting loopback packet failed\n"

	.comm	_MLX4_EN_LOOPBACK_RETRIES,4,2   ; @MLX4_EN_LOOPBACK_RETRIES
	.comm	_MLX4_EN_LOOPBACK_TIMEOUT,4,2   ; @MLX4_EN_LOOPBACK_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Loopback packet didn't arrive\n"

	.no_dead_strip	_mlx4_en_test_loopback
.subsections_via_symbols
