	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_do_mem_test
_bnx2_do_mem_test:                      ## @bnx2_do_mem_test
	.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
	testl	%edx, %edx
	jle	LBB0_30
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	testl	%eax, %eax
	jne	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$4, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_2
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$-1, %edx
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	$4, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_6
## %bb.8:
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$1431655765, %edx               ## imm = 0x55555555
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	cmpl	$1431655765, %eax               ## imm = 0x55555555
	jne	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$4, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_10
## %bb.12:
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$-1431655766, %edx              ## imm = 0xAAAAAAAA
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	cmpl	$-1431655766, %eax              ## imm = 0xAAAAAAAA
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	$4, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_14
## %bb.16:
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.17:
	xorl	%ebx, %ebx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$-1437226411, %edx              ## imm = 0xAA55AA55
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	cmpl	$-1437226411, %eax              ## imm = 0xAA55AA55
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addl	$4, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_18
## %bb.20:
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.21:
	xorl	%ebx, %ebx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$1437226410, %edx               ## imm = 0x55AA55AA
	callq	_bnx2_reg_wr_ind
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnx2_reg_rd_ind
	cmpl	$1437226410, %eax               ## imm = 0x55AA55AA
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	addl	$4, %ebx
	xorl	%eax, %eax
	cmpl	%r15d, %ebx
	jl	LBB0_22
	jmp	LBB0_31
LBB0_30:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_24:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_bnx2_do_mem_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_do_mem_test
_bnx2_do_mem_test:                      ; @bnx2_do_mem_test
	.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
	cmp	w2, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cbnz	w0, LBB0_25
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_2
; %bb.4:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.5:
	mov	w23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #-1
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cmn	w0, #1
	b.ne	LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_6
; %bb.8:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.9:
	mov	w23, #0
	mov	w24, #1431655765
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1431655765
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cmp	w0, w24
	b.ne	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_10
; %bb.12:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.13:
	mov	w23, #0
	mov	w24, #-1431655766
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #-1431655766
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cmp	w0, w24
	b.ne	LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_14
; %bb.16:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.17:
	mov	w23, #0
	mov	w24, #43605
	movk	w24, #43605, lsl #16
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #43605
	movk	w2, #43605, lsl #16
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cmp	w0, w24
	b.ne	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_18
; %bb.20:
	cmp	w19, #1
	b.lt	LBB0_24
; %bb.21:
	mov	w23, #0
	mov	w24, #21930
	movk	w24, #21930, lsl #16
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w20, w23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #21930
	movk	w2, #21930, lsl #16
	bl	_bnx2_reg_wr_ind
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2_reg_rd_ind
	cmp	w0, w24
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #0
	add	w23, w23, #4
	cmp	w23, w19
	b.lt	LBB0_22
	b	LBB0_26
LBB0_24:
	mov	w0, #0
	b	LBB0_26
LBB0_25:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_bnx2_do_mem_test
.subsections_via_symbols
