	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assert_chv_phy_powergate
_assert_chv_phy_powergate:              ## @assert_chv_phy_powergate
	.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
	movl	%ecx, %r13d
	movq	(%rdi), %rax
	movl	%esi, %ecx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_15
## %bb.1:
	movl	%r8d, %ebx
	movq	%rdi, %r14
	movq	_DPIO_PHY0@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	addq	$24, %rsp
	jmp	LBB0_16
LBB0_2:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	movq	_DPIO_CH0@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.6:
	movq	__CHV_CMN_DW0_CH0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	__CHV_CMN_DW6_CH1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_vlv_dpio_get
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	callq	_vlv_dpio_read
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_vlv_dpio_put
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	cmpl	$15, %ebx
	je	LBB0_9
## %bb.10:
	testl	%ebx, %ebx
	movq	_DPIO_ANYDL_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %ebx
	movq	_DPIO_ALLDL_POWERDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%eax, %edx
	orl	%r9d, %edx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	_DPIO_ALLDL_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_DPIO_ANYDL_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%r9d, %edx
	movq	_DPIO_CH1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%esi, %ecx
	xorl	%ebx, %ebx
	orl	%r15d, %ecx
	cmovnel	%edx, %ebx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
LBB0_11:
	movq	_DPIO_CH0@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_12
## %bb.13:
	movq	_DPIO_ANYDL_POWERDOWN_SHIFT_CH0@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_DPIO_ANYDL_POWERDOWN_SHIFT_CH1@GOTPCREL(%rip), %rcx
LBB0_14:
	movb	(%rcx), %cl
	movl	%r15d, %esi
	sarl	%cl, %esi
	andl	%esi, %edx
	xorl	%edi, %edi
	cmpl	%ebx, %edx
	setne	%dil
	xorl	%edx, %edx
	testl	%r9d, %esi
	setne	%dl
	xorl	%ecx, %ecx
	testl	%eax, %esi
	setne	%cl
	xorl	%r8d, %r8d
	testl	%ebx, %r9d
	setne	%r8b
	xorl	%r9d, %r9d
	testl	%ebx, %eax
	setne	%r9b
	leaq	L_.str(%rip), %rsi
	pushq	%r15
	pushq	%r10
	callq	_WARN
	addq	$40, %rsp
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPIO_PHY0,4,2                  ## @DPIO_PHY0
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_PIPE_C,4,2                     ## @PIPE_C
	.comm	_DPIO_CH0,4,2                   ## @DPIO_CH0
	.comm	__CHV_CMN_DW0_CH0,4,2           ## @_CHV_CMN_DW0_CH0
	.comm	__CHV_CMN_DW6_CH1,4,2           ## @_CHV_CMN_DW6_CH1
	.comm	_DPIO_ALLDL_POWERDOWN,4,2       ## @DPIO_ALLDL_POWERDOWN
	.comm	_DPIO_ANYDL_POWERDOWN,4,2       ## @DPIO_ANYDL_POWERDOWN
	.comm	_DPIO_CH1,4,2                   ## @DPIO_CH1
	.comm	_DPIO_ANYDL_POWERDOWN_SHIFT_CH0,4,2 ## @DPIO_ANYDL_POWERDOWN_SHIFT_CH0
	.comm	_DPIO_ANYDL_POWERDOWN_SHIFT_CH1,4,2 ## @DPIO_ANYDL_POWERDOWN_SHIFT_CH1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected DPIO lane power down: all %d, any %d. Expected: all %d, any %d. (0x%x = 0x%08x)\n"

	.no_dead_strip	_assert_chv_phy_powergate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assert_chv_phy_powergate
_assert_chv_phy_powergate:              ; @assert_chv_phy_powergate
	.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
	ldr	x8, [x0]
	ldr	w8, [x8, w1, uxtw #2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x0
Lloh0:
	adrp	x8, _DPIO_PHY0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPIO_PHY0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PIPE_A@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIPE_A@GOTPAGEOFF]
Lloh5:
	adrp	x10, _PIPE_C@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PIPE_C@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, eq
	ldr	w21, [x8]
Lloh7:
	adrp	x25, _DPIO_CH0@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DPIO_CH0@GOTPAGEOFF]
