	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_ctx_validation       ## -- Begin function bnx2x_set_ctx_validation
	.p2align	4, 0x90
_bnx2x_set_ctx_validation:              ## @bnx2x_set_ctx_validation
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	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	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%edx, %esi
	callq	_HW_CID
	movq	_CDU_REGION_NUMBER_UCM_AG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ETH_CONNECTION_TYPE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_CDU_RSRVD_VALUE_TYPE_A
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_HW_CID
	movq	_CDU_REGION_NUMBER_XCM_AG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_CDU_RSRVD_VALUE_TYPE_A
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	jmp	_BNX2X_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad context pointer %p\n"

	.comm	_CDU_REGION_NUMBER_UCM_AG,4,2   ## @CDU_REGION_NUMBER_UCM_AG
	.comm	_ETH_CONNECTION_TYPE,4,2        ## @ETH_CONNECTION_TYPE
	.comm	_CDU_REGION_NUMBER_XCM_AG,4,2   ## @CDU_REGION_NUMBER_XCM_AG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_ctx_validation       ; -- Begin function bnx2x_set_ctx_validation
	.p2align	2
_bnx2x_set_ctx_validation:              ; @bnx2x_set_ctx_validation
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	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, x2
	mov	x19, x1
	mov	x21, x0
	mov	x1, x2
	bl	_HW_CID
Lloh0:
	adrp	x8, _CDU_REGION_NUMBER_UCM_AG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDU_REGION_NUMBER_UCM_AG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _ETH_CONNECTION_TYPE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ETH_CONNECTION_TYPE@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_CDU_RSRVD_VALUE_TYPE_A
	str	x0, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_HW_CID
Lloh5:
	adrp	x8, _CDU_REGION_NUMBER_XCM_AG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDU_REGION_NUMBER_XCM_AG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_CDU_RSRVD_VALUE_TYPE_A
	str	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
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	_BNX2X_ERR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad context pointer %p\n"

	.comm	_CDU_REGION_NUMBER_UCM_AG,4,2   ; @CDU_REGION_NUMBER_UCM_AG
	.comm	_ETH_CONNECTION_TYPE,4,2        ; @ETH_CONNECTION_TYPE
	.comm	_CDU_REGION_NUMBER_XCM_AG,4,2   ; @CDU_REGION_NUMBER_XCM_AG
.subsections_via_symbols
