	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Amd7930_new_ph
_Amd7930_new_ph:                        ## @Amd7930_new_ph
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_stateHelper@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rdx
	movl	(%rax,%rcx,4), %esi
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax,%rsi,8), %eax
	movslq	%eax, %r9
	movq	_i430States@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r9,8), %rbx
	movq	_L1_DEB_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %r8d
	andl	$15, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_debugl1
	movq	16(%r14), %rdx
LBB0_2:
	movq	%rdx, 8(%r14)
	testb	$-16, %bl
	je	LBB0_5
## %bb.3:
	cmpq	$0, 24(%r14)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	$33, %esi
	movl	$194, %edx
	callq	_wByteAMD
	movq	%r14, %rdi
	movl	$33, %esi
	movl	$2, %edx
	callq	_wByteAMD
LBB0_5:
	andl	$15, %ebx
	decq	%rbx
	cmpq	$10, %rbx
	ja	LBB0_22
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_HW_RESET@GOTPCREL(%rip), %rax
	movq	_INDICATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_l1_msg
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Amd7930_get_state              ## TAILCALL
LBB0_8:
	movq	_HW_DEACTIVATE@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_HW_DEACTIVATE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	_HW_POWERUP@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_l1_msg
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$80, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Amd7930_ph_command             ## TAILCALL
LBB0_14:
	movq	_HW_RSYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_15:
	movq	_HW_INFO4_P8@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_16:
	movq	_HW_RSYNC@GOTPCREL(%rip), %rax
	movq	_INDICATION@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_18:
	movq	_HW_POWERUP@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_l1_msg
LBB0_19:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_Amd7930_ph_command
	movq	_HW_RSYNC@GOTPCREL(%rip), %rax
	movq	_INDICATION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_l1_msg
	movq	_HW_INFO2@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_l1_msg
	movq	_HW_INFO4_P8@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	jmp	LBB0_12
LBB0_21:
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_Amd7930_ph_command
	movq	$3, 8(%r14)
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	movq	_HW_INFO2@GOTPCREL(%rip), %rax
LBB0_10:
	movq	_INDICATION@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %esi
LBB0_12:
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_l1_msg                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_21
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_stateHelper,8,3                ## @stateHelper
	.comm	_i430States,8,3                 ## @i430States
	.comm	_L1_DEB_ISAC,4,2                ## @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AMD7930: new_ph %d, old_ph %d, message %d, index %d"

	.comm	_HW_RESET,4,2                   ## @HW_RESET
	.comm	_INDICATION,4,2                 ## @INDICATION
	.comm	_HW_DEACTIVATE,4,2              ## @HW_DEACTIVATE
	.comm	_CONFIRM,4,2                    ## @CONFIRM
	.comm	_HW_POWERUP,4,2                 ## @HW_POWERUP
L_.str.1:                               ## @.str.1
	.asciz	"HW_ENABLE REQUEST"

	.comm	_HW_RSYNC,4,2                   ## @HW_RSYNC
	.comm	_HW_INFO4_P8,4,2                ## @HW_INFO4_P8
L_.str.2:                               ## @.str.2
	.asciz	"HW_ENABLE REQ cleared if set"

	.comm	_HW_INFO2,4,2                   ## @HW_INFO2
L_.str.3:                               ## @.str.3
	.asciz	"T3 expired, HW_ENABLE REQ cleared"

	.no_dead_strip	_Amd7930_new_ph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Amd7930_new_ph
