	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv84_fifo_context_attach
_nv84_fifo_context_attach:              ## @nv84_fifo_context_attach
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_nouveau_bar
	movq	%rax, %r14
	movq	8(%rbx), %r15
	movq	(%r13), %r12
	movq	8(%r13), %rbx
	movl	%r12d, %edi
	callq	_nv_engidx
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.1:
	movq	%rbx, %rdx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$32, %r14d
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	$96, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movl	$160, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	$192, %r14d
LBB0_6:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	addq	%rdx, %r12
	decq	%r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_nv_gpuobj
	movl	(%rax), %ebx
	sarl	$12, %ebx
	movq	%r13, %rdi
	callq	_nv_engctx
	movl	%ebx, (%rax)
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	$1638400, %edx                  ## imm = 0x190000
	callq	_nv_wo32
	movl	(%r15), %r13d
	movl	%r14d, %ebx
	orl	$4, %ebx
	movq	%r12, %rdi
	callq	_lower_32_bits
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movl	(%r15), %r13d
	movl	%r14d, %ebx
	orl	$8, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_lower_32_bits
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ebx
	orl	$12, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_upper_32_bits
	movl	%eax, %r13d
	shll	$24, %r13d
	movq	%r12, %rdi
	callq	_upper_32_bits
	orl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_nv_wo32
	movl	(%r15), %edi
	movl	%r14d, %esi
	orl	$16, %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_nv_wo32
	movl	(%r15), %edi
	orl	$20, %r14d
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_nv_wo32
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nv84_fifo_context_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv84_fifo_context_attach
_nv84_fifo_context_attach:              ; @nv84_fifo_context_attach
	.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
	mov	x23, x1
	mov	x20, x0
	bl	_nouveau_bar
	mov	x19, x0
	ldr	x20, [x20, #8]
	ldp	x22, x24, [x23]
	mov	x0, x22
	bl	_nv_engidx
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	w0, #0
	mov	w21, #32
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w21, #96
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	w21, #160
	b	LBB0_6
LBB0_5:
	mov	w21, #192
LBB0_6:
	add	x8, x22, x24
	sub	x24, x8, #1
	mov	x0, x20
	bl	_nv_gpuobj
	ldr	w8, [x0]
	asr	w25, w8, #12
	mov	x0, x23
	bl	_nv_engctx
	str	w25, [x0]
	ldr	w0, [x20]
	mov	x1, x21
	mov	w2, #1638400
	bl	_nv_wo32
	ldr	w23, [x20]
	orr	w25, w21, #0x4
	mov	x0, x24
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	x1, x25
	bl	_nv_wo32
	ldr	w23, [x20]
	orr	w25, w21, #0x8
	mov	x0, x22
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	x1, x25
	bl	_nv_wo32
	ldr	w23, [x20]
	orr	w25, w21, #0xc
	mov	x0, x24
	bl	_upper_32_bits
	mov	x24, x0
	mov	x0, x22
	bl	_upper_32_bits
	orr	w2, w0, w24, lsl #24
	mov	x0, x23
	mov	x1, x25
	bl	_nv_wo32
	ldr	w0, [x20]
	orr	w1, w21, #0x10
	mov	w2, #0
	bl	_nv_wo32
	ldr	w0, [x20]
	mov	w8, #20
	orr	w1, w21, w8
	mov	w2, #0
	bl	_nv_wo32
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nv84_fifo_context_attach
.subsections_via_symbols
