	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_get_danger_status
_dpu_hw_get_danger_status:              ## @dpu_hw_get_danger_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_DANGER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DPU_REG_READ
	movl	%eax, %ecx
	andl	$3, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %edx
	shrl	$4, %edx
	andl	$3, %edx
	movq	8(%rbx), %rcx
	movq	_SSPP_VIG0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$3, %edx
	movq	_SSPP_VIG1@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$8, %edx
	andl	$3, %edx
	movq	_SSPP_VIG2@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$10, %edx
	andl	$3, %edx
	movq	_SSPP_VIG3@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$12, %edx
	andl	$3, %edx
	movq	_SSPP_RGB0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$14, %edx
	andl	$3, %edx
	movq	_SSPP_RGB1@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$16, %edx
	andl	$3, %edx
	movq	_SSPP_RGB2@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$18, %edx
	andl	$3, %edx
	movq	_SSPP_RGB3@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$20, %edx
	andl	$3, %edx
	movq	_SSPP_DMA0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$22, %edx
	andl	$3, %edx
	movq	_SSPP_DMA1@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$28, %edx
	andl	$3, %edx
	movq	_SSPP_DMA2@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$30, %edx
	movq	_SSPP_DMA3@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	%eax, %edx
	shrl	$24, %edx
	andl	$3, %edx
	movq	_SSPP_CURSOR0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	shrl	$26, %eax
	andl	$3, %eax
	movq	_SSPP_CURSOR1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DANGER_STATUS,4,2              ## @DANGER_STATUS
	.comm	_SSPP_VIG0,8,3                  ## @SSPP_VIG0
	.comm	_SSPP_VIG1,8,3                  ## @SSPP_VIG1
	.comm	_SSPP_VIG2,8,3                  ## @SSPP_VIG2
	.comm	_SSPP_VIG3,8,3                  ## @SSPP_VIG3
	.comm	_SSPP_RGB0,8,3                  ## @SSPP_RGB0
	.comm	_SSPP_RGB1,8,3                  ## @SSPP_RGB1
	.comm	_SSPP_RGB2,8,3                  ## @SSPP_RGB2
	.comm	_SSPP_RGB3,8,3                  ## @SSPP_RGB3
	.comm	_SSPP_DMA0,8,3                  ## @SSPP_DMA0
	.comm	_SSPP_DMA1,8,3                  ## @SSPP_DMA1
	.comm	_SSPP_DMA2,8,3                  ## @SSPP_DMA2
	.comm	_SSPP_DMA3,8,3                  ## @SSPP_DMA3
	.comm	_SSPP_CURSOR0,8,3               ## @SSPP_CURSOR0
	.comm	_SSPP_CURSOR1,8,3               ## @SSPP_CURSOR1
	.no_dead_strip	_dpu_hw_get_danger_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_get_danger_status
_dpu_hw_get_danger_status:              ; @dpu_hw_get_danger_status
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _DANGER_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DANGER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DPU_REG_READ
	and	w8, w0, #0x3
	str	w8, [x19]
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _SSPP_VIG0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SSPP_VIG0@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #6, #2
Lloh6:
	adrp	x10, _SSPP_VIG1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SSPP_VIG1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #8, #2
Lloh9:
	adrp	x10, _SSPP_VIG2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SSPP_VIG2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #10, #2
Lloh12:
	adrp	x10, _SSPP_VIG3@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SSPP_VIG3@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #12, #2
Lloh15:
	adrp	x10, _SSPP_RGB0@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SSPP_RGB0@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #14, #2
Lloh18:
	adrp	x10, _SSPP_RGB1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SSPP_RGB1@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #16, #2
Lloh21:
	adrp	x10, _SSPP_RGB2@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SSPP_RGB2@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #18, #2
Lloh24:
	adrp	x10, _SSPP_RGB3@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SSPP_RGB3@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #20, #2
Lloh27:
	adrp	x10, _SSPP_DMA0@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SSPP_DMA0@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #22, #2
Lloh30:
	adrp	x10, _SSPP_DMA1@GOTPAGE
Lloh31:
	ldr	x10, [x10, _SSPP_DMA1@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #28, #2
Lloh33:
	adrp	x10, _SSPP_DMA2@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SSPP_DMA2@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	lsr	w8, w0, #30
Lloh36:
	adrp	x10, _SSPP_DMA3@GOTPAGE
Lloh37:
	ldr	x10, [x10, _SSPP_DMA3@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #24, #2
Lloh39:
	adrp	x10, _SSPP_CURSOR0@GOTPAGE
Lloh40:
	ldr	x10, [x10, _SSPP_CURSOR0@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfx	w8, w0, #26, #2
Lloh42:
	adrp	x10, _SSPP_CURSOR1@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SSPP_CURSOR1@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_DANGER_STATUS,4,2              ; @DANGER_STATUS
	.comm	_SSPP_VIG0,8,3                  ; @SSPP_VIG0
	.comm	_SSPP_VIG1,8,3                  ; @SSPP_VIG1
	.comm	_SSPP_VIG2,8,3                  ; @SSPP_VIG2
	.comm	_SSPP_VIG3,8,3                  ; @SSPP_VIG3
	.comm	_SSPP_RGB0,8,3                  ; @SSPP_RGB0
	.comm	_SSPP_RGB1,8,3                  ; @SSPP_RGB1
	.comm	_SSPP_RGB2,8,3                  ; @SSPP_RGB2
	.comm	_SSPP_RGB3,8,3                  ; @SSPP_RGB3
	.comm	_SSPP_DMA0,8,3                  ; @SSPP_DMA0
	.comm	_SSPP_DMA1,8,3                  ; @SSPP_DMA1
	.comm	_SSPP_DMA2,8,3                  ; @SSPP_DMA2
	.comm	_SSPP_DMA3,8,3                  ; @SSPP_DMA3
	.comm	_SSPP_CURSOR0,8,3               ; @SSPP_CURSOR0
	.comm	_SSPP_CURSOR1,8,3               ; @SSPP_CURSOR1
	.no_dead_strip	_dpu_hw_get_danger_status
.subsections_via_symbols
