	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pipe_control
_init_pipe_control:                     ## @init_pipe_control
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	12(%r12), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_i915_gem_alloc_object
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_set_cache_level
	movq	%r15, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_i915_gem_object_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	movq	%r15, %rdi
	callq	_drm_gem_object_unreference
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	16(%r15), %eax
	movl	%eax, 8(%r14)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_sg_page
	movl	%eax, %edi
	callq	_kmap
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%r12), %esi
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%r15, (%r14)
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_i915_gem_object_unpin
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate seqno page\n"

	.comm	_I915_CACHE_LLC,4,2             ## @I915_CACHE_LLC
L_.str.1:                               ## @.str.1
	.asciz	"%s pipe control offset: 0x%08x\n"

	.no_dead_strip	_init_pipe_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pipe_control
_init_pipe_control:                     ; @init_pipe_control
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w0, [x20, #12]
	mov	w1, #4096
	bl	_i915_gem_alloc_object
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh3:
	adrp	x8, _I915_CACHE_LLC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_CACHE_LLC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i915_gem_object_set_cache_level
	mov	x0, x21
	mov	w1, #4096
	mov	w2, #1
	mov	w3, #0
	bl	_i915_gem_object_pin
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_drm_gem_object_unreference
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_7:
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	w22, w8
LBB0_8:
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x21, #16]
	str	w8, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_sg_page
	bl	_kmap
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x20, #8]
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	w22, #0
	str	x21, [x19]
	str	x19, [x20]
	b	LBB0_9
LBB0_12:
	mov	x0, x21
	bl	_i915_gem_object_unpin
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate seqno page\n"

	.comm	_I915_CACHE_LLC,4,2             ; @I915_CACHE_LLC
l_.str.1:                               ; @.str.1
	.asciz	"%s pipe control offset: 0x%08x\n"

	.no_dead_strip	_init_pipe_control
.subsections_via_symbols
