	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function investigate_hazard
LCPI0_0:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_investigate_hazard:                    ## @investigate_hazard
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %esi
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_seqs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx,%rbx,8), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%esi, %r15d
	callq	_finish_current_sequence
	movl	%r15d, %esi
	testl	%eax, %eax
	jne	LBB0_47
LBB0_3:
	addq	$-128, %rbx
	cmpq	$24, %rbx
	ja	LBB0_6
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_46
LBB0_6:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_43
LBB0_7:
	movq	_z_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	testl	$49152, %esi                    ## imm = 0xC000
	je	LBB0_46
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_42
LBB0_9:
	movq	_z_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movb	%sil, 11(%r14)
	jmp	LBB0_46
LBB0_10:
	movq	_z_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movzbl	11(%r14), %eax
	shll	$24, %eax
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	orl	%eax, %esi
	movl	%esi, 8(%r14)
	jmp	LBB0_46
LBB0_11:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	andl	$3, %eax
	cmpl	$2, %eax
	jne	LBB0_44
## %bb.12:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_42
LBB0_13:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	movl	%esi, %ecx
	movd	%esi, %xmm0
	shrl	$4, %esi
	pinsrd	$1, %esi, %xmm0
	movq	24(%r14), %rdx
	shrl	$12, %eax
	shrl	$8, %ecx
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movq	64(%r14), %rax
	pslld	$23, %xmm0
	paddd	LCPI0_1(%rip), %xmm0
	movq	(%rax,%rdx,8), %rax
	cvttps2dq	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	jmp	LBB0_46
LBB0_14:
	movl	%esi, %ecx
	movl	%esi, %eax
	movl	%esi, %edx
	movl	%esi, %ebx
	movd	%esi, %xmm0
	shrl	$4, %esi
	pinsrd	$1, %esi, %xmm0
	movq	_tex_address@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%r14)
	movq	24(%r14), %rsi
	movq	64(%r14), %rdi
	shrl	$20, %ecx
	andb	$15, %cl
	shrl	$8, %ebx
	pinsrd	$2, %ebx, %xmm0
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	(%rdi,%rsi,8), %rsi
	movl	$1, %edi
	shrl	$16, %eax
	andb	$15, %al
	movl	%eax, %ecx
	shll	%cl, %edi
	shrl	$12, %edx
	pinsrd	$3, %edx, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movl	%ebx, 20(%rsi)
	pslld	$23, %xmm0
	paddd	LCPI0_1(%rip), %xmm0
	movl	%edi, 16(%rsi)
	cvttps2dq	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
	jmp	LBB0_46
LBB0_15:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movb	%sil, 39(%rax)
	jmp	LBB0_46
LBB0_16:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	sarl	$24, %eax
	movq	_HC_SubA_HTXnL0Pit@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jne	LBB0_40
## %bb.17:
	movq	_HC_HTXnEnPit_MASK@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_40
## %bb.18:
	movq	_HC_HTXnLnPit_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	24(%r14), %rax
	movq	48(%r14), %rcx
	movq	(%rcx,%rax,8), %rcx
	movl	%esi, (%rcx)
	movq	56(%r14), %rcx
	movl	$1, (%rcx,%rax,4)
	jmp	LBB0_46
