	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_phy_loopback
_bnxt_hwrm_phy_loopback:                ## @bnxt_hwrm_phy_loopback
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_HWRM_PORT_PHY_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_bnxt_disable_an_for_lpbk
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.4:
	movq	_PORT_PHY_CFG_REQ_LPBK_LOCAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_PORT_PHY_CFG_REQ_LPBK_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PORT_PHY_CFG_REQ_LPBK_EXTERNAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_PORT_PHY_CFG_REQ_ENABLES_LPBK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_hwrm_send_message
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_PORT_PHY_CFG,4,2          ## @HWRM_PORT_PHY_CFG
	.comm	_PORT_PHY_CFG_REQ_LPBK_EXTERNAL,4,2 ## @PORT_PHY_CFG_REQ_LPBK_EXTERNAL
	.comm	_PORT_PHY_CFG_REQ_LPBK_LOCAL,4,2 ## @PORT_PHY_CFG_REQ_LPBK_LOCAL
	.comm	_PORT_PHY_CFG_REQ_LPBK_NONE,4,2 ## @PORT_PHY_CFG_REQ_LPBK_NONE
	.comm	_PORT_PHY_CFG_REQ_ENABLES_LPBK,4,2 ## @PORT_PHY_CFG_REQ_ENABLES_LPBK
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_phy_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_phy_loopback
_bnxt_hwrm_phy_loopback:                ; @bnxt_hwrm_phy_loopback
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	str	xzr, [sp]
Lloh0:
	adrp	x8, _HWRM_PORT_PHY_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_PORT_PHY_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, sp
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	cbz	w21, LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	bl	_bnxt_disable_an_for_lpbk
Lloh3:
	adrp	x8, _PORT_PHY_CFG_REQ_LPBK_EXTERNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_LPBK_EXTERNAL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PORT_PHY_CFG_REQ_LPBK_LOCAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PORT_PHY_CFG_REQ_LPBK_LOCAL@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _PORT_PHY_CFG_REQ_LPBK_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_LPBK_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [sp, #4]
Lloh9:
	adrp	x8, _PORT_PHY_CFG_REQ_ENABLES_LPBK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_ENABLES_LPBK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp]
Lloh12:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	bl	_hwrm_send_message
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_PORT_PHY_CFG,4,2          ; @HWRM_PORT_PHY_CFG
	.comm	_PORT_PHY_CFG_REQ_LPBK_EXTERNAL,4,2 ; @PORT_PHY_CFG_REQ_LPBK_EXTERNAL
	.comm	_PORT_PHY_CFG_REQ_LPBK_LOCAL,4,2 ; @PORT_PHY_CFG_REQ_LPBK_LOCAL
	.comm	_PORT_PHY_CFG_REQ_LPBK_NONE,4,2 ; @PORT_PHY_CFG_REQ_LPBK_NONE
	.comm	_PORT_PHY_CFG_REQ_ENABLES_LPBK,4,2 ; @PORT_PHY_CFG_REQ_ENABLES_LPBK
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_phy_loopback
.subsections_via_symbols
