	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8727_specific_func
_bnx2x_8727_specific_func:              ## @bnx2x_8727_specific_func
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$128, %edx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_7
## %bb.3:
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_8:
	movq	(%rsi), %r14
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_RXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$36, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_TXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$6, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-36(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	-36(%rbp), %r8d
	movq	_FLAGS_NOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	%r8d, %ecx
	orl	$4192, %ecx                     ## imm = 0x1060
	andl	$61327, %r8d                    ## imm = 0xEF8F
	orl	$4096, %r8d                     ## imm = 0x1000
	testl	%eax, %eax
	cmovnel	%ecx, %r8d
	movl	%r8d, -36(%rbp)
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
	jmp	LBB0_9
LBB0_5:
	movq	_FLAGS_SFP_NOT_APPROVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_6:
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_sfp_set_transmitter      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_SFP_NOT_APPROVED,4,2     ## @FLAGS_SFP_NOT_APPROVED
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_RXCTRL,4,2       ## @MDIO_PMA_LASI_RXCTRL
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ## @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ## @MDIO_PMA_LASI_CTRL
	.comm	_MDIO_PMA_REG_8727_PCS_OPT_CTRL,4,2 ## @MDIO_PMA_REG_8727_PCS_OPT_CTRL
	.comm	_FLAGS_NOC,4,2                  ## @FLAGS_NOC
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Function 0x%x not supported by 8727\n"

	.no_dead_strip	_bnx2x_8727_specific_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8727_specific_func
_bnx2x_8727_specific_func:              ; @bnx2x_8727_specific_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x1
	mov	x1, x19
	mov	w2, #0
	b	LBB0_9
LBB0_4:
	ldr	x20, [x1]
Lloh0:
	adrp	x21, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #36
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh5:
	adrp	x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh8:
	adrp	x8, _MDIO_PMA_LASI_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_PMA_LASI_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #6
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh11:
	adrp	x22, _MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x9, _FLAGS_NOC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FLAGS_NOC@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh15:
	ldr	w9, [x9]
	mov	w11, #4192
	orr	w11, w8, w11
	mov	w12, #61327
	and	w8, w8, w12
	orr	w8, w8, #0x1000
	tst	w9, w10
	csel	w4, w8, w11, eq
	str	w4, [sp, #12]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _FLAGS_SFP_NOT_APPROVED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FLAGS_SFP_NOT_APPROVED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh19:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_DP
LBB0_8:
	mov	x0, x1
	mov	x1, x19
	mov	w2, #1
LBB0_9:
	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
	add	sp, sp, #64
	b	_bnx2x_sfp_set_transmitter
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_SFP_NOT_APPROVED,4,2     ; @FLAGS_SFP_NOT_APPROVED
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_RXCTRL,4,2       ; @MDIO_PMA_LASI_RXCTRL
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ; @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ; @MDIO_PMA_LASI_CTRL
	.comm	_MDIO_PMA_REG_8727_PCS_OPT_CTRL,4,2 ; @MDIO_PMA_REG_8727_PCS_OPT_CTRL
	.comm	_FLAGS_NOC,4,2                  ; @FLAGS_NOC
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Function 0x%x not supported by 8727\n"

	.no_dead_strip	_bnx2x_8727_specific_func
.subsections_via_symbols
