	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_init                   ## -- Begin function drm_gem_init
	.p2align	4, 0x90
_drm_gem_init:                          ## @drm_gem_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$12, %rdi
	callq	_mutex_init
	leaq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_idr_init_base
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, (%rbx)
	movq	_DRM_FILE_PAGE_OFFSET_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DRM_FILE_PAGE_OFFSET_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_drm_vma_offset_manager_init
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_FILE_PAGE_OFFSET_START,4,2 ## @DRM_FILE_PAGE_OFFSET_START
	.comm	_DRM_FILE_PAGE_OFFSET_SIZE,4,2  ## @DRM_FILE_PAGE_OFFSET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_init                   ; -- Begin function drm_gem_init
	.p2align	2
_drm_gem_init:                          ; @drm_gem_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #12
	bl	_mutex_init
	add	x0, x19, #8
	mov	w1, #1
	bl	_idr_init_base
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	str	x0, [x19]
Lloh3:
	adrp	x8, _DRM_FILE_PAGE_OFFSET_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_FILE_PAGE_OFFSET_START@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DRM_FILE_PAGE_OFFSET_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_FILE_PAGE_OFFSET_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_drm_vma_offset_manager_init
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_FILE_PAGE_OFFSET_START,4,2 ; @DRM_FILE_PAGE_OFFSET_START
	.comm	_DRM_FILE_PAGE_OFFSET_SIZE,4,2  ; @DRM_FILE_PAGE_OFFSET_SIZE
.subsections_via_symbols
