	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_oem_event
_bnx2x_oem_event:                       ## @bnx2x_oem_event
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_DRV_STATUS_DCC_EVENT_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_DRV_STATUS_OEM_EVENT_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_1:
	movq	_DRV_MSG_CODE_OEM_OK@GOTPCREL(%rip), %rax
	movq	_DRV_MSG_CODE_OEM_FAILURE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_DRV_MSG_CODE_DCC_OK@GOTPCREL(%rip), %rax
	movq	_DRV_MSG_CODE_DCC_FAILURE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %r13d
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP
	movq	_DRV_STATUS_DCC_DISABLE_ENABLE_PF@GOTPCREL(%rip), %rcx
	movq	_DRV_STATUS_OEM_DISABLE_ENABLE_PF@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_9
## %bb.5:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	(%r14), %r13
	movq	%r14, %rdi
	callq	_BP_VN
	movq	_FUNC_MF_CFG_FUNC_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r15), %edi
	testl	%ecx, (%r13,%rax,4)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MF_FUNC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_bnx2x_e1h_disable
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MF_FUNC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_bnx2x_e1h_enable
LBB0_8:
	movl	(%r12), %eax
	movq	_DRV_STATUS_DCC_DISABLE_ENABLE_PF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_9:
	movq	_DRV_STATUS_DCC_BANDWIDTH_ALLOCATION@GOTPCREL(%rip), %r15
	movq	_DRV_STATUS_OEM_BANDWIDTH_ALLOCATION@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	(%r15), %eax
	testl	%ebx, %eax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_bnx2x_config_mf_bw
	movl	(%r12), %eax
	orl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_11:
	movq	%r14, %rdi
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:
	movl	%r13d, %esi
	jmp	LBB0_13
LBB0_14:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_13:
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_fw_command               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_STATUS_DCC_EVENT_MASK,4,2  ## @DRV_STATUS_DCC_EVENT_MASK
	.comm	_DRV_STATUS_OEM_EVENT_MASK,4,2  ## @DRV_STATUS_OEM_EVENT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received simultaneous events %08x\n"

	.comm	_DRV_MSG_CODE_DCC_FAILURE,4,2   ## @DRV_MSG_CODE_DCC_FAILURE
	.comm	_DRV_MSG_CODE_DCC_OK,4,2        ## @DRV_MSG_CODE_DCC_OK
	.comm	_DRV_MSG_CODE_OEM_FAILURE,4,2   ## @DRV_MSG_CODE_OEM_FAILURE
	.comm	_DRV_MSG_CODE_OEM_OK,4,2        ## @DRV_MSG_CODE_OEM_OK
	.comm	_BNX2X_MSG_MCP,4,2              ## @BNX2X_MSG_MCP
L_.str.1:                               ## @.str.1
	.asciz	"oem_event 0x%x\n"

	.comm	_DRV_STATUS_DCC_DISABLE_ENABLE_PF,4,2 ## @DRV_STATUS_DCC_DISABLE_ENABLE_PF
	.comm	_DRV_STATUS_OEM_DISABLE_ENABLE_PF,4,2 ## @DRV_STATUS_OEM_DISABLE_ENABLE_PF
	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ## @FUNC_MF_CFG_FUNC_DISABLED
L_.str.2:                               ## @.str.2
	.asciz	"mf_cfg function disabled\n"

	.comm	_MF_FUNC_DIS,4,2                ## @MF_FUNC_DIS
L_.str.3:                               ## @.str.3
	.asciz	"mf_cfg function enabled\n"

	.comm	_DRV_STATUS_DCC_BANDWIDTH_ALLOCATION,4,2 ## @DRV_STATUS_DCC_BANDWIDTH_ALLOCATION
	.comm	_DRV_STATUS_OEM_BANDWIDTH_ALLOCATION,4,2 ## @DRV_STATUS_OEM_BANDWIDTH_ALLOCATION
	.no_dead_strip	_bnx2x_oem_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_oem_event
_bnx2x_oem_event:                       ; @bnx2x_oem_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DRV_STATUS_DCC_EVENT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_STATUS_DCC_EVENT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DRV_STATUS_OEM_EVENT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRV_STATUS_OEM_EVENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	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
	add	sp, sp, #96
	b	_BNX2X_ERR
LBB0_3:
Lloh8:
	adrp	x8, _DRV_MSG_CODE_OEM_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_MSG_CODE_OEM_OK@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DRV_MSG_CODE_OEM_FAILURE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DRV_MSG_CODE_OEM_FAILURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _DRV_MSG_CODE_DCC_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRV_MSG_CODE_DCC_OK@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DRV_MSG_CODE_DCC_FAILURE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRV_MSG_CODE_DCC_FAILURE@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x9]
	ldr	w22, [x8]
