	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_mdio_cmd_write
_hns_mdio_cmd_write:                    ## @hns_mdio_cmd_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_MDIO_ST_CLAUSE_22@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_MDIO_ST_CLAUSE_45@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	movq	_MDIO_CMD_ST_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_MDIO_CMD_OP_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_MDIO_CMD_PRTAD_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MDIO_CMD_PRTAD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MDIO_CMD_DEVAD_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r8d
	movq	_MDIO_CMD_DEVAD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	orl	%edx, %eax
	orl	%eax, %r8d
	orl	%esi, %r8d
	movq	_MDIO_CMD_START_B@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r8d
	movq	_MDIO_COMMAND_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r8d, %edx
	popq	%rbp
	jmp	_MDIO_WRITE_REG                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_ST_CLAUSE_45,4,2          ## @MDIO_ST_CLAUSE_45
	.comm	_MDIO_ST_CLAUSE_22,4,2          ## @MDIO_ST_CLAUSE_22
	.comm	_MDIO_CMD_ST_S,4,2              ## @MDIO_CMD_ST_S
	.comm	_MDIO_CMD_OP_S,4,2              ## @MDIO_CMD_OP_S
	.comm	_MDIO_CMD_PRTAD_M,4,2           ## @MDIO_CMD_PRTAD_M
	.comm	_MDIO_CMD_PRTAD_S,4,2           ## @MDIO_CMD_PRTAD_S
	.comm	_MDIO_CMD_DEVAD_M,4,2           ## @MDIO_CMD_DEVAD_M
	.comm	_MDIO_CMD_DEVAD_S,4,2           ## @MDIO_CMD_DEVAD_S
	.comm	_MDIO_CMD_START_B,4,2           ## @MDIO_CMD_START_B
	.comm	_MDIO_COMMAND_REG,4,2           ## @MDIO_COMMAND_REG
	.no_dead_strip	_hns_mdio_cmd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_mdio_cmd_write
_hns_mdio_cmd_write:                    ; @hns_mdio_cmd_write
	.cfi_startproc
; %bb.0:
	cmp	w1, #0
Lloh0:
	adrp	x8, _MDIO_ST_CLAUSE_45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_ST_CLAUSE_45@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MDIO_ST_CLAUSE_22@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MDIO_ST_CLAUSE_22@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _MDIO_CMD_ST_S@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MDIO_CMD_ST_S@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh7:
	adrp	x9, _MDIO_CMD_OP_S@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_CMD_OP_S@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w2, w9
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _MDIO_CMD_PRTAD_M@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MDIO_CMD_PRTAD_M@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w3
Lloh13:
	adrp	x10, _MDIO_CMD_PRTAD_S@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MDIO_CMD_PRTAD_S@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _MDIO_CMD_DEVAD_M@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDIO_CMD_DEVAD_M@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w9, w9, w4
Lloh19:
	adrp	x10, _MDIO_CMD_DEVAD_S@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MDIO_CMD_DEVAD_S@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _MDIO_CMD_START_B@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MDIO_CMD_START_B@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w2, w8, w9
Lloh25:
	adrp	x8, _MDIO_COMMAND_REG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_COMMAND_REG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	b	_MDIO_WRITE_REG
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_ST_CLAUSE_45,4,2          ; @MDIO_ST_CLAUSE_45
	.comm	_MDIO_ST_CLAUSE_22,4,2          ; @MDIO_ST_CLAUSE_22
	.comm	_MDIO_CMD_ST_S,4,2              ; @MDIO_CMD_ST_S
	.comm	_MDIO_CMD_OP_S,4,2              ; @MDIO_CMD_OP_S
	.comm	_MDIO_CMD_PRTAD_M,4,2           ; @MDIO_CMD_PRTAD_M
	.comm	_MDIO_CMD_PRTAD_S,4,2           ; @MDIO_CMD_PRTAD_S
	.comm	_MDIO_CMD_DEVAD_M,4,2           ; @MDIO_CMD_DEVAD_M
	.comm	_MDIO_CMD_DEVAD_S,4,2           ; @MDIO_CMD_DEVAD_S
	.comm	_MDIO_CMD_START_B,4,2           ; @MDIO_CMD_START_B
	.comm	_MDIO_COMMAND_REG,4,2           ; @MDIO_COMMAND_REG
	.no_dead_strip	_hns_mdio_cmd_write
.subsections_via_symbols
