	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_registers
_get_registers:                         ## @get_registers
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_stolen
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_internal
	movq	%rax, %r12
LBB0_2:
	movq	%r12, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%r13d, %ebx
	movq	_PIN_MAPPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i915_gem_object_ggtt_pin
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_sg_dma_address
	jmp	LBB0_8
LBB0_7:
	movq	%r13, %rdi
	callq	_i915_ggtt_offset
LBB0_8:
	movl	%eax, 16(%r14)
	movq	%r13, %rdi
	callq	_i915_vma_pin_iomap
	movq	%rax, 8(%r14)
	movq	%r13, %rdi
	callq	_i915_vma_unpin
	movq	8(%r14), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	8(%r14), %r13
LBB0_10:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_i915_gem_object_put
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PIN_MAPPABLE,4,2               ## @PIN_MAPPABLE
	.no_dead_strip	_get_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_registers
_get_registers:                         ; @get_registers
	.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, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i915_gem_object_create_stolen
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i915_gem_object_create_internal
	mov	x21, x0
LBB0_2:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x8, _PIN_MAPPABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIN_MAPPABLE@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i915_gem_object_ggtt_pin
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_10
; %bb.5:
	cbz	w22, LBB0_7
; %bb.6:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_sg_dma_address
	b	LBB0_8
LBB0_7:
	mov	x0, x23
	bl	_i915_ggtt_offset
LBB0_8:
	str	w0, [x20, #16]
	mov	x0, x23
	bl	_i915_vma_pin_iomap
	str	x0, [x20, #8]
	mov	x0, x23
	bl	_i915_vma_unpin
	ldr	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x23, [x20, #8]
LBB0_10:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x22, x0
	mov	x0, x21
	bl	_i915_gem_object_put
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
LBB0_12:
	mov	w22, #0
	str	x21, [x20]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PIN_MAPPABLE,4,2               ; @PIN_MAPPABLE
	.no_dead_strip	_get_registers
.subsections_via_symbols
