	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_init_tx_context
_bnx2_init_tx_context:                  ## @bnx2_init_tx_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
	pushq	%rax
	.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	%rdi, %rbx
	movl	%esi, %edi
	callq	_GET_CID_ADDR
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_BNX2_CHIP
	movq	_BNX2_CHIP_5709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_BNX2_L2CTX_TYPE@GOTPCREL(%rip), %rax
	cmoveq	_BNX2_L2CTX_TYPE_XI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BNX2_L2CTX_TBDR_BHADDR_LO@GOTPCREL(%rip), %rax
	cmoveq	_BNX2_L2CTX_TBDR_BHADDR_LO_XI@GOTPCREL(%rip), %rax
	movq	_BNX2_L2CTX_TBDR_BHADDR_HI@GOTPCREL(%rip), %rcx
	cmoveq	_BNX2_L2CTX_TBDR_BHADDR_HI_XI@GOTPCREL(%rip), %rcx
	movq	_BNX2_L2CTX_CMD_TYPE@GOTPCREL(%rip), %rsi
	cmoveq	_BNX2_L2CTX_CMD_TYPE_XI@GOTPCREL(%rip), %rsi
	movl	(%rax), %r12d
	movl	(%rcx), %r13d
	movl	(%rsi), %r14d
	movq	_BNX2_L2CTX_TYPE_TYPE_L2@GOTPCREL(%rip), %rax
	movq	_BNX2_L2CTX_TYPE_SIZE_L2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_bnx2_ctx_wr
	movq	_BNX2_L2CTX_CMD_TYPE_TYPE_L2@GOTPCREL(%rip), %rax
	movl	$524288, %ecx                   ## imm = 0x80000
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_bnx2_ctx_wr
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_bnx2_ctx_wr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2_ctx_wr                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_CHIP_5709,8,3             ## @BNX2_CHIP_5709
	.comm	_BNX2_L2CTX_TYPE_XI,4,2         ## @BNX2_L2CTX_TYPE_XI
	.comm	_BNX2_L2CTX_CMD_TYPE_XI,4,2     ## @BNX2_L2CTX_CMD_TYPE_XI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_HI_XI,4,2 ## @BNX2_L2CTX_TBDR_BHADDR_HI_XI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_LO_XI,4,2 ## @BNX2_L2CTX_TBDR_BHADDR_LO_XI
	.comm	_BNX2_L2CTX_TYPE,4,2            ## @BNX2_L2CTX_TYPE
	.comm	_BNX2_L2CTX_CMD_TYPE,4,2        ## @BNX2_L2CTX_CMD_TYPE
	.comm	_BNX2_L2CTX_TBDR_BHADDR_HI,4,2  ## @BNX2_L2CTX_TBDR_BHADDR_HI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_LO,4,2  ## @BNX2_L2CTX_TBDR_BHADDR_LO
	.comm	_BNX2_L2CTX_TYPE_TYPE_L2,4,2    ## @BNX2_L2CTX_TYPE_TYPE_L2
	.comm	_BNX2_L2CTX_TYPE_SIZE_L2,4,2    ## @BNX2_L2CTX_TYPE_SIZE_L2
	.comm	_BNX2_L2CTX_CMD_TYPE_TYPE_L2,4,2 ## @BNX2_L2CTX_CMD_TYPE_TYPE_L2
	.no_dead_strip	_bnx2_init_tx_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_init_tx_context
_bnx2_init_tx_context:                  ; @bnx2_init_tx_context
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_GET_CID_ADDR
	mov	x21, x0
	mov	x0, x20
	bl	_BNX2_CHIP
Lloh0:
	adrp	x8, _BNX2_CHIP_5709@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_CHIP_5709@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BNX2_L2CTX_TYPE_XI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_L2CTX_TYPE_XI@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BNX2_L2CTX_TYPE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNX2_L2CTX_TYPE@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
Lloh7:
	adrp	x9, _BNX2_L2CTX_TBDR_BHADDR_LO_XI@GOT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E_L2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNX2_L2CTX_CMD_TYPE_TYPE_L2@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w3, w8, #0x80000
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_bnx2_ctx_wr
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_bnx2_ctx_wr
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	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
	b	_bnx2_ctx_wr
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_CHIP_5709,8,3             ; @BNX2_CHIP_5709
	.comm	_BNX2_L2CTX_TYPE_XI,4,2         ; @BNX2_L2CTX_TYPE_XI
	.comm	_BNX2_L2CTX_CMD_TYPE_XI,4,2     ; @BNX2_L2CTX_CMD_TYPE_XI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_HI_XI,4,2 ; @BNX2_L2CTX_TBDR_BHADDR_HI_XI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_LO_XI,4,2 ; @BNX2_L2CTX_TBDR_BHADDR_LO_XI
	.comm	_BNX2_L2CTX_TYPE,4,2            ; @BNX2_L2CTX_TYPE
	.comm	_BNX2_L2CTX_CMD_TYPE,4,2        ; @BNX2_L2CTX_CMD_TYPE
	.comm	_BNX2_L2CTX_TBDR_BHADDR_HI,4,2  ; @BNX2_L2CTX_TBDR_BHADDR_HI
	.comm	_BNX2_L2CTX_TBDR_BHADDR_LO,4,2  ; @BNX2_L2CTX_TBDR_BHADDR_LO
	.comm	_BNX2_L2CTX_TYPE_TYPE_L2,4,2    ; @BNX2_L2CTX_TYPE_TYPE_L2
	.comm	_BNX2_L2CTX_TYPE_SIZE_L2,4,2    ; @BNX2_L2CTX_TYPE_SIZE_L2
	.comm	_BNX2_L2CTX_CMD_TYPE_TYPE_L2,4,2 ; @BNX2_L2CTX_CMD_TYPE_TYPE_L2
	.no_dead_strip	_bnx2_init_tx_context
.subsections_via_symbols
