	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnx2x_get_preset_regs
___bnx2x_get_preset_regs:               ## @__bnx2x_get_preset_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_CHIP_IS_E1
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_wreg_addr_e1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%r13, %rdi
	callq	_CHIP_IS_E1H
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_wreg_addr_e1h@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	%r13, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_wreg_addr_e2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	%r13, %rdi
	callq	_CHIP_IS_E3A0
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_wreg_addr_e3@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	%r13, %rdi
	callq	_CHIP_IS_E3B0
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_wreg_addr_e3b0@GOTPCREL(%rip), %rax
LBB0_10:
	movq	_IDLE_REGS_COUNT@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.11:
	xorl	%ecx, %ecx
	movq	_idle_reg_addrs@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rcx
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rcx
	movq	_IDLE_REGS_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_idle_reg_addrs@GOTPCREL(%rip), %rbx
	jae	LBB0_21
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%rcx, %r14
	leaq	(%rcx,%rcx,2), %r12
	leaq	(,%r12,8), %rsi
	addq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_bnx2x_is_reg_in_chip
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rax
	movl	16(%rax,%r12,8), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_IS_REG_IN_PRESET
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(,%r14,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	8(%rax,%rbx), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_REG_RD
	movq	%r14, %rcx
	movq	%rax, (%r15)
	addq	$8, %r15
	incq	%r12
	movq	_idle_reg_addrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$4, %r13
	cmpq	(%rax,%rbx), %r12
	jb	LBB0_18
	jmp	LBB0_13
LBB0_21:
	movq	_REGS_COUNT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.22:
	xorl	%r12d, %r12d
	movq	_reg_addrs@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r12
	movq	_REGS_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_reg_addrs@GOTPCREL(%rip), %rbx
	jae	LBB0_29
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	leaq	(%r12,%r12,2), %r14
	leaq	(,%r14,8), %rsi
	addq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_bnx2x_is_reg_in_chip
	testq	%rax, %rax
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rbx), %rax
	movl	16(%rax,%r14,8), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_IS_REG_IN_PRESET
	testq	%rax, %rax
	je	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rbx), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_23
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(,%r12,8), %rcx
	movq	%r12, %r14
	leaq	(%rcx,%rcx,2), %r12
	movq	8(%rax,%r12), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_REG_RD
	movq	%rax, (%r15)
	addq	$8, %r15
	incq	%rbx
	movq	_reg_addrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$4, %r13
	cmpq	(%rax,%r12), %rbx
	movq	%r14, %r12
	jb	LBB0_28
	jmp	LBB0_23
LBB0_29:
	movq	%r13, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_bnx2x_is_wreg_in_chip
	testq	%rax, %rax
	je	LBB0_37
## %bb.30:
	movl	32(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_IS_REG_IN_PRESET
	testq	%rax, %rax
	je	LBB0_37
## %bb.31:
	cmpq	$0, (%rbx)
	je	LBB0_37
## %bb.32:
	xorl	%eax, %eax
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	(%r14), %rax
	movq	%r14, %rbx
	jae	LBB0_37
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rsi
	addq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_REG_RD
	movq	%rax, (%r15)
	addq	$8, %r15
	movq	%rbx, %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r14), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_REG_RD
	movq	%rax, (%r15)
	incq	%rbx
	addq	$8, %r15
	addq	$4, %r12
	cmpq	16(%r14), %rbx
	jb	LBB0_36
	jmp	LBB0_33
LBB0_37:
	movq	%r13, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	movq	%r13, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_40
LBB0_39:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_bnx2x_read_pages_regs
LBB0_40:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wreg_addr_e1,40,3              ## @wreg_addr_e1
	.comm	_wreg_addr_e1h,40,3             ## @wreg_addr_e1h
	.comm	_wreg_addr_e2,40,3              ## @wreg_addr_e2
	.comm	_wreg_addr_e3,40,3              ## @wreg_addr_e3
	.comm	_wreg_addr_e3b0,40,3            ## @wreg_addr_e3b0
	.comm	_IDLE_REGS_COUNT,8,3            ## @IDLE_REGS_COUNT
	.comm	_idle_reg_addrs,8,3             ## @idle_reg_addrs
	.comm	_REGS_COUNT,8,3                 ## @REGS_COUNT
	.comm	_reg_addrs,8,3                  ## @reg_addrs
	.no_dead_strip	___bnx2x_get_preset_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnx2x_get_preset_regs
