	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_read_pages_regs
_bnx2x_read_pages_regs:                 ## @bnx2x_read_pages_regs
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	___bnx2x_get_page_addr_ar
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	___bnx2x_get_page_reg_num
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	___bnx2x_get_page_write_ar
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	___bnx2x_get_page_write_num
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	___bnx2x_get_page_read_ar
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	___bnx2x_get_page_read_num
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.1:
	movl	%r13d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	cmpq	-120(%rbp), %r13                ## 8-byte Folded Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %esi
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	%r14, %rdi
	callq	_REG_WR
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=3
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	%r14, %rax
	je	LBB0_15
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rbx
	movl	8(%r12,%rbx,4), %edi
	movl	%r15d, %esi
	callq	_IS_REG_IN_PRESET
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	movl	(%r12,%rbx,4), %r13d
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=3
	leaq	(%r12,%rbx,4), %r12
	addq	$4, %r12
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	(%r12), %esi
	addl	%r15d, %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movl	%eax, (%rbx,%r15)
	addq	$4, %r15
	decl	%r13d
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=3
	addq	%r15, %rbx
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=3
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_14
LBB0_17:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bnx2x_read_pages_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_read_pages_regs
_bnx2x_read_pages_regs:                 ; @bnx2x_read_pages_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	___bnx2x_get_page_addr_ar
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	___bnx2x_get_page_reg_num
	mov	x27, x0
	mov	x0, x21
	bl	___bnx2x_get_page_write_ar
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	___bnx2x_get_page_write_num
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	___bnx2x_get_page_read_ar
	mov	x25, x0
	mov	x0, x21
	bl	___bnx2x_get_page_read_num
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w27, #1
	b.lt	LBB0_14
; %bb.1:
	str	xzr, [sp, #48]                  ; 8-byte Folded Spill
	mov	w8, w27
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w27, #12
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	mov	w22, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x8, x8, #1
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	add	x23, x23, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x23, x8
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x8, x23, lsl #2]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_REG_WR
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #1
	str	x23, [sp, #56]                  ; 8-byte Folded Spill
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x26, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	add	x26, x26, #1
	cmp	x26, x22
	b.eq	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_12 Depth 4
	madd	x8, x26, x27, x25
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_IS_REG_IN_PRESET
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	mul	x8, x26, x27
	ldr	w24, [x25, x8]
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x28, #0
	madd	x8, x26, x27, x25
	add	x23, x8, #4
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w8, [x23]
	add	w1, w28, w8
	mov	x0, x21
	bl	_REG_RD
	str	w0, [x20, x28]
	add	x28, x28, #4
	subs	w24, w24, #1
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x20, x20, x28
	b	LBB0_8
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bnx2x_read_pages_regs
.subsections_via_symbols
