	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_phy_registers
_dump_phy_registers:                    ## @dump_phy_registers
	.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	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	-248(%rbp), %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_read_phy_registers
	movl	-248(%rbp), %esi
	movl	-244(%rbp), %edx
	movl	-240(%rbp), %ecx
	movl	-236(%rbp), %r8d
	movl	-232(%rbp), %r9d
	movl	-228(%rbp), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-224(%rbp), %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	-220(%rbp), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	-216(%rbp), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-212(%rbp), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-208(%rbp), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-204(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-200(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-196(%rbp), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-192(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-188(%rbp), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-184(%rbp), %eax
	movq	%rax, -368(%rbp)                ## 8-byte Spill
	movl	-180(%rbp), %eax
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	movl	-176(%rbp), %eax
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	movl	-172(%rbp), %eax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	movl	-168(%rbp), %r14d
	movl	-164(%rbp), %r15d
	movl	-160(%rbp), %r12d
	movl	-156(%rbp), %ebx
	movl	-152(%rbp), %r13d
	movl	-148(%rbp), %r10d
	movl	-144(%rbp), %r11d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	%rbx
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	-344(%rbp)                      ## 8-byte Folded Reload
	pushq	-352(%rbp)                      ## 8-byte Folded Reload
	pushq	-360(%rbp)                      ## 8-byte Folded Reload
	pushq	-368(%rbp)                      ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	callq	_printf
	addq	$176, %rsp
	cmpl	$0, -220(%rbp)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	-336(%rbp), %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_read_phy_page
	movl	-336(%rbp), %esi
	movl	-332(%rbp), %edx
	movl	-328(%rbp), %ecx
	movl	-324(%rbp), %r8d
	movl	-320(%rbp), %r9d
	movl	-316(%rbp), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-312(%rbp), %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	-308(%rbp), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	-304(%rbp), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-300(%rbp), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-296(%rbp), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-292(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-288(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-284(%rbp), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-280(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-276(%rbp), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-272(%rbp), %r13d
	movl	-268(%rbp), %r10d
	movl	-264(%rbp), %r11d
	movl	-260(%rbp), %r14d
	movl	-256(%rbp), %r15d
	movl	-252(%rbp), %r12d
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	callq	_printf
	addq	$144, %rsp
	incl	%ebx
	cmpl	-220(%rbp), %ebx
	jl	LBB0_2
LBB0_3:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	leaq	-392(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_read_phy_page
	movl	-392(%rbp), %esi
	movq	-384(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$16, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	8(%rax), %edx
	movq	-376(%rbp), %rax
	movl	(%rax), %edi
	movl	4(%rax), %ecx
	shll	$16, %edi
	shll	$8, %ecx
	orl	%edi, %ecx
	orl	8(%rax), %ecx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	addq	$360, %rsp                      ## imm = 0x168
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Physical_ID:%d  R:%d  CPS:%d\nRHB:%d  IBR:%d  Gap_Count:%d\nExtended:%d Num_Ports:%d\nPHY_Speed:%d Delay:%d\nLCtrl:%d C:%d Jitter:%d Pwr_Class:%d\nWDIE:%d ISBR:%d CTOI:%d CPSI:%d STOI:%d PEI:%d EAA:%d EMC:%d\nMax_Legacy_SPD:%d BLINK:%d Bridge:%d\nPage_Select:%d Port_Select%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n=== page 0 port %d ===\n"

L_.str.3:                               ## @.str.3
	.asciz	"Astat:%d BStat:%d Ch:%d Con:%d RXOK:%d Dis:%d\nNegotiated_speed:%d PIE:%d Fault:%d Stanby_fault:%d Disscrm:%d B_Only:%d\nDC_connected:%d Max_port_speed:%d LPP:%d Cable_speed:%d\nConnection_unreliable:%d Beta_mode:%d\nPort_error:0x%x\nLoop_disable:%d In_standby:%d Hard_disable:%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Compliance:%d\nVendor_ID:0x%06x\nProduct_ID:0x%06x\n"

L_str:                                  ## @str
	.asciz	"=== base register ==="

L_str.6:                                ## @str.6
	.asciz	"\n=== page 1 ==="

	.no_dead_strip	_dump_phy_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_phy_registers
_dump_phy_registers:                    ; @dump_phy_registers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #448
	mov	x19, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	sub	x1, x29, #200
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_read_phy_registers
	ldp	w8, w9, [x29, #-200]
	ldp	w10, w11, [x29, #-192]
	ldp	w12, w13, [x29, #-184]
	ldp	w14, w15, [x29, #-176]
	ldp	w16, w17, [x29, #-168]
	ldp	w0, w1, [x29, #-160]
	ldp	w2, w3, [x29, #-152]
	ldp	w4, w5, [x29, #-144]
	ldp	w6, w7, [x29, #-136]
	ldp	w20, w21, [x29, #-128]
	ldp	w22, w23, [x29, #-120]
	ldp	w24, w25, [x29, #-112]
	ldp	w26, w27, [x29, #-104]
	ldur	w28, [x29, #-96]
	stp	x27, x28, [sp, #200]
	stp	x25, x26, [sp, #184]
	stp	x23, x24, [sp, #168]
	stp	x21, x22, [sp, #152]
	stp	x7, x20, [sp, #136]
	stp	x5, x6, [sp, #120]
	stp	x3, x4, [sp, #104]
	stp	x1, x2, [sp, #88]
	stp	x17, x0, [sp, #72]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	str	x8, [sp]
	bl	_printf
	ldur	w8, [x29, #-172]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x20, [sp]
	mov	x0, x21
	bl	_printf
	add	x1, sp, #240
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_read_phy_page
	ldp	w8, w9, [sp, #240]
	ldp	w10, w11, [sp, #248]
	ldr	w12, [sp, #256]
	ldr	w13, [sp, #260]
	ldr	w14, [sp, #264]
	ldr	w15, [sp, #268]
	ldr	w16, [sp, #272]
	ldr	w17, [sp, #276]
	ldr	w0, [sp, #280]
	ldr	w1, [sp, #284]
	ldr	w2, [sp, #288]
	ldr	w3, [sp, #292]
	ldr	w4, [sp, #296]
	ldr	w5, [sp, #300]
	ldr	w6, [sp, #304]
	ldr	w7, [sp, #308]
	ldr	w23, [sp, #312]
	ldr	w24, [sp, #316]
	ldr	w25, [sp, #320]
	ldr	w26, [sp, #324]
	stp	x25, x26, [sp, #160]
	stp	x23, x24, [sp, #144]
	stp	x6, x7, [sp, #128]
	stp	x4, x5, [sp, #112]
	stp	x2, x3, [sp, #96]
	stp	x0, x1, [sp, #80]
	stp	x16, x17, [sp, #64]
	stp	x14, x15, [sp, #48]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x22
	bl	_printf
	add	w20, w20, #1
	ldur	w8, [x29, #-172]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x0, l_str.6@PAGE
Lloh9:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	add	x1, sp, #216
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_read_phy_page
	ldp	x8, x9, [sp, #224]
	ldp	w10, w11, [x8]
	lsl	w11, w11, #8
	orr	w10, w11, w10, lsl #16
	ldr	w8, [x8, #8]
	orr	w8, w10, w8
	ldp	w10, w11, [x9]
	lsl	w11, w11, #8
	orr	w10, w11, w10, lsl #16
	ldr	w9, [x9, #8]
	orr	w9, w10, w9
	ldr	w10, [sp, #216]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	add	sp, sp, #448
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Physical_ID:%d  R:%d  CPS:%d\nRHB:%d  IBR:%d  Gap_Count:%d\nExtended:%d Num_Ports:%d\nPHY_Speed:%d Delay:%d\nLCtrl:%d C:%d Jitter:%d Pwr_Class:%d\nWDIE:%d ISBR:%d CTOI:%d CPSI:%d STOI:%d PEI:%d EAA:%d EMC:%d\nMax_Legacy_SPD:%d BLINK:%d Bridge:%d\nPage_Select:%d Port_Select%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n=== page 0 port %d ===\n"

l_.str.3:                               ; @.str.3
	.asciz	"Astat:%d BStat:%d Ch:%d Con:%d RXOK:%d Dis:%d\nNegotiated_speed:%d PIE:%d Fault:%d Stanby_fault:%d Disscrm:%d B_Only:%d\nDC_connected:%d Max_port_speed:%d LPP:%d Cable_speed:%d\nConnection_unreliable:%d Beta_mode:%d\nPort_error:0x%x\nLoop_disable:%d In_standby:%d Hard_disable:%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Compliance:%d\nVendor_ID:0x%06x\nProduct_ID:0x%06x\n"

l_str:                                  ; @str
	.asciz	"=== base register ==="

l_str.6:                                ; @str.6
	.asciz	"\n=== page 1 ==="

	.no_dead_strip	_dump_phy_registers
.subsections_via_symbols
