	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_func_chk_transition
_bnx2x_func_chk_transition:             ## @bnx2x_func_chk_transition
	.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	%rsi, %r13
	movl	(%rsi), %ebx
	movq	_BNX2X_F_STATE_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %r15d
	movq	_RAMROD_DRV_CLR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rdx), %rsi
	callq	_test_bit
	leaq	8(%r13), %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	$0, 8(%r13)
	movl	(%r14), %eax
	movl	%eax, 4(%r13)
LBB0_2:
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_BNX2X_F_CMD_SWITCH_UPDATE@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	cmpl	(%rax), %r15d
	jne	LBB0_6
## %bb.5:
	movq	_BNX2X_F_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movl	%r15d, %ecx
	testq	%rax, %rax
	je	LBB0_27
LBB0_6:
	movq	_BNX2X_F_CMD_TX_START@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movl	$129, %eax
	jmp	LBB0_21
LBB0_7:
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_ERR
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r15d, %ecx
	jmp	LBB0_22
LBB0_10:
	movq	_BNX2X_F_CMD_STOP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$131, %r14d
	movl	%r15d, %ecx
	cmpl	%edi, %r15d
	je	LBB0_22
## %bb.11:
	movq	_BNX2X_F_CMD_AFEX_UPDATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rsi
	callq	_test_bit
	movl	%r15d, %ecx
	testq	%rax, %rax
	je	LBB0_28
LBB0_13:
	movq	_BNX2X_F_CMD_AFEX_VIFLISTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_15
## %bb.14:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movl	%r15d, %ecx
	testq	%rax, %rax
	je	LBB0_28
LBB0_15:
	movq	_BNX2X_F_CMD_SWITCH_UPDATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_17
## %bb.16:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movl	%r15d, %ecx
	testq	%rax, %rax
	je	LBB0_28
LBB0_17:
	movq	_BNX2X_F_CMD_TX_STOP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movl	$128, %eax
	jmp	LBB0_21
LBB0_18:
	movq	_BNX2X_F_CMD_HW_INIT@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	cmpl	(%rax), %r15d
	movl	$131, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_BNX2X_F_CMD_START@GOTPCREL(%rip), %rax
	movl	$129, %r14d
	movl	%r15d, %ecx
	cmpl	(%rax), %r15d
	je	LBB0_22
## %bb.20:
	movq	_BNX2X_F_CMD_HW_RESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movl	$130, %eax
LBB0_21:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmovel	%eax, %r14d
LBB0_22:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BNX2X_F_STATE_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.23:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_24:
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_DP
	movl	%r14d, 4(%r13)
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	$129, %r14d
	jmp	LBB0_22
LBB0_27:
	movl	$128, %r14d
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_BNX2X_F_STATE_MAX,4,2          ## @BNX2X_F_STATE_MAX
	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ## @RAMROD_DRV_CLR_ONLY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BNX2X_F_CMD_HW_INIT,4,2        ## @BNX2X_F_CMD_HW_INIT
	.comm	_BNX2X_F_CMD_START,4,2          ## @BNX2X_F_CMD_START
	.comm	_BNX2X_F_CMD_HW_RESET,4,2       ## @BNX2X_F_CMD_HW_RESET
	.comm	_BNX2X_F_CMD_STOP,4,2           ## @BNX2X_F_CMD_STOP
	.comm	_BNX2X_F_CMD_AFEX_UPDATE,4,2    ## @BNX2X_F_CMD_AFEX_UPDATE
	.comm	_BNX2X_F_CMD_AFEX_VIFLISTS,4,2  ## @BNX2X_F_CMD_AFEX_VIFLISTS
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ## @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_CMD_TX_STOP,4,2        ## @BNX2X_F_CMD_TX_STOP
	.comm	_BNX2X_F_CMD_TX_START,4,2       ## @BNX2X_F_CMD_TX_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown state: %d\n"

	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"Good function state transition: %d(%d)->%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bad function state transition request: %d %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_func_chk_transition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_func_chk_transition
_bnx2x_func_chk_transition:             ; @bnx2x_func_chk_transition
	.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	x19, x1
	mov	x22, x1
	ldr	w20, [x22], #8
Lloh0:
	adrp	x24, _BNX2X_F_STATE_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BNX2X_F_STATE_MAX@GOTPAGEOFF]
	ldr	w23, [x24]
	ldr	w21, [x2], #8
