	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g94_sor_war_2
_g94_sor_war_2:                         ## @g94_sor_war_2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_nv50_ior_base
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_g94_sor_war_needed
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$59456, %esi                    ## imm = 0xE840
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147483648, %ecx              ## imm = 0x80000000
	callq	_nvkm_mask
	leal	6374144(%r14), %esi
	movq	%r12, %rdi
	movl	$50331648, %edx                 ## imm = 0x3000000
	movl	$50331648, %ecx                 ## imm = 0x3000000
	callq	_nvkm_mask
	leal	6406412(%r14), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	leal	6406156(%r14), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$251658240, %edx                ## imm = 0xF000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	6406152(%r14), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	movl	$335544320, %ecx                ## imm = 0x14000000
	callq	_nvkm_mask
	movq	_NVKM_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$400, %esi                      ## imm = 0x190
	callq	_nvkm_usec
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$251658240, %edx                ## imm = 0xF000000
	movl	$16777216, %ecx                 ## imm = 0x1000000
	callq	_nvkm_mask
	leal	6406148(%r14), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	testb	$1, %al
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leal	6406192(%r14), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	leal	(%r14,%rax,4), %esi
	addl	$6406208, %esi                  ## imm = 0x61C040
	movq	%r12, %rdi
	movl	$520126464, %edx                ## imm = 0x1F008000
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_DELAY,4,2                 ## @NVKM_DELAY
	.no_dead_strip	_g94_sor_war_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g94_sor_war_2
_g94_sor_war_2:                         ; @g94_sor_war_2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_nv50_ior_base
	mov	x20, x0
	mov	x0, x21
	bl	_g94_sor_war_needed
	cbz	w0, LBB0_2
; %bb.1:
	mov	w24, #49156
	movk	w24, #97, lsl #16
	mov	x0, x19
	mov	w1, #59456
	mov	w2, #-2147483648
	mov	w3, #-2147483648
	bl	_nvkm_mask
	add	w8, w20, #1556, lsl #12         ; =6373376
	add	w1, w8, #768
	mov	x0, x19
	mov	w2, #50331648
	mov	w3, #50331648
	bl	_nvkm_mask
	add	w21, w20, w24
	add	w1, w21, #264
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	add	w22, w21, #8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #251658240
	mov	w3, #0
	bl	_nvkm_mask
	add	w23, w21, #4
	mov	x0, x19
	mov	x1, x23
	mov	w2, #-16777216
	mov	w3, #335544320
	bl	_nvkm_mask
Lloh0:
	adrp	x8, _NVKM_DELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #400
	bl	_nvkm_usec
	mov	x0, x19
	mov	x1, x23
	mov	w2, #-16777216
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	x1, x22
	mov	w2, #251658240
	mov	w3, #16777216
	bl	_nvkm_mask
	mov	x0, x19
	mov	x1, x21
	bl	_nvkm_rd32
	tbnz	w0, #0, LBB0_3
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	w20, w24, w20
	add	w1, w20, #44
	mov	x0, x19
	bl	_nvkm_rd32
	ubfiz	w8, w0, #2, #4
	add	w8, w20, w8
	add	w1, w8, #60
	mov	x0, x19
	mov	w2, #32768
	movk	w2, #7936, lsl #16
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_wr32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_DELAY,4,2                 ; @NVKM_DELAY
	.no_dead_strip	_g94_sor_war_2
.subsections_via_symbols
