	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_client_create_         ## -- Begin function nouveau_client_create_
	.p2align	4, 0x90
_nouveau_client_create_:                ## @nouveau_client_create_
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_nouveau_device_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_NV_CLIENT_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_nouveau_device_sclass@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_nouveau_client_oclass@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	%rbx
	callq	_nouveau_namedb_create_
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r12), %r12
	movq	%r12, %rdi
	callq	_nv_object
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_nv_object
	leaq	12(%r12), %r8
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	movq	%rax, %rcx
	callq	_nouveau_handle_create
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_nv_object
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_atomic_set
	leaq	8(%r12), %rsi
	movq	%r13, %rdi
	callq	_nouveau_object_ref
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r15, %rcx
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_nouveau_dbgopt
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_nouveau_client_oclass,4,2      ## @nouveau_client_oclass
	.comm	_NV_CLIENT_CLASS,4,2            ## @NV_CLIENT_CLASS
	.comm	_nouveau_device_sclass,4,2      ## @nouveau_device_sclass
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"CLIENT"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_client_create_         ; -- Begin function nouveau_client_create_
	.p2align	2
_nouveau_client_create_:                ; @nouveau_client_create_
	.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	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x0
	mov	x0, x1
	bl	_nouveau_device_find
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _NV_CLIENT_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_CLIENT_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _nouveau_device_sclass@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nouveau_device_sclass@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x2, _nouveau_client_oclass@GOTPAGE
Lloh7:
	ldr	x2, [x2, _nouveau_client_oclass@GOTPAGEOFF]
	mov	x0, #0
	mov	x1, #0
	mov	w5, #0
	mov	x6, x23
	mov	x7, x22
	bl	_nouveau_namedb_create_
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x22, [x22]
	mov	x0, x22
	bl	_nv_object
	mov	x23, x0
	mov	x0, x22
	bl	_nv_object
	mov	x3, x0
	add	x4, x22, #12
	mov	x0, x23
	mov	w1, #-1
	mov	w2, #-1
	bl	_nouveau_handle_create
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_nv_object
	mov	w1, #2
	bl	_atomic_set
	add	x1, x22, #8
	mov	x0, x21
	bl	_nouveau_object_ref
	ldr	w0, [x22, #4]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	bl	_snprintf
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nouveau_dbgopt
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_nouveau_client_oclass,4,2      ; @nouveau_client_oclass
	.comm	_NV_CLIENT_CLASS,4,2            ; @NV_CLIENT_CLASS
	.comm	_nouveau_device_sclass,4,2      ; @nouveau_device_sclass
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"CLIENT"

.subsections_via_symbols
