	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_os_driver_state      ## -- Begin function bnx2x_set_os_driver_state
	.p2align	4, 0x90
_bnx2x_set_os_driver_state:             ## @bnx2x_set_os_driver_state
	.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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_IS_MF_BD
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_os_driver_state@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_SHMEM2_HAS
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_VF
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %r12
	movq	%rbx, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%r12,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_SHMEM2_RD
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_DP
	movq	(%r15), %r15
	movq	%rbx, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%r15,%rax,4), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SHMEM2_WR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_os_driver_state,8,3            ## @os_driver_state
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver state %08x-->%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_os_driver_state      ; -- Begin function bnx2x_set_os_driver_state
	.p2align	2
_bnx2x_set_os_driver_state:             ; @bnx2x_set_os_driver_state
	.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	x19, x1
	mov	x20, x0
	bl	_IS_MF_BD
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _os_driver_state@GOTPAGE
Lloh1:
	ldr	x21, [x21, _os_driver_state@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	bl	_SHMEM2_HAS
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_IS_VF
	cbz	x0, LBB0_4
LBB0_3:
	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_4:
	ldr	x22, [x21]
	mov	x0, x20
	bl	_BP_FW_MB_IDX
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x20
	bl	_SHMEM2_RD
	mov	x2, x0
Lloh2:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_DP
	ldr	x21, [x21]
	mov	x0, x20
	bl	_BP_FW_MB_IDX
	ldr	w1, [x21, x0, lsl #2]
	mov	x0, x20
	mov	x2, 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	_SHMEM2_WR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_os_driver_state,8,3            ; @os_driver_state
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver state %08x-->%08x\n"

.subsections_via_symbols
