	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_write
_phy_write:                             ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PCI_ULI5263_ID@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	jne	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_writeby_cr10               ## TAILCALL
LBB0_1:
	movq	%r8, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_DCR9@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movl	$35, %ebx
	movq	_PHY_DATA_1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	movq	_PHY_DATA_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	testb	$16, %r13b
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$8, %r13b
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$4, %r13b
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$2, %r13b
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$1, %r13b
	movq	%r12, %rax
	movq	%rbx, %r13
	cmoveq	%rbx, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testb	$16, %bl
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$8, %bl
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$4, %bl
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$2, %bl
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	testb	$1, %bl
	movq	%r12, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	$32768, %r13d                   ## imm = 0x8000
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_phy_write_1bit
	movl	%r13d, %eax
	shrl	%eax
	cmpl	$1, %r13d
	movl	%eax, %r13d
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	testl	%ebx, %r13d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_DATA_0@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ULI5263_ID,8,3             ## @PCI_ULI5263_ID
	.comm	_DCR9,8,3                       ## @DCR9
	.comm	_PHY_DATA_1,4,2                 ## @PHY_DATA_1
	.comm	_PHY_DATA_0,4,2                 ## @PHY_DATA_0
	.no_dead_strip	_phy_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_write
_phy_write:                             ; @phy_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _PCI_ULI5263_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ULI5263_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x4
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_phy_writeby_cr10
LBB0_2:
	mov	x20, x4
Lloh3:
	adrp	x8, _DCR9@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCR9@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x21, x8, x0
	mov	w25, #35
Lloh6:
	adrp	x24, _PHY_DATA_1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PHY_DATA_1@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	subs	w25, w25, #1
	b.ne	LBB0_3
; %bb.4:
Lloh8:
	adrp	x25, _PHY_DATA_0@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PHY_DATA_0@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w23, #0x10
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w23, #0x8
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w23, #0x4
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w23, #0x2
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w23, #0x1
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w22, #0x10
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w22, #0x8
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w22, #0x4
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w22, #0x2
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	tst	w22, #0x1
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	mov	w22, #32768
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tst	w22, w19
	csel	x8, x25, x24, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_phy_write_1bit
	lsr	w8, w22, #1
	cmp	w22, #1
	mov	x22, x8
	b.hi	LBB0_5
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ULI5263_ID,8,3             ; @PCI_ULI5263_ID
	.comm	_DCR9,8,3                       ; @DCR9
	.comm	_PHY_DATA_1,4,2                 ; @PHY_DATA_1
	.comm	_PHY_DATA_0,4,2                 ; @PHY_DATA_0
	.no_dead_strip	_phy_write
.subsections_via_symbols
