	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_markbufs                   ## -- Begin function drm_markbufs
	.p2align	4, 0x90
_drm_markbufs:                          ## @drm_markbufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	_DRIVER_HAVE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movl	16(%rbx), %esi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	16(%rbx), %edi
	callq	_drm_order
	movq	_DRM_MIN_ORDER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_1
## %bb.4:
	movq	_DRM_MAX_ORDER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_1
## %bb.5:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_1
## %bb.6:
	movq	(%r14), %rdx
	cltq
	leaq	(%rax,%rax,2), %rax
	movq	(%rdx,%rax,8), %rsi
	cmpq	%rsi, %rcx
	jg	LBB0_1
## %bb.7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_1
## %bb.8:
	cmpq	%rsi, %rdi
	jg	LBB0_1
## %bb.9:
	movq	%rcx, 8(%rdx,%rax,8)
	movq	%rdi, 16(%rdx,%rax,8)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_HAVE_DMA,4,2            ## @DRIVER_HAVE_DMA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d, %d, %d\n"

	.comm	_DRM_MIN_ORDER,4,2              ## @DRM_MIN_ORDER
	.comm	_DRM_MAX_ORDER,4,2              ## @DRM_MAX_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_markbufs                   ; -- Begin function drm_markbufs
	.p2align	2
_drm_markbufs:                          ; @drm_markbufs
	.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, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _DRIVER_HAVE_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_HAVE_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_8
; %bb.1:
	cbz	x20, LBB0_8
; %bb.2:
	ldr	w1, [x19, #16]
	ldp	x2, x3, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w0, [x19, #16]
	bl	_drm_order
                                        ; kill: def $w0 killed $w0 def $x0
Lloh5:
	adrp	x8, _DRM_MIN_ORDER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MIN_ORDER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DRM_MAX_ORDER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_MAX_ORDER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.gt	LBB0_8
; %bb.3:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_8
; %bb.4:
	ldr	x9, [x20]
	sxtw	x10, w0
	mov	w11, #24
	mul	x11, x10, x11
	ldr	x12, [x9, x11]
	cmp	x8, x12
	b.gt	LBB0_8
; %bb.5:
	ldr	x11, [x19, #8]
	tbnz	x11, #63, LBB0_8
; %bb.6:
	cmp	x11, x12
	b.gt	LBB0_8
; %bb.7:
	mov	w0, #0
	mov	w12, #24
	madd	x9, x10, x12, x9
	stp	x8, x11, [x9, #8]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_HAVE_DMA,4,2            ; @DRIVER_HAVE_DMA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d, %d, %d\n"

	.comm	_DRM_MIN_ORDER,4,2              ; @DRM_MIN_ORDER
	.comm	_DRM_MAX_ORDER,4,2              ; @DRM_MAX_ORDER
.subsections_via_symbols
