	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_port_phy_write
_bnxt_hwrm_port_phy_write:              ## @bnxt_hwrm_port_phy_write
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	cmpl	$68095, (%rdi)                  ## imm = 0x109FF
	jg	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_HWRM_PORT_PHY_MDIO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	4(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movl	%r12d, -80(%rbp)
	movl	%r15d, %edi
	andl	$31, %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	%r12d, %edi
	callq	_mdio_phy_id_is_c45
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, -76(%rbp)
	movl	%r12d, %edi
	callq	_mdio_phy_id_prtad
	movl	%eax, -80(%rbp)
	movl	%r12d, %edi
	callq	_mdio_phy_id_devad
	movl	%eax, -56(%rbp)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
LBB0_4:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$48, %edx
	callq	_hwrm_send_message
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HWRM_PORT_PHY_MDIO_WRITE,4,2   ## @HWRM_PORT_PHY_MDIO_WRITE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_port_phy_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_port_phy_write
_bnxt_hwrm_port_phy_write:              ; @bnxt_hwrm_port_phy_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	w8, [x0]
	mov	w9, #2559
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _HWRM_PORT_PHY_MDIO_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_PORT_PHY_MDIO_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, sp
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	w0, [x19, #4]
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	str	w22, [sp]
	and	w0, w21, #0x1f
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	x0, x22
	bl	_mdio_phy_id_is_c45
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #4]
	mov	x0, x22
	bl	_mdio_phy_id_prtad
	str	w0, [sp]
	mov	x0, x22
	bl	_mdio_phy_id_devad
	str	w0, [sp, #24]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #16]
LBB0_4:
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh6:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #48
	bl	_hwrm_send_message
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HWRM_PORT_PHY_MDIO_WRITE,4,2   ; @HWRM_PORT_PHY_MDIO_WRITE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_port_phy_write
.subsections_via_symbols
