	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_setup_5709_context
_cnic_setup_5709_context:               ## @cnic_setup_5709_context
	.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	%rdi, %r12
	movq	(%rdi), %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	movq	%rbx, %rdi
	callq	_BNX2_CHIP
	movq	%rax, %rcx
	movq	_BNX2_CHIP_5709@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.3:
	cmpl	$0, (%rbx)
	jle	LBB0_20
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13), %eax
	movl	8(%rcx,%r13), %edi
	cltd
	idivl	4(%rbx)
	movl	%eax, %r14d
	movq	_CNIC_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_BNX2_CTX_HOST_PAGE_TBL_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	4(%rax,%r13), %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	callq	_CNIC_WR
	movq	_BNX2_CTX_HOST_PAGE_TBL_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CNIC_WR
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%rcx, %r14
	callq	_CNIC_WR
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_CNIC_RD
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %edi
	callq	_udelay
	movq	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %eax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	addq	$12, %r13
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.18:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_19:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID,4,2 ## @BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID
	.comm	_BNX2_CHIP_5709,8,3             ## @BNX2_CHIP_5709
	.comm	_CNIC_PAGE_SIZE,4,2             ## @CNIC_PAGE_SIZE
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA0,4,2 ## @BNX2_CTX_HOST_PAGE_TBL_DATA0
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA1,4,2 ## @BNX2_CTX_HOST_PAGE_TBL_DATA1
	.comm	_BNX2_CTX_HOST_PAGE_TBL_CTRL,4,2 ## @BNX2_CTX_HOST_PAGE_TBL_CTRL
	.comm	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ,4,2 ## @BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cnic_setup_5709_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_setup_5709_context
_cnic_setup_5709_context:               ; @cnic_setup_5709_context
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w22, wzr, w8, eq
	mov	x0, x20
	bl	_BNX2_CHIP
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _BNX2_CHIP_5709@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_CHIP_5709@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh6:
	adrp	x26, _BNX2_CTX_HOST_PAGE_TBL_DATA0@GOTPAGE
Lloh7:
	ldr	x26, [x26, _BNX2_CTX_HOST_PAGE_TBL_DATA0@GOTPAGEOFF]
Lloh8:
	adrp	x27, _BNX2_CTX_HOST_PAGE_TBL_DATA1@GOTPAGE
Lloh9:
	ldr	x27, [x27, _BNX2_CTX_HOST_PAGE_TBL_DATA1@GOTPAGEOFF]
Lloh10:
	adrp	x28, _BNX2_CTX_HOST_PAGE_TBL_CTRL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _BNX2_CTX_HOST_PAGE_TBL_CTRL@GOTPAGEOFF]
Lloh12:
	adrp	x25, _BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPAGE
Lloh13:
	ldr	x25, [x25, _BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	ldr	w9, [x8]
	ldr	w10, [x20, #4]
	sdiv	w21, w9, w10
	ldr	w0, [x8, #8]
Lloh14:
	adrp	x8, _CNIC_PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CNIC_PAGE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x26]
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	ldr	w8, [x8, #4]
	orr	w2, w8, w22
	mov	x0, x19
	bl	_CNIC_WR
	ldr	w1, [x27]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	w1, [x28]
	ldr	w8, [x25]
	orr	w2, w8, w21
	mov	x0, x19
	bl	_CNIC_WR
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x19
	bl	_CNIC_RD
	mov	x21, x0
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_17
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	tst	w8, w21
	b.eq	LBB0_17
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w8, w21
	b.ne	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #12
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_18:
	mov	w0, #0
	b	LBB0_20
LBB0_19:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID,4,2 ; @BNX2_CTX_HOST_PAGE_TBL_DATA0_VALID
	.comm	_BNX2_CHIP_5709,8,3             ; @BNX2_CHIP_5709
	.comm	_CNIC_PAGE_SIZE,4,2             ; @CNIC_PAGE_SIZE
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA0,4,2 ; @BNX2_CTX_HOST_PAGE_TBL_DATA0
	.comm	_BNX2_CTX_HOST_PAGE_TBL_DATA1,4,2 ; @BNX2_CTX_HOST_PAGE_TBL_DATA1
	.comm	_BNX2_CTX_HOST_PAGE_TBL_CTRL,4,2 ; @BNX2_CTX_HOST_PAGE_TBL_CTRL
	.comm	_BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ,4,2 ; @BNX2_CTX_HOST_PAGE_TBL_CTRL_WRITE_REQ
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cnic_setup_5709_context
.subsections_via_symbols
