	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_mdio_clk
_bnx2x_set_mdio_clk:                    ## @bnx2x_set_mdio_clk
	.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	%edx, %r14d
	movq	%rdi, %r15
	movq	_EMAC_REG_EMAC_MDIO_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	addl	%edx, %esi
	callq	_REG_RD
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_USES_WARPCORE
	testq	%rax, %rax
	movq	_EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT@GOTPCREL(%rip), %rcx
	movl	$49, %edx
	movl	$74, %eax
	cmoveq	%rdx, %rax
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_EMAC_MDIO_MODE_CLOCK_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%r12d, %edx
	movq	_EMAC_MDIO_MODE_CLAUSE_45@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	cmpl	%eax, %edx
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edx
	andl	%r12d, %edx
	je	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EMAC_MDIO_MODE_AUTO_POLL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%r12d, %ecx
	orl	%eax, %ebx
	orl	%ecx, %ebx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_DP
	addl	(%r13), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_REG_WR
	movl	$40, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_REG_EMAC_MDIO_MODE,4,2    ## @EMAC_REG_EMAC_MDIO_MODE
	.comm	_EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT,8,3 ## @EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT
	.comm	_EMAC_MDIO_MODE_CLOCK_CNT,4,2   ## @EMAC_MDIO_MODE_CLOCK_CNT
	.comm	_EMAC_MDIO_MODE_CLAUSE_45,4,2   ## @EMAC_MDIO_MODE_CLAUSE_45
	.comm	_EMAC_MDIO_MODE_AUTO_POLL,4,2   ## @EMAC_MDIO_MODE_AUTO_POLL
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing emac_mode from 0x%x to 0x%x\n"

	.no_dead_strip	_bnx2x_set_mdio_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_mdio_clk
_bnx2x_set_mdio_clk:                    ; @bnx2x_set_mdio_clk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _EMAC_REG_EMAC_MDIO_MODE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EMAC_REG_EMAC_MDIO_MODE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w2
	bl	_REG_RD
	mov	x21, x0
	mov	x0, x19
	bl	_USES_WARPCORE
Lloh2:
	adrp	x8, _EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	w9, #74
	mov	w10, #49
	cmp	x0, #0
	csel	x9, x10, x9, eq
	lsl	x8, x9, x8
Lloh5:
	adrp	x9, _EMAC_MDIO_MODE_CLOCK_CNT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EMAC_MDIO_MODE_CLOCK_CNT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w11, w9, w21
Lloh8:
	adrp	x10, _EMAC_MDIO_MODE_CLAUSE_45@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EMAC_MDIO_MODE_CLAUSE_45@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w12, w10, w21
	cmp	w11, w8
	ccmp	w12, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x11, _EMAC_MDIO_MODE_AUTO_POLL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _EMAC_MDIO_MODE_AUTO_POLL@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bic	w9, w21, w9
	orr	w8, w10, w8
	orr	w22, w8, w9
Lloh14:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_DP
	ldr	w8, [x23]
	add	w1, w8, w20
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
	mov	w0, #40
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udelay
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_REG_EMAC_MDIO_MODE,4,2    ; @EMAC_REG_EMAC_MDIO_MODE
	.comm	_EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT,8,3 ; @EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT
	.comm	_EMAC_MDIO_MODE_CLOCK_CNT,4,2   ; @EMAC_MDIO_MODE_CLOCK_CNT
	.comm	_EMAC_MDIO_MODE_CLAUSE_45,4,2   ; @EMAC_MDIO_MODE_CLAUSE_45
	.comm	_EMAC_MDIO_MODE_AUTO_POLL,4,2   ; @EMAC_MDIO_MODE_AUTO_POLL
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing emac_mode from 0x%x to 0x%x\n"

	.no_dead_strip	_bnx2x_set_mdio_clk
.subsections_via_symbols
