	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_ex_selftest            ## -- Begin function mlx4_en_ex_selftest
	.p2align	4, 0x90
_mlx4_en_ex_selftest:                   ## @mlx4_en_ex_selftest
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MLX4_EN_NUM_SELF_TEST@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	shll	$3, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movl	$200, %edi
	callq	_msleep
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.2:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	16(%r15), %rax
	movl	%ecx, %ecx
	addq	$16, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rsi
	addq	-8(%rax), %rsi
	cmpq	%rsi, -16(%rax)
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=2
	incq	%rdx
	addq	$24, %rax
	cmpq	%rcx, %rdx
	jb	LBB0_16
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$200, %edi
	callq	_msleep
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jg	LBB0_14
LBB0_3:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_mlx4_en_test_registers
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_mlx4_en_test_loopback
	movq	%rax, 32(%rbx)
LBB0_5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_netif_carrier_on
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_mlx4_test_interrupts
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_mlx4_en_test_link
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_mlx4_en_test_speed
	movq	%rax, 16(%rbx)
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%ecx, %ecx
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	movslq	%eax, %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rdx), %eax
	orl	%eax, (%r14)
	movl	(%r13), %eax
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_NUM_SELF_TEST,4,2      ## @MLX4_EN_NUM_SELF_TEST
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK,4,2 ## @MLX4_DEV_CAP_FLAG_UC_LOOPBACK
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_ex_selftest            ; -- Begin function mlx4_en_ex_selftest
	.p2align	2
_mlx4_en_ex_selftest:                   ; @mlx4_en_ex_selftest
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x25, [x0, #8]
Lloh0:
	adrp	x24, _MLX4_EN_NUM_SELF_TEST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MLX4_EN_NUM_SELF_TEST@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_netif_carrier_ok
	mov	x23, x0
	mov	x0, x22
	bl	_netif_carrier_off
	mov	w0, #200
	bl	_msleep
	ldr	w9, [x21]
	cmp	w9, #1
	ccmp	w23, #0, #4, ge
	b.ne	LBB0_12
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG_UC_LOOPBACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_mlx4_en_test_registers
	str	x0, [x19, #24]
	mov	x0, x21
	bl	_mlx4_en_test_loopback
	str	x0, [x19, #32]
LBB0_4:
	cbz	w23, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_netif_carrier_on
LBB0_6:
	ldr	x0, [x25]
	bl	_mlx4_test_interrupts
	str	x0, [x19]
	mov	x0, x21
	bl	_mlx4_en_test_link
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_mlx4_en_test_speed
	str	x0, [x19, #16]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x8, #0
Lloh8:
	adrp	x10, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x8, w9, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, x8, lsl #3]
	cbz	x11, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x10]
	ldr	w11, [x20]
	orr	w9, w11, w9
	str	w9, [x20]
	ldr	w9, [x24]
	b	LBB0_8
LBB0_11:
	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
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x8, #0
	ldr	x10, [x21, #16]
	mov	w9, w9
	add	x10, x10, #8
LBB0_13:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x11, x12, [x10, #-8]
	ldr	x13, [x10, #8]
	add	x12, x13, x12
	cmp	x11, x12
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x8, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.lo	LBB0_13
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #200
	bl	_msleep
	ldr	w9, [x21]
	cmp	w9, #1
	b.ge	LBB0_12
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_NUM_SELF_TEST,4,2      ; @MLX4_EN_NUM_SELF_TEST
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_MLX4_DEV_CAP_FLAG_UC_LOOPBACK,4,2 ; @MLX4_DEV_CAP_FLAG_UC_LOOPBACK
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
.subsections_via_symbols
