	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_gmii_tx_driver
_bnx2x_set_gmii_tx_driver:              ## @bnx2x_set_gmii_tx_driver
	.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	8(%rdi), %r14
	movq	_INT_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	(%rdi), %r15
	movq	_MDIO_REG_BANK_OVER_1G@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MDIO_OVER_1G_LP_UP2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-48(%rbp), %rax
	movq	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_MDIO_REG_BANK_TX0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MDIO_REG_BANK_TX3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_2
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MDIO_TX0_TX_DRIVER@GOTPCREL(%rip), %r13
	movq	_MDIO_REG_BANK_TX1@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	(%r12), %rbx
	movq	_MDIO_REG_BANK_TX0@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	_MDIO_REG_BANK_TX3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jg	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	leaq	-56(%rbp), %r8
	callq	_CL22_RD_OVER_CL45
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %r8
	movq	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	andq	%r8, %rdx
	cmpq	%rdx, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	notq	%rcx
	andq	%rcx, %r8
	orq	%rax, %r8
	movq	%r8, -56(%rbp)
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_CL22_WR_OVER_CL45
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_PHY,8,3                    ## @INT_PHY
	.comm	_MDIO_REG_BANK_OVER_1G,8,3      ## @MDIO_REG_BANK_OVER_1G
	.comm	_MDIO_OVER_1G_LP_UP2,4,2        ## @MDIO_OVER_1G_LP_UP2
	.comm	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK,8,3 ## @MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK
	.comm	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT,8,3 ## @MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT
	.comm	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT,8,3 ## @MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT
	.comm	_MDIO_REG_BANK_TX0,8,3          ## @MDIO_REG_BANK_TX0
	.comm	_MDIO_REG_BANK_TX3,8,3          ## @MDIO_REG_BANK_TX3
	.comm	_MDIO_TX0_TX_DRIVER,4,2         ## @MDIO_TX0_TX_DRIVER
	.comm	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK,8,3 ## @MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK
	.comm	_MDIO_REG_BANK_TX1,8,3          ## @MDIO_REG_BANK_TX1
	.no_dead_strip	_bnx2x_set_gmii_tx_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_gmii_tx_driver
_bnx2x_set_gmii_tx_driver:              ; @bnx2x_set_gmii_tx_driver
	.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
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _INT_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_PHY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
Lloh3:
	adrp	x8, _MDIO_REG_BANK_OVER_1G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_REG_BANK_OVER_1G@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x8, _MDIO_OVER_1G_LP_UP2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_OVER_1G_LP_UP2@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_CL22_RD_OVER_CL45
Lloh9:
	adrp	x8, _MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK@GOTPAGEOFF]
	ldr	x9, [sp, #8]
Lloh11:
	ldr	x8, [x8]
	and	x8, x8, x9
Lloh12:
	adrp	x9, _MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	asr	x8, x8, x9
Lloh15:
	adrp	x9, _MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	str	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh18:
	adrp	x22, _MDIO_REG_BANK_TX0@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MDIO_REG_BANK_TX0@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh20:
	adrp	x23, _MDIO_REG_BANK_TX3@GOTPAGE
Lloh21:
	ldr	x23, [x23, _MDIO_REG_BANK_TX3@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x21, x8
	b.le	LBB0_3
LBB0_2:
	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_3:
Lloh22:
	adrp	x24, _MDIO_TX0_TX_DRIVER@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MDIO_TX0_TX_DRIVER@GOTPAGEOFF]
Lloh24:
	adrp	x25, _MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK@GOTPAGE
Lloh25:
	ldr	x25, [x25, _MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK@GOTPAGEOFF]
Lloh26:
	adrp	x26, _MDIO_REG_BANK_TX1@GOTPAGE
Lloh27:
	ldr	x26, [x26, _MDIO_REG_BANK_TX1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x22]
	add	x8, x8, x21
	sub	x21, x8, x9
	ldr	x8, [x23]
	cmp	x21, x8
	b.gt	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24]
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_CL22_RD_OVER_CL45
	ldp	x9, x8, [sp]
	ldr	x10, [x25]
	and	x11, x10, x9
	cmp	x8, x11
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bic	x9, x9, x10
	orr	x4, x9, x8
	str	x4, [sp]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_CL22_WR_OVER_CL45
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_PHY,8,3                    ; @INT_PHY
	.comm	_MDIO_REG_BANK_OVER_1G,8,3      ; @MDIO_REG_BANK_OVER_1G
	.comm	_MDIO_OVER_1G_LP_UP2,4,2        ; @MDIO_OVER_1G_LP_UP2
	.comm	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK,8,3 ; @MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK
	.comm	_MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT,8,3 ; @MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT
	.comm	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT,8,3 ; @MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT
	.comm	_MDIO_REG_BANK_TX0,8,3          ; @MDIO_REG_BANK_TX0
	.comm	_MDIO_REG_BANK_TX3,8,3          ; @MDIO_REG_BANK_TX3
	.comm	_MDIO_TX0_TX_DRIVER,4,2         ; @MDIO_TX0_TX_DRIVER
	.comm	_MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK,8,3 ; @MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK
	.comm	_MDIO_REG_BANK_TX1,8,3          ; @MDIO_REG_BANK_TX1
	.no_dead_strip	_bnx2x_set_gmii_tx_driver
.subsections_via_symbols
