	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pipe_set_base
_intel_pipe_set_base:                   ## @intel_pipe_set_base
	.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, %r14
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movq	8(%r12), %r15
	callq	_to_intel_crtc
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rsi
	movq	(%r15), %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_to_intel_framebuffer
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_intel_pin_and_fence_fb_obj
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_intel_finish_fb
LBB0_9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*8(%r15)
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_to_intel_framebuffer
	movl	(%rax), %edi
	callq	_intel_unpin_fb_obj
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r13), %rbx
	movq	%r14, 8(%r13)
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, (%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_intel_wait_for_vblank
	movq	%rbx, %rdi
	callq	_to_intel_framebuffer
	movl	(%rax), %edi
	callq	_intel_unpin_fb_obj
LBB0_13:
	movq	%r12, %rdi
	callq	_intel_update_fbc
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_intel_crtc_update_sarea_pos
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No FB bound\n"

L_.str.1:                               ## @.str.1
	.asciz	"no plane for crtc: plane %d, num_pipes %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"pin & fence failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to update base address\n"

	.no_dead_strip	_intel_pipe_set_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pipe_set_base
_intel_pipe_set_base:                   ; @intel_pipe_set_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	x26, [x19, #8]
	bl	_to_intel_crtc
	cbz	x23, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.2:
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_12
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	mov	w25, #0
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x23
	bl	_to_intel_framebuffer
	ldr	w1, [x0]
	mov	x0, x19
	mov	x2, #0
	bl	_intel_pin_and_fence_fb_obj
	cbz	w0, LBB0_7
; %bb.6:
	mov	x25, x0
	mov	x0, x19
	bl	_mutex_unlock
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_intel_finish_fb
LBB0_9:
	ldr	x8, [x26, #8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_13
; %bb.10:
	mov	x25, x0
	mov	x0, x23
	bl	_to_intel_framebuffer
	ldr	w0, [x0]
	bl	_intel_unpin_fb_obj
	mov	x0, x19
	bl	_mutex_unlock
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_DRM_ERROR
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	x25, [x22, #8]
	str	x23, [x22, #8]
	stp	w21, w20, [x22]
	cbz	x25, LBB0_15
; %bb.14:
	ldr	w1, [x24, #8]
	mov	x0, x19
	bl	_intel_wait_for_vblank
	mov	x0, x25
	bl	_to_intel_framebuffer
	ldr	w0, [x0]
	bl	_intel_unpin_fb_obj
LBB0_15:
	mov	x0, x19
	bl	_intel_update_fbc
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_intel_crtc_update_sarea_pos
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No FB bound\n"

l_.str.1:                               ; @.str.1
	.asciz	"no plane for crtc: plane %d, num_pipes %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"pin & fence failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to update base address\n"

	.no_dead_strip	_intel_pipe_set_base
.subsections_via_symbols