Lloh9:
	adrp	x8, __CHV_CMN_DW0_CH0@GOTPAGE
Lloh10:
	ldr	x8, [x8, __CHV_CMN_DW0_CH0@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh11:
	adrp	x10, __CHV_CMN_DW6_CH1@GOTPAGE
Lloh12:
	ldr	x10, [x10, __CHV_CMN_DW6_CH1@GOTPAGEOFF]
	cmp	w9, w2
	csel	x8, x8, x10, eq
	ldr	w19, [x8]
	bl	_vlv_dpio_get
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	bl	_vlv_dpio_read
	mov	x21, x0
	mov	x0, x24
	bl	_vlv_dpio_put
	cbz	w23, LBB0_5
; %bb.2:
	cmp	w22, #15
	b.eq	LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _DPIO_ANYDL_POWERDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DPIO_ANYDL_POWERDOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w10, wzr, w8, eq
Lloh16:
	adrp	x9, _DPIO_ALLDL_POWERDOWN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DPIO_ALLDL_POWERDOWN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w11, w8, w9
	b	LBB0_6
LBB0_4:
	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
LBB0_5:
Lloh19:
	adrp	x8, _DPIO_ALLDL_POWERDOWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DPIO_ALLDL_POWERDOWN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
Lloh22:
	adrp	x8, _DPIO_ANYDL_POWERDOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DPIO_ANYDL_POWERDOWN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w11, w8, w9
Lloh25:
	adrp	x10, _DPIO_CH1@GOTPAGE
Lloh26:
	ldr	x10, [x10, _DPIO_CH1@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	cmp	w21, #0
	ccmp	w10, w20, #0, eq
	csel	w10, wzr, w11, eq
LBB0_6:
	ldr	w12, [x25]
Lloh28:
	adrp	x13, _DPIO_ANYDL_POWERDOWN_SHIFT_CH0@GOTPAGE
Lloh29:
	ldr	x13, [x13, _DPIO_ANYDL_POWERDOWN_SHIFT_CH0@GOTPAGEOFF]
Lloh30:
	adrp	x14, _DPIO_ANYDL_POWERDOWN_SHIFT_CH1@GOTPAGE
Lloh31:
	ldr	x14, [x14, _DPIO_ANYDL_POWERDOWN_SHIFT_CH1@GOTPAGEOFF]
	cmp	w12, w20
	csel	x12, x13, x14, eq
	ldr	w12, [x12]
	asr	w12, w21, w12
	and	w11, w11, w12
	cmp	w11, w10
	cset	w0, ne
	tst	w12, w9
	cset	w2, ne
	tst	w12, w8
	cset	w3, ne
	tst	w9, w10
	cset	w4, ne
	tst	w8, w10
	cset	w5, ne
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x6, x19
	mov	x7, x21
	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	_WARN
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DPIO_PHY0,4,2                  ; @DPIO_PHY0
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_PIPE_C,4,2                     ; @PIPE_C
	.comm	_DPIO_CH0,4,2                   ; @DPIO_CH0
	.comm	__CHV_CMN_DW0_CH0,4,2           ; @_CHV_CMN_DW0_CH0
	.comm	__CHV_CMN_DW6_CH1,4,2           ; @_CHV_CMN_DW6_CH1
	.comm	_DPIO_ALLDL_POWERDOWN,4,2       ; @DPIO_ALLDL_POWERDOWN
	.comm	_DPIO_ANYDL_POWERDOWN,4,2       ; @DPIO_ANYDL_POWERDOWN
	.comm	_DPIO_CH1,4,2                   ; @DPIO_CH1
	.comm	_DPIO_ANYDL_POWERDOWN_SHIFT_CH0,4,2 ; @DPIO_ANYDL_POWERDOWN_SHIFT_CH0
	.comm	_DPIO_ANYDL_POWERDOWN_SHIFT_CH1,4,2 ; @DPIO_ANYDL_POWERDOWN_SHIFT_CH1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected DPIO lane power down: all %d, any %d. Expected: all %d, any %d. (0x%x = 0x%08x)\n"

	.no_dead_strip	_assert_chv_phy_powergate
.subsections_via_symbols