Lloh2:
	adrp	x8, _RAMROD_DRV_CLR_ONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RAMROD_DRV_CLR_ONLY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x2
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.1:
	str	xzr, [x19, #8]
	ldr	w8, [x24]
	str	w8, [x19, #4]
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh7:
	adrp	x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _BNX2X_F_CMD_STOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2X_F_CMD_STOP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_29
LBB0_6:
Lloh13:
	adrp	x8, _BNX2X_F_CMD_TX_START@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_F_CMD_TX_START@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #129
	b	LBB0_23
LBB0_7:
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.8:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_26
LBB0_9:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
	b	LBB0_24
LBB0_10:
Lloh20:
	adrp	x25, _BNX2X_F_CMD_STOP@GOTPAGE
Lloh21:
	ldr	x25, [x25, _BNX2X_F_CMD_STOP@GOTPAGEOFF]
	ldr	w0, [x25]
	cmp	w21, w0
	b.ne	LBB0_15
; %bb.11:
	mov	w23, #131
	b	LBB0_24
LBB0_12:
Lloh22:
	adrp	x8, _BNX2X_F_CMD_HW_INIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BNX2X_F_CMD_HW_INIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	w9, #131
	b	LBB0_23
LBB0_13:
Lloh25:
	adrp	x8, _BNX2X_F_CMD_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNX2X_F_CMD_START@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_22
LBB0_14:
	mov	w23, #129
	b	LBB0_24
LBB0_15:
Lloh28:
	adrp	x8, _BNX2X_F_CMD_AFEX_UPDATE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BNX2X_F_CMD_AFEX_UPDATE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_17
; %bb.16:
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_14
LBB0_17:
Lloh31:
	adrp	x8, _BNX2X_F_CMD_AFEX_VIFLISTS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNX2X_F_CMD_AFEX_VIFLISTS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_19
; %bb.18:
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_14
LBB0_19:
Lloh34:
	adrp	x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_21
; %bb.20:
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_14
LBB0_21:
Lloh37:
	adrp	x8, _BNX2X_F_CMD_TX_STOP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BNX2X_F_CMD_TX_STOP@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mov	w9, #128
	b	LBB0_23
LBB0_22:
Lloh40:
	adrp	x8, _BNX2X_F_CMD_HW_RESET@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BNX2X_F_CMD_HW_RESET@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	mov	w9, #130
LBB0_23:
	cmp	w21, w8
	csel	w23, w9, w23, eq
LBB0_24:
	ldr	w8, [x24]
Lloh43:
	adrp	x9, _BNX2X_MSG_SP@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x9]
	cmp	w23, w8
	b.ne	LBB0_27
; %bb.25:
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_DP
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_28
LBB0_27:
	str	x23, [sp]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_DP
	mov	w0, #0
	str	w23, [x19, #4]
LBB0_28:
	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
	ret
LBB0_29:
	mov	w23, #128
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_BNX2X_F_STATE_MAX,4,2          ; @BNX2X_F_STATE_MAX
	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ; @RAMROD_DRV_CLR_ONLY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BNX2X_F_CMD_HW_INIT,4,2        ; @BNX2X_F_CMD_HW_INIT
	.comm	_BNX2X_F_CMD_START,4,2          ; @BNX2X_F_CMD_START
	.comm	_BNX2X_F_CMD_HW_RESET,4,2       ; @BNX2X_F_CMD_HW_RESET
	.comm	_BNX2X_F_CMD_STOP,4,2           ; @BNX2X_F_CMD_STOP
	.comm	_BNX2X_F_CMD_AFEX_UPDATE,4,2    ; @BNX2X_F_CMD_AFEX_UPDATE
	.comm	_BNX2X_F_CMD_AFEX_VIFLISTS,4,2  ; @BNX2X_F_CMD_AFEX_VIFLISTS
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ; @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_CMD_TX_STOP,4,2        ; @BNX2X_F_CMD_TX_STOP
	.comm	_BNX2X_F_CMD_TX_START,4,2       ; @BNX2X_F_CMD_TX_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown state: %d\n"

	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"Good function state transition: %d(%d)->%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bad function state transition request: %d %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_func_chk_transition
.subsections_via_symbols