_Amd7930_new_ph:                        ; @Amd7930_new_ph
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _stateHelper@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stateHelper@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x3, x2, [x0, #8]
	ldr	w9, [x8, x3, lsl #2]
	ldr	w8, [x8, x2, lsl #2]
	add	w8, w8, w9, lsl #3
	sub	w8, w8, #1
Lloh3:
	adrp	x9, _i430States@GOTPAGE
Lloh4:
	ldr	x9, [x9, _i430States@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x9, w8, sxtw #3]
	ldr	w9, [x0]
Lloh6:
	adrp	x10, _L1_DEB_ISAC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _L1_DEB_ISAC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	sxtw	x5, w8
	and	x4, x20, #0xf
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
	ldr	x2, [x19, #16]
LBB0_2:
	str	x2, [x19, #8]
	tst	x20, #0xf0
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #33
	mov	w2, #194
	bl	_wByteAMD
	mov	x0, x19
	mov	w1, #33
	mov	w2, #2
	bl	_wByteAMD
LBB0_5:
	and	x8, x20, #0xf
	sub	x8, x8, #1
	cmp	x8, #10
	b.hi	LBB0_18
; %bb.6:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh13:
	adrp	x8, _HW_RESET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HW_RESET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _INDICATION@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INDICATION@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_l1_msg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Amd7930_get_state
LBB0_8:
Lloh19:
	adrp	x8, _HW_DEACTIVATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HW_DEACTIVATE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
	b	LBB0_21
LBB0_9:
Lloh23:
	adrp	x8, _HW_DEACTIVATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HW_DEACTIVATE@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
Lloh25:
	adrp	x8, _HW_POWERUP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HW_POWERUP@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_l1_msg
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #80
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Amd7930_ph_command
LBB0_11:
Lloh33:
	adrp	x8, _HW_RSYNC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HW_RSYNC@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
Lloh35:
	adrp	x8, _HW_INFO4_P8@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HW_INFO4_P8@GOTPAGEOFF]
	b	LBB0_20
LBB0_13:
Lloh37:
	adrp	x8, _HW_RSYNC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HW_RSYNC@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x20, _INDICATION@GOTPAGE
Lloh41:
	ldr	x20, [x20, _INDICATION@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh42:
	adrp	x8, _HW_POWERUP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HW_POWERUP@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_l1_msg
LBB0_15:
Lloh48:
	adrp	x2, l_.str.2@PAGE
Lloh49:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #64
	bl	_Amd7930_ph_command
Lloh50:
	adrp	x8, _HW_RSYNC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HW_RSYNC@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x20, _INDICATION@GOTPAGE
Lloh54:
	ldr	x20, [x20, _INDICATION@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_l1_msg
Lloh55:
	adrp	x8, _HW_INFO2@GOTPAGE
Lloh56:
	ldr	x8, [x8, _HW_INFO2@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
LBB0_16:
	ldr	w9, [x20]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	bl	_l1_msg
Lloh58:
	adrp	x8, _HW_INFO4_P8@GOTPAGE
Lloh59:
	ldr	x8, [x8, _HW_INFO4_P8@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	ldr	w9, [x20]
	b	LBB0_22
LBB0_17:
Lloh61:
	adrp	x2, l_.str.3@PAGE
Lloh62:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #64
	bl	_Amd7930_ph_command
	mov	w8, #3
	str	x8, [x19, #8]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh63:
	adrp	x8, _HW_INFO2@GOTPAGE
Lloh64:
	ldr	x8, [x8, _HW_INFO2@GOTPAGEOFF]
LBB0_20:
Lloh65:
	adrp	x9, _INDICATION@GOTPAGE
Lloh66:
	ldr	x9, [x9, _INDICATION@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	ldr	w9, [x9]
LBB0_22:
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_l1_msg
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
                                        ; -- End function
	.comm	_stateHelper,8,3                ; @stateHelper
	.comm	_i430States,8,3                 ; @i430States
	.comm	_L1_DEB_ISAC,4,2                ; @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AMD7930: new_ph %d, old_ph %d, message %d, index %d"

	.comm	_HW_RESET,4,2                   ; @HW_RESET
	.comm	_INDICATION,4,2                 ; @INDICATION
	.comm	_HW_DEACTIVATE,4,2              ; @HW_DEACTIVATE
	.comm	_CONFIRM,4,2                    ; @CONFIRM
	.comm	_HW_POWERUP,4,2                 ; @HW_POWERUP
l_.str.1:                               ; @.str.1
	.asciz	"HW_ENABLE REQUEST"

	.comm	_HW_RSYNC,4,2                   ; @HW_RSYNC
	.comm	_HW_INFO4_P8,4,2                ; @HW_INFO4_P8
l_.str.2:                               ; @.str.2
	.asciz	"HW_ENABLE REQ cleared if set"

	.comm	_HW_INFO2,4,2                   ; @HW_INFO2
l_.str.3:                               ; @.str.3
	.asciz	"T3 expired, HW_ENABLE REQ cleared"

	.no_dead_strip	_Amd7930_new_ph
.subsections_via_symbols
