	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_ctx_wr
_bnx2_ctx_wr:                           ## @bnx2_ctx_wr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	addl	%edx, %ebx
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	_BNX2_CHIP
	movq	_BNX2_CHIP_5709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_BNX2_CTX_CTX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_BNX2_WR
	movq	_BNX2_CTX_CTX_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_BNX2_CTX_CTX_CTRL_WRITE_REQ@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_BNX2_WR
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.2:
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.3:
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.4:
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.5:
	movl	$5, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_BNX2_RD
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.6:
	movl	$5, %edi
	callq	_udelay
	jmp	LBB0_8
LBB0_7:
	movq	_BNX2_CTX_DATA_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_BNX2_WR
	movq	_BNX2_CTX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_BNX2_WR
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_CHIP_5709,8,3             ## @BNX2_CHIP_5709
	.comm	_BNX2_CTX_CTX_DATA,4,2          ## @BNX2_CTX_CTX_DATA
	.comm	_BNX2_CTX_CTX_CTRL,4,2          ## @BNX2_CTX_CTX_CTRL
	.comm	_BNX2_CTX_CTX_CTRL_WRITE_REQ,4,2 ## @BNX2_CTX_CTX_CTRL_WRITE_REQ
	.comm	_BNX2_CTX_DATA_ADR,4,2          ## @BNX2_CTX_DATA_ADR
	.comm	_BNX2_CTX_DATA,4,2              ## @BNX2_CTX_DATA
	.no_dead_strip	_bnx2_ctx_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_ctx_wr
_bnx2_ctx_wr:                           ; @bnx2_ctx_wr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x0
	add	w21, w2, w1
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_BNX2_CHIP
Lloh0:
	adrp	x8, _BNX2_CHIP_5709@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_CHIP_5709@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _BNX2_CTX_CTX_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_CTX_CTX_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_BNX2_WR
Lloh6:
	adrp	x22, _BNX2_CTX_CTX_CTRL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BNX2_CTX_CTX_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x20, _BNX2_CTX_CTX_CTRL_WRITE_REQ@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BNX2_CTX_CTX_CTRL_WRITE_REQ@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w2, w8, w21
	mov	x0, x19
	bl	_BNX2_WR
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_RD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.2:
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_RD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.3:
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_RD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.4:
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_RD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BNX2_RD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
	mov	w0, #5
	bl	_udelay
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _BNX2_CTX_DATA_ADR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2_CTX_DATA_ADR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_BNX2_WR
Lloh13:
	adrp	x8, _BNX2_CTX_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2_CTX_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_BNX2_WR
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_CHIP_5709,8,3             ; @BNX2_CHIP_5709
	.comm	_BNX2_CTX_CTX_DATA,4,2          ; @BNX2_CTX_CTX_DATA
	.comm	_BNX2_CTX_CTX_CTRL,4,2          ; @BNX2_CTX_CTX_CTRL
	.comm	_BNX2_CTX_CTX_CTRL_WRITE_REQ,4,2 ; @BNX2_CTX_CTX_CTRL_WRITE_REQ
	.comm	_BNX2_CTX_DATA_ADR,4,2          ; @BNX2_CTX_DATA_ADR
	.comm	_BNX2_CTX_DATA,4,2              ; @BNX2_CTX_DATA
	.no_dead_strip	_bnx2_ctx_wr
.subsections_via_symbols
