	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_abi16
_nouveau_abi16:                         ## @nouveau_abi16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nouveau_cli
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	$-1, -24(%rbp)
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_NV_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_nvif_device_init
	movq	%rax, %rcx
	movq	(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_kfree
	movq	$0, (%rbx)
	movq	(%rbx), %rax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NV_DEVICE,4,2                  ## @NV_DEVICE
	.no_dead_strip	_nouveau_abi16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_abi16
_nouveau_abi16:                         ; @nouveau_abi16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nouveau_cli
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x8, #-1
	str	x8, [sp, #8]
	add	x0, x0, #4
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
Lloh3:
	adrp	x8, _NV_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #8
	mov	x5, x20
	bl	_nvif_device_init
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_kfree
	str	xzr, [x19]
	mov	x0, xzr
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NV_DEVICE,4,2                  ; @NV_DEVICE
	.no_dead_strip	_nouveau_abi16
.subsections_via_symbols