___bnx2x_get_preset_regs:               ; @__bnx2x_get_preset_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x1
	mov	x21, x0
	bl	_CHIP_IS_E1
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _wreg_addr_e1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wreg_addr_e1@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x0, x21
	bl	_CHIP_IS_E1H
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x22, _wreg_addr_e1h@GOTPAGE
Lloh3:
	ldr	x22, [x22, _wreg_addr_e1h@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x0, x21
	bl	_CHIP_IS_E2
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x22, _wreg_addr_e2@GOTPAGE
Lloh5:
	ldr	x22, [x22, _wreg_addr_e2@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_CHIP_IS_E3A0
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x22, _wreg_addr_e3@GOTPAGE
Lloh7:
	ldr	x22, [x22, _wreg_addr_e3@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_CHIP_IS_E3B0
Lloh8:
	adrp	x8, _wreg_addr_e3b0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wreg_addr_e3b0@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, xzr, x8, eq
LBB0_9:
Lloh10:
	adrp	x23, _IDLE_REGS_COUNT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IDLE_REGS_COUNT@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_17
; %bb.10:
	mov	x24, #0
Lloh12:
	adrp	x25, _idle_reg_addrs@GOTPAGE
Lloh13:
	ldr	x25, [x25, _idle_reg_addrs@GOTPAGEOFF]
	mov	w26, #24
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.hs	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x25]
	madd	x1, x24, x26, x8
	mov	x0, x21
	bl	_bnx2x_is_reg_in_chip
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x25]
	madd	x8, x24, x26, x8
	ldr	w0, [x8, #16]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_IS_REG_IN_PRESET
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x25]
	mul	x9, x24, x26
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x24, x24, lsl #1
	lsl	x19, x9, #3
	add	x8, x8, x19
	ldr	x8, [x8, #8]
	add	x1, x27, x8
	mov	x0, x21
	bl	_REG_RD
	str	x0, [x20], #8
	add	x28, x28, #1
	ldr	x8, [x25]
	ldr	x9, [x8, x19]
	add	x27, x27, #4
	cmp	x28, x9
	b.lo	LBB0_16
	b	LBB0_11
LBB0_17:
Lloh14:
	adrp	x23, _REGS_COUNT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _REGS_COUNT@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_25
; %bb.18:
	mov	x24, #0
Lloh16:
	adrp	x25, _reg_addrs@GOTPAGE
Lloh17:
	ldr	x25, [x25, _reg_addrs@GOTPAGEOFF]
	mov	w26, #24
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.hs	LBB0_25
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	ldr	x8, [x25]
	madd	x1, x24, x26, x8
	mov	x0, x21
	bl	_bnx2x_is_reg_in_chip
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x25]
	madd	x8, x24, x26, x8
	ldr	w0, [x8, #16]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_IS_REG_IN_PRESET
	cbz	x0, LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x25]
	mul	x9, x24, x26
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_24:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x24, x24, lsl #1
	lsl	x19, x9, #3
	add	x8, x8, x19
	ldr	x8, [x8, #8]
	add	x1, x27, x8
	mov	x0, x21
	bl	_REG_RD
	str	x0, [x20], #8
	add	x28, x28, #1
	ldr	x8, [x25]
	ldr	x9, [x8, x19]
	add	x27, x27, #4
	cmp	x28, x9
	b.lo	LBB0_24
	b	LBB0_19
LBB0_25:
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2x_is_wreg_in_chip
	cbz	x0, LBB0_33
; %bb.26:
	ldr	w0, [x22, #32]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_IS_REG_IN_PRESET
	cbz	x0, LBB0_33
; %bb.27:
	ldr	x8, [x22]
	cbz	x8, LBB0_33
; %bb.28:
	mov	x23, #0
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.hs	LBB0_33
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	ldr	x8, [x22, #8]
	add	x1, x8, x23, lsl #2
	mov	x0, x21
	bl	_REG_RD
	str	x0, [x20], #8
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_32:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	add	x1, x24, x8
	mov	x0, x21
	bl	_REG_RD
	str	x0, [x20], #8
	add	x25, x25, #1
	ldr	x8, [x22, #16]
	add	x24, x24, #4
	cmp	x25, x8
	b.lo	LBB0_32
	b	LBB0_29
LBB0_33:
	mov	x0, x21
	bl	_CHIP_IS_E2
	cbnz	x0, LBB0_35
; %bb.34:
	mov	x0, x21
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_36
LBB0_35:
	mov	x0, x21
	mov	x1, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_bnx2x_read_pages_regs
LBB0_36:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_wreg_addr_e1,40,3              ; @wreg_addr_e1
	.comm	_wreg_addr_e1h,40,3             ; @wreg_addr_e1h
	.comm	_wreg_addr_e2,40,3              ; @wreg_addr_e2
	.comm	_wreg_addr_e3,40,3              ; @wreg_addr_e3
	.comm	_wreg_addr_e3b0,40,3            ; @wreg_addr_e3b0
	.comm	_IDLE_REGS_COUNT,8,3            ; @IDLE_REGS_COUNT
	.comm	_idle_reg_addrs,8,3             ; @idle_reg_addrs
	.comm	_REGS_COUNT,8,3                 ; @REGS_COUNT
	.comm	_reg_addrs,8,3                  ; @reg_addrs
	.no_dead_strip	___bnx2x_get_preset_regs
.subsections_via_symbols
