	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_queue_is_busy         ## -- Begin function videobuf_queue_is_busy
	.p2align	4, 0x90
_videobuf_queue_is_busy:                ## @videobuf_queue_is_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movl	(%rax), %edi
	movq	_MAGIC_QTYPE_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAGIC_CHECK
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	$1, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_VIDEO_MAX_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.9:
	movq	(%rbx), %rcx
	movq	_VIDEOBUF_QUEUED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_VIDEOBUF_ACTIVE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	xorl	%ebx, %ebx
	cmpq	%rdx, %rax
	je	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rbx), %rbx
	cmpq	%rsi, %rbx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rdi, %rbx
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movl	$1, %ebx
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGIC_QTYPE_OPS,4,2            ## @MAGIC_QTYPE_OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busy: streaming active\n"

L_.str.1:                               ## @.str.1
	.asciz	"busy: pending read #1\n"

L_.str.2:                               ## @.str.2
	.asciz	"busy: pending read #2\n"

	.comm	_VIDEO_MAX_FRAME,4,2            ## @VIDEO_MAX_FRAME
L_.str.3:                               ## @.str.3
	.asciz	"busy: buffer #%d mapped\n"

	.comm	_VIDEOBUF_QUEUED,8,3            ## @VIDEOBUF_QUEUED
L_.str.4:                               ## @.str.4
	.asciz	"busy: buffer #%d queued\n"

	.comm	_VIDEOBUF_ACTIVE,8,3            ## @VIDEOBUF_ACTIVE
L_.str.5:                               ## @.str.5
	.asciz	"busy: buffer #%d active\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videobuf_queue_is_busy         ; -- Begin function videobuf_queue_is_busy
	.p2align	2
_videobuf_queue_is_busy:                ; @videobuf_queue_is_busy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MAGIC_QTYPE_OPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAGIC_QTYPE_OPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MAGIC_CHECK
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	w19, #1
	mov	w0, #1
	bl	_dprintk
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh9:
	adrp	x8, _VIDEO_MAX_FRAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIDEO_MAX_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x8, #0
	ldr	x10, [x19]
Lloh12:
	adrp	x11, _VIDEOBUF_QUEUED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VIDEOBUF_QUEUED@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	adrp	x12, _VIDEOBUF_ACTIVE@GOTPAGE
Lloh16:
	ldr	x12, [x12, _VIDEOBUF_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w19, #0
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x8, lsl #3]
	cbz	x13, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x14, [x13, #8]
	cbnz	x14, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x13, [x13]
	cmp	x13, x11
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x13, x12
	b.ne	LBB0_10
; %bb.15:
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_16:
	mov	w19, #0
	b	LBB0_7
LBB0_17:
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_18:
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGIC_QTYPE_OPS,4,2            ; @MAGIC_QTYPE_OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busy: streaming active\n"

l_.str.1:                               ; @.str.1
	.asciz	"busy: pending read #1\n"

l_.str.2:                               ; @.str.2
	.asciz	"busy: pending read #2\n"

	.comm	_VIDEO_MAX_FRAME,4,2            ; @VIDEO_MAX_FRAME
l_.str.3:                               ; @.str.3
	.asciz	"busy: buffer #%d mapped\n"

	.comm	_VIDEOBUF_QUEUED,8,3            ; @VIDEOBUF_QUEUED
l_.str.4:                               ; @.str.4
	.asciz	"busy: buffer #%d queued\n"

	.comm	_VIDEOBUF_ACTIVE,8,3            ; @VIDEOBUF_ACTIVE
l_.str.5:                               ; @.str.5
	.asciz	"busy: buffer #%d active\n"

.subsections_via_symbols
