	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_write_reg
_phy_write_reg:                         ## @phy_write_reg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movl	%esi, %ebx
	andl	$1, %ebx
	movq	_RATE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	%r8d, %esi
	movq	%rdi, %r14
	movq	_WRITE_CMD@GOTPCREL(%rip), %rdi
	andl	$15, %eax
	movq	_LANE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	(%rdi), %ebx
	movzbl	%dl, %edx
	movq	_ADR_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	orl	%edx, %ebx
	movq	_H1_PCIEPHYDOUTR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_rcar_pci_write_reg
	movq	_H1_PCIEPHYADRR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rcar_pci_write_reg
	movq	%r14, %rdi
	callq	_phy_wait_for_ack
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rcar_pci_write_reg
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rcar_pci_write_reg
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_wait_for_ack               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_CMD,4,2                  ## @WRITE_CMD
	.comm	_RATE_POS,4,2                   ## @RATE_POS
	.comm	_LANE_POS,4,2                   ## @LANE_POS
	.comm	_ADR_POS,4,2                    ## @ADR_POS
	.comm	_H1_PCIEPHYDOUTR,4,2            ## @H1_PCIEPHYDOUTR
	.comm	_H1_PCIEPHYADRR,4,2             ## @H1_PCIEPHYADRR
	.no_dead_strip	_phy_write_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_write_reg
_phy_write_reg:                         ; @phy_write_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	and	w8, w1, #0x1
Lloh0:
	adrp	x9, _WRITE_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WRITE_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RATE_POS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RATE_POS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w8, w9
	and	w9, w3, #0xf
Lloh6:
	adrp	x10, _LANE_POS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LANE_POS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	and	w9, w2, #0xff
Lloh9:
	adrp	x10, _ADR_POS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADR_POS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w20, w8, w9
Lloh12:
	adrp	x21, _H1_PCIEPHYDOUTR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _H1_PCIEPHYDOUTR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x4
	bl	_rcar_pci_write_reg
Lloh14:
	adrp	x22, _H1_PCIEPHYADRR@GOTPAGE
Lloh15:
	ldr	x22, [x22, _H1_PCIEPHYADRR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_pci_write_reg
	mov	x0, x19
	bl	_phy_wait_for_ack
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_rcar_pci_write_reg
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_rcar_pci_write_reg
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phy_wait_for_ack
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_CMD,4,2                  ; @WRITE_CMD
	.comm	_RATE_POS,4,2                   ; @RATE_POS
	.comm	_LANE_POS,4,2                   ; @LANE_POS
	.comm	_ADR_POS,4,2                    ; @ADR_POS
	.comm	_H1_PCIEPHYDOUTR,4,2            ; @H1_PCIEPHYDOUTR
	.comm	_H1_PCIEPHYADRR,4,2             ; @H1_PCIEPHYADRR
	.no_dead_strip	_phy_write_reg
.subsections_via_symbols