LBB0_19:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	andl	$63, %eax
	movq	32(%r14), %rcx
	movslq	24(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
	shrl	$6, %esi
	andl	$63, %esi
	movq	40(%r14), %rax
	movl	%esi, (%rax,%rdx,4)
	jmp	LBB0_46
LBB0_20:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	sarl	$24, %eax
	leal	(%rax,%rax,2), %eax
	movq	16(%r14), %rcx
	movl	%esi, %ebx
	movq	24(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	cltq
	movb	%bl, -381(%rcx,%rax,4)
	movb	%bh, -377(%rcx,%rax,4)
	shrl	$16, %ebx
	movb	%bl, -373(%rcx,%rax,4)
	jmp	LBB0_46
LBB0_21:
	movq	_tex_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%esi, %eax
	sarl	$24, %eax
	movq	16(%r14), %rcx
	movq	24(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	cltq
	movzbl	3(%rcx,%rax,4), %edx
	shll	$24, %edx
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	orl	%edx, %esi
	jmp	LBB0_45
LBB0_22:
	shrl	$3, %esi
	andl	$1, %esi
	movl	%esi, 92(%r14)
	jmp	LBB0_46
LBB0_23:
	movzwl	%si, %eax
	movl	%eax, 88(%r14)
	jmp	LBB0_46
LBB0_24:
	movq	_HALCYON_HEADER2@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%esi, (%rcx)
	je	LBB0_47
## %bb.25:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_42
LBB0_26:
	movq	_HALCYON_HEADER2@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	sete	%al
	jmp	LBB0_47
LBB0_27:
	movq	_HALCYON_HEADER1MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_HALCYON_HEADER1@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %esi
	je	LBB0_47
## %bb.28:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_42
LBB0_29:
	movq	_HALCYON_HEADER1MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_HALCYON_HEADER1@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %esi
	sete	%al
	jmp	LBB0_47
LBB0_30:
	movq	_HALCYON_FIREMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_HALCYON_FIRECMD@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %esi
	je	LBB0_47
## %bb.31:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_42
LBB0_32:
	movq	_HC_DUMMY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	je	LBB0_47
## %bb.33:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_42
LBB0_34:
	xorl	%eax, %eax
	cmpl	$-572662307, %esi               ## imm = 0xDDDDDDDD
	je	LBB0_47
## %bb.35:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_42
LBB0_36:
	movq	_dest_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	testl	$49152, %esi                    ## imm = 0xC000
	je	LBB0_46
## %bb.37:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_42
LBB0_38:
	movq	_dest_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movb	%sil, 15(%r14)
	jmp	LBB0_46
LBB0_39:
	movq	_dest_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movzbl	15(%r14), %eax
	shll	$24, %eax
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	orl	%eax, %esi
	movl	%esi, 12(%r14)
	jmp	LBB0_46
LBB0_40:
	movq	_HC_HTXnLnPitE_MASK@GOTPCREL(%rip), %rcx
	movl	%esi, %edi
	movl	(%rcx), %edx
	andl	%esi, %edx
	movq	_HC_HTXnLnPitE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	24(%r14), %rcx
	movq	48(%r14), %rsi
	movq	(%rsi,%rcx,8), %rsi
	cltq
	movl	%edx, (%rsi,%rax,4)
	movq	56(%r14), %rax
	movl	$0, (%rax,%rcx,4)
	testl	$1048575, %edi                  ## imm = 0xFFFFF
	je	LBB0_46
## %bb.41:
	leaq	L_.str.7(%rip), %rdi
LBB0_42:
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_43:
	movl	$2, %eax
	jmp	LBB0_47
LBB0_44:
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	sete	%cl
	movl	%ecx, 72(%r14)
	shrl	$16, %esi
	andl	$7, %esi
	movq	24(%r14), %rax
	movq	80(%r14), %rcx
LBB0_45:
	movl	%esi, (%rcx,%rax,4)
LBB0_46:
	xorl	%eax, %eax
LBB0_47:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_29
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_34
	.long	L0_0_set_36
	.long	L0_0_set_38
	.long	L0_0_set_39
	.end_data_region
                                        ## -- End function
	.comm	_seqs,8,3                       ## @seqs
	.comm	_HALCYON_HEADER2,4,2            ## @HALCYON_HEADER2
	.comm	_HALCYON_HEADER1MASK,4,2        ## @HALCYON_HEADER1MASK
	.comm	_HALCYON_HEADER1,4,2            ## @HALCYON_HEADER1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal DMA HALCYON_HEADER2 command\n"

L_.str.1:                               ## @.str.1
	.asciz	"Illegal DMA HALCYON_HEADER1 command\n"

	.comm	_HALCYON_FIREMASK,4,2           ## @HALCYON_FIREMASK
	.comm	_HALCYON_FIRECMD,4,2            ## @HALCYON_FIRECMD
L_.str.2:                               ## @.str.2
	.asciz	"Illegal DMA HALCYON_FIRECMD command\n"

	.comm	_HC_DUMMY,4,2                   ## @HC_DUMMY
L_.str.3:                               ## @.str.3
	.asciz	"Illegal DMA HC_DUMMY command\n"

L_.str.4:                               ## @.str.4
	.asciz	"Illegal DMA 0xdddddddd command\n"

	.comm	_z_address,8,3                  ## @z_address
L_.str.5:                               ## @.str.5
	.asciz	"Attempt to place Z buffer in system memory\n"

	.comm	_dest_address,8,3               ## @dest_address
L_.str.6:                               ## @.str.6
	.asciz	"Attempt to place 3D drawing buffer in system memory\n"

	.comm	_tex_address,8,3                ## @tex_address
	.comm	_HC_SubA_HTXnL0Pit,4,2          ## @HC_SubA_HTXnL0Pit
	.comm	_HC_HTXnEnPit_MASK,4,2          ## @HC_HTXnEnPit_MASK
	.comm	_HC_HTXnLnPit_MASK,4,2          ## @HC_HTXnLnPit_MASK
	.comm	_HC_HTXnLnPitE_MASK,4,2         ## @HC_HTXnLnPitE_MASK
	.comm	_HC_HTXnLnPitE_SHIFT,4,2        ## @HC_HTXnLnPitE_SHIFT
L_.str.7:                               ## @.str.7
	.asciz	"Unimplemented texture level 0 pitch mode.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Attempt to fetch texture from system memory.\n"

L_.str.9:                               ## @.str.9
	.asciz	"Illegal DMA data: 0x%x\n"

	.no_dead_strip	_investigate_hazard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function investigate_hazard
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967288                      ; 0xfffffff8
lCPI0_2:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967288                      ; 0xfffffff8
	.long	4294967284                      ; 0xfffffff4
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_investigate_hazard:                    ; @investigate_hazard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x2]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _seqs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _seqs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_finish_current_sequence
	cbnz	w0, LBB0_46
LBB0_3:
	sub	x8, x21, #128
	cmp	x8, #24
	b.hi	LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w0, #0
Lloh5:
	adrp	x8, _tex_address@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_46
LBB0_6:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.9@PAGE
Lloh9:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_45
LBB0_7:
Lloh10:
	adrp	x8, _z_address@GOTPAGE
Lloh11:
	ldr	x8, [x8, _z_address@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20]
	tst	w19, #0xc000
	b.eq	LBB0_42
; %bb.8:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_45
LBB0_9:
	mov	w0, #0
Lloh15:
	adrp	x8, _z_address@GOTPAGE
Lloh16:
	ldr	x8, [x8, _z_address@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20]
	strb	w19, [x20, #11]
	b	LBB0_46
LBB0_10:
	mov	w0, #0
Lloh18:
	adrp	x8, _z_address@GOTPAGE
Lloh19:
	ldr	x8, [x8, _z_address@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x20]
	ldrb	w8, [x20, #11]
	bfi	w19, w8, #24, #8
	str	w19, [x20, #8]
	b	LBB0_46
LBB0_11:
Lloh21:
	adrp	x8, _tex_address@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x20]
	and	w8, w19, #0x3
	cmp	w8, #2
	b.ne	LBB0_43
; %bb.12:
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_45
LBB0_13:
	mov	w0, #0
	ldr	x8, [x20, #64]
	ldr	x9, [x20, #24]
	ldr	x8, [x8, x9, lsl #3]
Lloh26:
	adrp	x9, _tex_address@GOTPAGE
Lloh27:
	ldr	x9, [x9, _tex_address@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x9, [x20]
	ubfx	w9, w19, #12, #4
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x8, #36]
Lloh29:
	adrp	x9, lCPI0_0@PAGE
Lloh30:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	dup.2s	v1, w19
	ushl.2s	v0, v1, v0
	movi.2s	v1, #15
	and.8b	v0, v0, v1
	movi.2s	v1, #1
	ushl.2s	v0, v1, v0
	stur	d0, [x8, #28]
	and	w9, w19, #0xf
	lsl	w9, w10, w9
	str	w9, [x8, #24]
	b	LBB0_46
LBB0_14:
	mov	w0, #0
	ldr	x8, [x20, #64]
	ldr	x9, [x20, #24]
	ldr	x8, [x8, x9, lsl #3]
Lloh31:
	adrp	x9, _tex_address@GOTPAGE
Lloh32:
	ldr	x9, [x9, _tex_address@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	x9, [x20]
	ubfx	w9, w19, #20, #4
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x8, #20]
Lloh34:
	adrp	x9, lCPI0_1@PAGE
Lloh35:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
	dup.4s	v1, w19
	ushl.4s	v0, v1, v0
	movi.4s	v1, #15
	and.16b	v0, v0, v1
	movi.4s	v1, #1
	ushl.4s	v0, v1, v0
	stur	q0, [x8, #4]
	and	w9, w19, #0xf
	lsl	w9, w10, w9
	str	w9, [x8]
	b	LBB0_46
LBB0_15:
	mov	w0, #0
Lloh36:
	adrp	x8, _tex_address@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x8, x9, [x20, #16]
	ldr	x8, [x8, x9, lsl #3]
	strb	w19, [x8, #39]
	b	LBB0_46
LBB0_16:
Lloh39:
	adrp	x8, _tex_address@GOTPAGE
Lloh40:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	x8, [x20]
	asr	w8, w19, #24
Lloh42:
	adrp	x9, _HC_SubA_HTXnL0Pit@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HC_SubA_HTXnL0Pit@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	subs	w8, w8, w9
	b.ne	LBB0_40
; %bb.17:
Lloh45:
	adrp	x9, _HC_HTXnEnPit_MASK@GOTPAGE
Lloh46:
	ldr	x9, [x9, _HC_HTXnEnPit_MASK@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_40
; %bb.18:
	mov	w0, #0
Lloh48:
	adrp	x8, _HC_HTXnLnPit_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _HC_HTXnLnPit_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	and	w8, w8, w19
	ldr	x9, [x20, #24]
	ldp	x10, x11, [x20, #48]
	ldr	x10, [x10, x9, lsl #3]
	str	w8, [x10]
	mov	w8, #1
	str	w8, [x11, x9, lsl #2]
	b	LBB0_46
LBB0_19:
	mov	w0, #0
Lloh51:
	adrp	x8, _tex_address@GOTPAGE
Lloh52:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	str	x8, [x20]
	and	w8, w19, #0x3f
	ldp	x10, x9, [x20, #24]
	sbfiz	x10, x10, #2, #32
	str	w8, [x9, x10]
	ubfx	w8, w19, #6, #6
	ldr	x9, [x20, #40]
	str	w8, [x9, x10]
	b	LBB0_46
LBB0_20:
	mov	w0, #0
Lloh54:
	adrp	x8, _tex_address@GOTPAGE
Lloh55:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x8, x9, [x20, #16]
	ldr	x8, [x8, x9, lsl #3]
	asr	w9, w19, #24
	add	w9, w9, w9, lsl #1
	sub	w9, w9, #96
	add	x8, x8, w9, sxtw #2
	strb	w19, [x8, #3]
	dup.2s	v0, w19
Lloh57:
	adrp	x9, lCPI0_2@PAGE
Lloh58:
	ldr	d1, [x9, lCPI0_2@PAGEOFF]
	ushl.2s	v0, v0, v1
	ldur	d1, [x8, #4]
	movi	d2, #0xffffff00ffffff
	bit.8b	v0, v1, v2
	stur	d0, [x8, #4]
	b	LBB0_46
LBB0_21:
	mov	w0, #0
Lloh59:
	adrp	x8, _tex_address@GOTPAGE
Lloh60:
	ldr	x8, [x8, _tex_address@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [x20]
	asr	w8, w19, #24
	ldp	x9, x10, [x20, #16]
	ldr	x9, [x9, x10, lsl #3]
	add	x8, x9, w8, sxtw #2
	ldrb	w9, [x8, #3]
	bfi	w19, w9, #24, #8
	str	w19, [x8]
	b	LBB0_46
LBB0_22:
	mov	w0, #0
	ubfx	w8, w19, #3, #1
	str	w8, [x20, #92]
	b	LBB0_46
LBB0_23:
	mov	w0, #0
	and	w8, w19, #0xffff
	str	w8, [x20, #88]
	b	LBB0_46
LBB0_24:
Lloh62:
	adrp	x8, _HALCYON_HEADER2@GOTPAGE
Lloh63:
	ldr	x8, [x8, _HALCYON_HEADER2@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_31
; %bb.25:
Lloh65:
	adrp	x0, l_.str@PAGE
Lloh66:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_45
LBB0_26:
Lloh67:
	adrp	x8, _HALCYON_HEADER2@GOTPAGE
Lloh68:
	ldr	x8, [x8, _HALCYON_HEADER2@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, eq
	b	LBB0_46
LBB0_27:
Lloh70:
	adrp	x8, _HALCYON_HEADER1MASK@GOTPAGE
Lloh71:
	ldr	x8, [x8, _HALCYON_HEADER1MASK@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh73:
	adrp	x9, _HALCYON_HEADER1@GOTPAGE
Lloh74:
	ldr	x9, [x9, _HALCYON_HEADER1@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.28:
Lloh76:
	adrp	x0, l_.str.1@PAGE
Lloh77:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_45
LBB0_29:
Lloh78:
	adrp	x8, _HALCYON_HEADER1MASK@GOTPAGE
Lloh79:
	ldr	x8, [x8, _HALCYON_HEADER1MASK@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh81:
	adrp	x9, _HALCYON_HEADER1@GOTPAGE
Lloh82:
	ldr	x9, [x9, _HALCYON_HEADER1@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_46
LBB0_30:
Lloh84:
	adrp	x8, _HALCYON_FIREMASK@GOTPAGE
Lloh85:
	ldr	x8, [x8, _HALCYON_FIREMASK@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh87:
	adrp	x9, _HALCYON_FIRECMD@GOTPAGE
Lloh88:
	ldr	x9, [x9, _HALCYON_FIRECMD@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_44
LBB0_31:
	mov	w0, #1
	b	LBB0_46
LBB0_32:
Lloh90:
	adrp	x8, _HC_DUMMY@GOTPAGE
Lloh91:
	ldr	x8, [x8, _HC_DUMMY@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_42
; %bb.33:
Lloh93:
	adrp	x0, l_.str.3@PAGE
Lloh94:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_45
LBB0_34:
	mov	w8, #-572662307
	cmp	w19, w8
	b.eq	LBB0_42
; %bb.35:
Lloh95:
	adrp	x0, l_.str.4@PAGE
Lloh96:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_45
LBB0_36:
Lloh97:
	adrp	x8, _dest_address@GOTPAGE
Lloh98:
	ldr	x8, [x8, _dest_address@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	str	x8, [x20]
	tst	w19, #0xc000
	b.eq	LBB0_42
; %bb.37:
Lloh100:
	adrp	x0, l_.str.6@PAGE
Lloh101:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_45
LBB0_38:
	mov	w0, #0
Lloh102:
	adrp	x8, _dest_address@GOTPAGE
Lloh103:
	ldr	x8, [x8, _dest_address@GOTPAGEOFF]
Lloh104:
	ldr	x8, [x8]
	str	x8, [x20]
	strb	w19, [x20, #15]
	b	LBB0_46
LBB0_39:
	mov	w0, #0
Lloh105:
	adrp	x8, _dest_address@GOTPAGE
Lloh106:
	ldr	x8, [x8, _dest_address@GOTPAGEOFF]
Lloh107:
	ldr	x8, [x8]
	str	x8, [x20]
	ldrb	w8, [x20, #15]
	bfi	w19, w8, #24, #8
	str	w19, [x20, #12]
	b	LBB0_46
LBB0_40:
Lloh108:
	adrp	x9, _HC_HTXnLnPitE_MASK@GOTPAGE
Lloh109:
	ldr	x9, [x9, _HC_HTXnLnPitE_MASK@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh111:
	adrp	x10, _HC_HTXnLnPitE_SHIFT@GOTPAGE
Lloh112:
	ldr	x10, [x10, _HC_HTXnLnPitE_SHIFT@GOTPAGEOFF]
Lloh113:
	ldr	w10, [x10]
	ldr	x11, [x20, #24]
	ldp	x12, x13, [x20, #48]
	ldr	x12, [x12, x11, lsl #3]
	asr	w9, w9, w10
	str	w9, [x12, w8, sxtw #2]
	str	wzr, [x13, x11, lsl #2]
	tst	w19, #0xfffff
	b.eq	LBB0_42
; %bb.41:
Lloh114:
	adrp	x0, l_.str.7@PAGE
Lloh115:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_45
LBB0_42:
	mov	w0, #0
	b	LBB0_46
LBB0_43:
	mov	w0, #0
	cmp	w8, #3
	cset	w8, eq
	str	w8, [x20, #72]
	ubfx	w8, w19, #16, #3
	ldr	x9, [x20, #80]
	ldr	x10, [x20, #24]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_46
LBB0_44:
Lloh116:
	adrp	x0, l_.str.2@PAGE
Lloh117:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_45:
	bl	_DRM_ERROR
	mov	w0, #2
LBB0_46:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdr	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_7-LBB0_5)>>2
	.short	(LBB0_9-LBB0_5)>>2
	.short	(LBB0_10-LBB0_5)>>2
	.short	(LBB0_11-LBB0_5)>>2
	.short	(LBB0_13-LBB0_5)>>2
	.short	(LBB0_14-LBB0_5)>>2
	.short	(LBB0_5-LBB0_5)>>2
	.short	(LBB0_5-LBB0_5)>>2
	.short	(LBB0_15-LBB0_5)>>2
	.short	(LBB0_16-LBB0_5)>>2
	.short	(LBB0_19-LBB0_5)>>2
	.short	(LBB0_20-LBB0_5)>>2
	.short	(LBB0_21-LBB0_5)>>2
	.short	(LBB0_22-LBB0_5)>>2
	.short	(LBB0_23-LBB0_5)>>2
	.short	(LBB0_24-LBB0_5)>>2
	.short	(LBB0_26-LBB0_5)>>2
	.short	(LBB0_27-LBB0_5)>>2
	.short	(LBB0_29-LBB0_5)>>2
	.short	(LBB0_30-LBB0_5)>>2
	.short	(LBB0_32-LBB0_5)>>2
	.short	(LBB0_34-LBB0_5)>>2
	.short	(LBB0_36-LBB0_5)>>2
	.short	(LBB0_38-LBB0_5)>>2
	.short	(LBB0_39-LBB0_5)>>2
                                        ; -- End function
	.comm	_seqs,8,3                       ; @seqs
	.comm	_HALCYON_HEADER2,4,2            ; @HALCYON_HEADER2
	.comm	_HALCYON_HEADER1MASK,4,2        ; @HALCYON_HEADER1MASK
	.comm	_HALCYON_HEADER1,4,2            ; @HALCYON_HEADER1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal DMA HALCYON_HEADER2 command\n"

l_.str.1:                               ; @.str.1
	.asciz	"Illegal DMA HALCYON_HEADER1 command\n"

	.comm	_HALCYON_FIREMASK,4,2           ; @HALCYON_FIREMASK
	.comm	_HALCYON_FIRECMD,4,2            ; @HALCYON_FIRECMD
l_.str.2:                               ; @.str.2
	.asciz	"Illegal DMA HALCYON_FIRECMD command\n"

	.comm	_HC_DUMMY,4,2                   ; @HC_DUMMY
l_.str.3:                               ; @.str.3
	.asciz	"Illegal DMA HC_DUMMY command\n"

l_.str.4:                               ; @.str.4
	.asciz	"Illegal DMA 0xdddddddd command\n"

	.comm	_z_address,8,3                  ; @z_address
l_.str.5:                               ; @.str.5
	.asciz	"Attempt to place Z buffer in system memory\n"

	.comm	_dest_address,8,3               ; @dest_address
l_.str.6:                               ; @.str.6
	.asciz	"Attempt to place 3D drawing buffer in system memory\n"

	.comm	_tex_address,8,3                ; @tex_address
	.comm	_HC_SubA_HTXnL0Pit,4,2          ; @HC_SubA_HTXnL0Pit
	.comm	_HC_HTXnEnPit_MASK,4,2          ; @HC_HTXnEnPit_MASK
	.comm	_HC_HTXnLnPit_MASK,4,2          ; @HC_HTXnLnPit_MASK
	.comm	_HC_HTXnLnPitE_MASK,4,2         ; @HC_HTXnLnPitE_MASK
	.comm	_HC_HTXnLnPitE_SHIFT,4,2        ; @HC_HTXnLnPitE_SHIFT
l_.str.7:                               ; @.str.7
	.asciz	"Unimplemented texture level 0 pitch mode.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Attempt to fetch texture from system memory.\n"

l_.str.9:                               ; @.str.9
	.asciz	"Illegal DMA data: 0x%x\n"

	.no_dead_strip	_investigate_hazard
.subsections_via_symbols
