	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_disable_an_for_lpbk
_bnxt_disable_an_for_lpbk:              ## @bnxt_disable_an_for_lpbk
	.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
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-36(%rbp), %rsi
	callq	_bnxt_query_force_speeds
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %r15d
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_5:
	movl	-36(%rbp), %eax
	movq	_BNXT_LINK_SPEED_MSK_10GB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_BNXT_LINK_SPEED_MSK_25GB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_BNXT_LINK_SPEED_MSK_40GB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_BNXT_LINK_SPEED_MSK_50GB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	movq	_PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPCREL(%rip), %rax
	movq	_PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, 8(%r14)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_hwrm_send_message
	movl	%eax, %ebx
	movl	$0, 8(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB,4,2 ## @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB
	.comm	_BNXT_LINK_SPEED_MSK_10GB,4,2   ## @BNXT_LINK_SPEED_MSK_10GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB,4,2 ## @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB
	.comm	_BNXT_LINK_SPEED_MSK_25GB,4,2   ## @BNXT_LINK_SPEED_MSK_25GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB,4,2 ## @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB
	.comm	_BNXT_LINK_SPEED_MSK_40GB,4,2   ## @BNXT_LINK_SPEED_MSK_40GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB,4,2 ## @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB
	.comm	_BNXT_LINK_SPEED_MSK_50GB,4,2   ## @BNXT_LINK_SPEED_MSK_50GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB,4,2 ## @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB
	.comm	_PORT_PHY_CFG_REQ_FLAGS_FORCE,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_FORCE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_RESET_PHY,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_RESET_PHY
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_disable_an_for_lpbk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_disable_an_for_lpbk
_bnxt_disable_an_for_lpbk:              ; @bnxt_disable_an_for_lpbk
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_bnxt_query_force_speeds
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x20, #8]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	b	LBB0_12
LBB0_4:
	mov	w21, #0
	b	LBB0_13
LBB0_5:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _BNXT_LINK_SPEED_MSK_10GB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_10GB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x9, _BNXT_LINK_SPEED_MSK_25GB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_25GB@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x9, _BNXT_LINK_SPEED_MSK_40GB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_40GB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh18:
	adrp	x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x9, _BNXT_LINK_SPEED_MSK_50GB@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_50GB@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, w21, w10, eq
LBB0_12:
	bl	_cpu_to_le16
Lloh27:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPAGEOFF]
	str	x0, [x19]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
Lloh33:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_hwrm_send_message
	mov	x21, x0
	str	wzr, [x19, #8]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x19]
LBB0_13:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB,4,2 ; @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_1GB
	.comm	_BNXT_LINK_SPEED_MSK_10GB,4,2   ; @BNXT_LINK_SPEED_MSK_10GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB,4,2 ; @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_10GB
	.comm	_BNXT_LINK_SPEED_MSK_25GB,4,2   ; @BNXT_LINK_SPEED_MSK_25GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB,4,2 ; @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_25GB
	.comm	_BNXT_LINK_SPEED_MSK_40GB,4,2   ; @BNXT_LINK_SPEED_MSK_40GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB,4,2 ; @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_40GB
	.comm	_BNXT_LINK_SPEED_MSK_50GB,4,2   ; @BNXT_LINK_SPEED_MSK_50GB
	.comm	_PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB,4,2 ; @PORT_PHY_CFG_REQ_FORCE_LINK_SPEED_50GB
	.comm	_PORT_PHY_CFG_REQ_FLAGS_FORCE,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_FORCE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_RESET_PHY,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_RESET_PHY
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_disable_an_for_lpbk
.subsections_via_symbols