Lloh16:
	adrp	x25, _BNX2X_MSG_MCP@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BNX2X_MSG_MCP@GOTPAGEOFF]
	ldr	w0, [x25]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh20:
	adrp	x23, _DRV_STATUS_DCC_DISABLE_ENABLE_PF@GOTPAGE
Lloh21:
	ldr	x23, [x23, _DRV_STATUS_DCC_DISABLE_ENABLE_PF@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh22:
	adrp	x24, _DRV_STATUS_OEM_DISABLE_ENABLE_PF@GOTPAGE
Lloh23:
	ldr	x24, [x24, _DRV_STATUS_OEM_DISABLE_ENABLE_PF@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_10
; %bb.6:
	ldr	x26, [x19]
	mov	x0, x19
	bl	_BP_VN
	ldr	w8, [x26, x0, lsl #2]
Lloh24:
	adrp	x9, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldr	w0, [x25]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh29:
	adrp	x8, _MF_FUNC_DIS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MF_FUNC_DIS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_bnx2x_e1h_disable
	b	LBB0_9
LBB0_8:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
Lloh34:
	adrp	x8, _MF_FUNC_DIS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MF_FUNC_DIS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_bnx2x_e1h_enable
LBB0_9:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w20, w20, w8
LBB0_10:
Lloh37:
	adrp	x23, _DRV_STATUS_DCC_BANDWIDTH_ALLOCATION@GOTPAGE
Lloh38:
	ldr	x23, [x23, _DRV_STATUS_DCC_BANDWIDTH_ALLOCATION@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh39:
	adrp	x24, _DRV_STATUS_OEM_BANDWIDTH_ALLOCATION@GOTPAGE
Lloh40:
	ldr	x24, [x24, _DRV_STATUS_OEM_BANDWIDTH_ALLOCATION@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_bnx2x_config_mf_bw
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w20, w20, w8
LBB0_12:
	mov	x0, x19
	cbz	w20, LBB0_14
; %bb.13:
	mov	x1, x21
	b	LBB0_15
LBB0_14:
	mov	x1, x22
LBB0_15:
	mov	w2, #0
	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
	add	sp, sp, #96
	b	_bnx2x_fw_command
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_STATUS_DCC_EVENT_MASK,4,2  ; @DRV_STATUS_DCC_EVENT_MASK
	.comm	_DRV_STATUS_OEM_EVENT_MASK,4,2  ; @DRV_STATUS_OEM_EVENT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received simultaneous events %08x\n"

	.comm	_DRV_MSG_CODE_DCC_FAILURE,4,2   ; @DRV_MSG_CODE_DCC_FAILURE
	.comm	_DRV_MSG_CODE_DCC_OK,4,2        ; @DRV_MSG_CODE_DCC_OK
	.comm	_DRV_MSG_CODE_OEM_FAILURE,4,2   ; @DRV_MSG_CODE_OEM_FAILURE
	.comm	_DRV_MSG_CODE_OEM_OK,4,2        ; @DRV_MSG_CODE_OEM_OK
	.comm	_BNX2X_MSG_MCP,4,2              ; @BNX2X_MSG_MCP
l_.str.1:                               ; @.str.1
	.asciz	"oem_event 0x%x\n"

	.comm	_DRV_STATUS_DCC_DISABLE_ENABLE_PF,4,2 ; @DRV_STATUS_DCC_DISABLE_ENABLE_PF
	.comm	_DRV_STATUS_OEM_DISABLE_ENABLE_PF,4,2 ; @DRV_STATUS_OEM_DISABLE_ENABLE_PF
	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ; @FUNC_MF_CFG_FUNC_DISABLED
l_.str.2:                               ; @.str.2
	.asciz	"mf_cfg function disabled\n"

	.comm	_MF_FUNC_DIS,4,2                ; @MF_FUNC_DIS
l_.str.3:                               ; @.str.3
	.asciz	"mf_cfg function enabled\n"

	.comm	_DRV_STATUS_DCC_BANDWIDTH_ALLOCATION,4,2 ; @DRV_STATUS_DCC_BANDWIDTH_ALLOCATION
	.comm	_DRV_STATUS_OEM_BANDWIDTH_ALLOCATION,4,2 ; @DRV_STATUS_OEM_BANDWIDTH_ALLOCATION
	.no_dead_strip	_bnx2x_oem_event
.subsections_via_symbols
