	.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
	pushq	%rax
	.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	_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
	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.2:
	movq	%r15, %rdi
	callq	_mlx4_en_test_registers
	movq	%rax, 24(%rbx)
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movq	(%r12), %rax
	movq	_MLX4_SELFTEST_LB_MIN_MTU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.4:
	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	%r15, %rdi
	callq	_mlx4_en_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	$8, %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	_MLX4_SELFTEST_LB_MIN_MTU,8,3   ## @MLX4_SELFTEST_LB_MIN_MTU
	.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	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, x2
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
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_7
; %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	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_5
; %bb.2:
	mov	x0, x21
	bl	_mlx4_en_test_registers
	str	x0, [x19, #24]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _MLX4_SELFTEST_LB_MIN_MTU@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLX4_SELFTEST_LB_MIN_MTU@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_mlx4_en_test_loopback
	str	x0, [x19, #32]
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_netif_carrier_on
LBB0_7:
	mov	x0, x21
	bl	_mlx4_en_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_12
; %bb.8:
	mov	x8, #0
Lloh11:
	adrp	x10, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	cmp	x8, w9, sxtw
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, x8, lsl #3]
	cbz	x11, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x10]
	ldr	w11, [x20]
	orr	w9, w11, w9
	str	w9, [x20]
	ldr	w9, [x24]
	b	LBB0_9
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.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	_MLX4_SELFTEST_LB_MIN_MTU,8,3   ; @MLX4_SELFTEST_LB_MIN_MTU
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
.subsections_via_symbols
