	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_set_link_common
_bnxt_hwrm_set_link_common:             ## @bnxt_hwrm_set_link_common
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_BNXT_AUTONEG_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	4(%rdi), %r14d
	movq	_PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movq	_PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, 16(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	_PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, 16(%rbx)
	movq	_PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	8(%rdi), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	_PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%rbx)
	movq	_PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_AUTONEG_SPEED,4,2         ## @BNXT_AUTONEG_SPEED
	.comm	_PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK,4,2 ## @PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK
	.comm	_PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK,4,2 ## @PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK
	.comm	_PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE,4,2 ## @PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG,4,2 ## @PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG
	.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
	.no_dead_strip	_bnxt_hwrm_set_link_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_set_link_common
_bnxt_hwrm_set_link_common:             ; @bnxt_hwrm_set_link_common
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_AUTONEG_SPEED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_AUTONEG_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x0, #4]
Lloh3:
	adrp	x8, _PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
Lloh6:
	adrp	x8, _PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19, #16]
	orr	w8, w8, w0
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19, #24]
Lloh9:
	adrp	x8, _PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19, #16]
	orr	w8, w8, w0
	str	w8, [x19, #16]
Lloh12:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x0, #8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh14:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_FORCE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
Lloh16:
	adrp	x8, _PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORT_PHY_CFG_REQ_FLAGS_RESET_PHY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_AUTONEG_SPEED,4,2         ; @BNXT_AUTONEG_SPEED
	.comm	_PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK,4,2 ; @PORT_PHY_CFG_REQ_AUTO_MODE_SPEED_MASK
	.comm	_PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK,4,2 ; @PORT_PHY_CFG_REQ_ENABLES_AUTO_LINK_SPEED_MASK
	.comm	_PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE,4,2 ; @PORT_PHY_CFG_REQ_ENABLES_AUTO_MODE
	.comm	_PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG,4,2 ; @PORT_PHY_CFG_REQ_FLAGS_RESTART_AUTONEG
	.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
	.no_dead_strip	_bnxt_hwrm_set_link_common
.subsections_via_symbols
