	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_check_viewport        ## -- Begin function drm_crtc_check_viewport
	.p2align	4, 0x90
_drm_crtc_check_viewport:               ## @drm_crtc_check_viewport
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rcx, %rdi
	callq	_drm_mode_get_hv_timing
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_drm_rotation_90_or_270
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	callq	_swap
LBB0_3:
	shll	$16, %r12d
	shll	$16, %r15d
	movl	-40(%rbp), %edx
	shll	$16, %edx
	movl	-36(%rbp), %ecx
	shll	$16, %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%r14, %r8
	callq	_drm_framebuffer_check_src_coords
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_check_viewport        ; -- Begin function drm_crtc_check_viewport
	.p2align	2
_drm_crtc_check_viewport:               ; @drm_crtc_check_viewport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x3
	bl	_drm_mode_get_hv_timing
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_drm_rotation_90_or_270
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w1, w0, [sp, #8]
	bl	_swap
LBB0_3:
	lsl	w0, w21, #16
	lsl	w1, w20, #16
	ldr	w8, [sp, #12]
	lsl	w2, w8, #16
	ldr	w8, [sp, #8]
	lsl	w3, w8, #16
	mov	x4, x19
	bl	_drm_framebuffer_check_src_coords
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
