	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_ucode_trace
_dump_ucode_trace:                      ## @dump_ucode_trace
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	_CMD_STAT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread32be
	movslq	%eax, %r15
	movq	_STAT_RTAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread8
	movl	%eax, %r12d
	movq	_STAT_RCRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread8
	movl	%eax, %r13d
	movq	_RSP_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread32be
	movl	%eax, %r14d
	movq	_INT_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	addq	8(%rbx), %rdi
	callq	_ioread32be
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	-116(%rbp), %edi                ## 4-byte Reload
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%r14d, %r14d
                                        ## implicit-def: $rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r13d
	andl	$15, %r13d
	leaq	-112(%rbp), %rax
	cmoveq	%rax, %rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_TRACEBUF@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_ioread8
	movl	%eax, %r12d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_sprintf
	movl	%eax, %r15d
	cmpl	$15, %r13d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jne	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_TR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, %r12d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	leaq	1(%r14), %rax
	cmpq	$511, %r14                      ## imm = 0x1FF
	movq	%rax, %r14
	jne	LBB0_1
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMDSTAT:%08x RTAG=%02x RCRC=%02x RDATA=%02x #INT=%08x\n"

	.comm	_CMD_STAT_REG,8,3               ## @CMD_STAT_REG
	.comm	_STAT_RTAG,8,3                  ## @STAT_RTAG
	.comm	_STAT_RCRC,8,3                  ## @STAT_RCRC
	.comm	_RSP_DATA,8,3                   ## @RSP_DATA
	.comm	_INT_CNT,8,3                    ## @INT_CNT
	.comm	_TRACEBUF,8,3                   ## @TRACEBUF
L_.str.1:                               ## @.str.1
	.asciz	"%02x "

	.comm	_TR_END,4,2                     ## @TR_END
L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.no_dead_strip	_dump_ucode_trace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_ucode_trace
_dump_ucode_trace:                      ; @dump_ucode_trace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _CMD_STAT_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_STAT_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32be
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _STAT_RTAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STAT_RTAG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread8
	mov	x22, x0
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _STAT_RCRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STAT_RCRC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread8
	mov	x23, x0
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _RSP_DATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RSP_DATA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32be
	mov	x24, x0
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _INT_CNT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INT_CNT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32be
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x22, x23, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	mov	x25, #0
	add	x26, sp, #36
Lloh20:
	adrp	x27, _TRACEBUF@GOTPAGE
Lloh21:
	ldr	x27, [x27, _TRACEBUF@GOTPAGEOFF]
Lloh22:
	adrp	x20, l_.str.1@PAGE
Lloh23:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh24:
	adrp	x28, _TR_END@GOTPAGE
Lloh25:
	ldr	x28, [x28, _TR_END@GOTPAGEOFF]
                                        ; implicit-def: $x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ands	w21, w25, #0xf
	csel	x22, x26, x8, eq
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	add	x8, x8, x9
	add	x0, x25, x8
	bl	_ioread8
	mov	x23, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_sprintf
	mov	x24, x0
	cmp	w21, #15
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	cmp	w23, w8
	b.ne	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19]
	add	x2, sp, #36
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x28]
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w23, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x22, w24, sxtw
	add	x9, x25, #1
	cmp	x25, #511
	mov	x25, x9
	b.ne	LBB0_1
LBB0_6:
	ldr	x8, [sp, #88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMDSTAT:%08x RTAG=%02x RCRC=%02x RDATA=%02x #INT=%08x\n"

	.comm	_CMD_STAT_REG,8,3               ; @CMD_STAT_REG
	.comm	_STAT_RTAG,8,3                  ; @STAT_RTAG
	.comm	_STAT_RCRC,8,3                  ; @STAT_RCRC
	.comm	_RSP_DATA,8,3                   ; @RSP_DATA
	.comm	_INT_CNT,8,3                    ; @INT_CNT
	.comm	_TRACEBUF,8,3                   ; @TRACEBUF
l_.str.1:                               ; @.str.1
	.asciz	"%02x "

	.comm	_TR_END,4,2                     ; @TR_END
l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.no_dead_strip	_dump_ucode_trace
.subsections_via_symbols
