	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oimm507b_init_
_oimm507b_init_:                        ## @oimm507b_init_
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rcx), %eax
	movl	%eax, -48(%rbp)
	movl	(%rsi), %edi
	callq	_nv50_disp
	movq	(%rax), %rdi
	leaq	8(%r13), %r14
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$4, %r8d
	movq	%r14, %r9
	callq	_nvif_object_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_NV_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nvif_object_map
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oimm%04x allocation failed: %d\n"

	.no_dead_strip	_oimm507b_init_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oimm507b_init_
_oimm507b_init_:                        ; @oimm507b_init_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x3, #12]
	str	w8, [sp, #8]
	ldr	w0, [x1]
	bl	_nv50_disp
	ldr	x0, [x0]
	add	x24, x19, #8
	add	x3, sp, #8
	mov	w1, #0
	mov	x2, x21
	mov	w4, #4
	mov	x5, x24
	bl	_nvif_object_init
	mov	x23, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	bl	_NV_ERROR
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	mov	x1, #0
	mov	w2, #0
	bl	_nvif_object_map
	str	x20, [x19]
LBB0_3:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oimm%04x allocation failed: %d\n"

	.no_dead_strip	_oimm507b_init_
.subsections_via_symbols
