	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_enable_bmsr1
_bnx2_enable_bmsr1:                     ## @bnx2_enable_bmsr1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_BNX2_PHY_FLAG_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_BNX2_CHIP
	movq	_BNX2_CHIP_5709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_MII_BNX2_BLK_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_BNX2_BLK_ADDR_GP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bnx2_write_phy                 ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ## @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_CHIP_5709,8,3             ## @BNX2_CHIP_5709
	.comm	_MII_BNX2_BLK_ADDR,4,2          ## @MII_BNX2_BLK_ADDR
	.comm	_MII_BNX2_BLK_ADDR_GP_STATUS,4,2 ## @MII_BNX2_BLK_ADDR_GP_STATUS
	.no_dead_strip	_bnx2_enable_bmsr1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_enable_bmsr1
_bnx2_enable_bmsr1:                     ; @bnx2_enable_bmsr1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNX2_PHY_FLAG_SERDES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_PHY_FLAG_SERDES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_BNX2_CHIP
Lloh3:
	adrp	x8, _BNX2_CHIP_5709@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_CHIP_5709@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MII_BNX2_BLK_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BNX2_BLK_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MII_BNX2_BLK_ADDR_GP_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BNX2_BLK_ADDR_GP_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bnx2_write_phy
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ; @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_CHIP_5709,8,3             ; @BNX2_CHIP_5709
	.comm	_MII_BNX2_BLK_ADDR,4,2          ; @MII_BNX2_BLK_ADDR
	.comm	_MII_BNX2_BLK_ADDR_GP_STATUS,4,2 ; @MII_BNX2_BLK_ADDR_GP_STATUS
	.no_dead_strip	_bnx2_enable_bmsr1
.subsections_via_symbols
