	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reqbufs_output
_reqbufs_output:                        ## @reqbufs_output
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_s5p_mfc_clock_on
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rax
	movq	_QUEUE_FREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.7:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_WARN_ON
	movq	16(%r15), %rax
	movq	_MFCINST_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mfc_debug
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vb2_reqbufs
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_s5p_mfc_open_mfc_inst
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r13d
	movq	$0, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vb2_reqbufs
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mfc_debug
	leaq	24(%r15), %rdi
	movq	%r14, %rsi
	callq	_vb2_reqbufs
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
LBB0_12:
	xorl	%eax, %eax
	callq	_s5p_mfc_clock_off
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_mfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_s5p_mfc_clock_off
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.6:
	negl	%ebx
	movl	%ebx, %r13d
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	callq	_mfc_err
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	$0, (%r15)
	movq	_QUEUE_FREE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_s5p_mfc_clock_off
	jmp	LBB0_16
LBB0_14:
	movq	_QUEUE_BUFS_REQUESTED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing buffers\n"

	.comm	_QUEUE_FREE,8,3                 ## @QUEUE_FREE
	.comm	_MFCINST_INIT,8,3               ## @MFCINST_INIT
L_.str.1:                               ## @.str.1
	.asciz	"Reqbufs called in an invalid state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Allocating %d buffers for OUTPUT queue\n"

	.comm	_QUEUE_BUFS_REQUESTED,8,3       ## @QUEUE_BUFS_REQUESTED
L_.str.3:                               ## @.str.3
	.asciz	"Buffers have already been requested\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed allocating buffers for OUTPUT queue\n"

	.no_dead_strip	_reqbufs_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reqbufs_output
_reqbufs_output:                        ; @reqbufs_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_s5p_mfc_clock_on
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _QUEUE_FREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUEUE_FREE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _MFCINST_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFCINST_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	add	x23, x19, #24
	mov	x0, x23
	mov	x1, x20
	bl	_vb2_reqbufs
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_s5p_mfc_open_mfc_inst
	cbz	w0, LBB0_17
; %bb.5:
	mov	x22, x0
	str	xzr, [x20]
	mov	x0, x23
	mov	x1, x20
	bl	_vb2_reqbufs
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	add	x0, x19, #24
	mov	x1, x20
	bl	_vb2_reqbufs
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_7:
	bl	_s5p_mfc_clock_off
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_mfc_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	bl	_s5p_mfc_clock_off
	cbz	w19, LBB0_15
; %bb.11:
	neg	w22, w19
LBB0_12:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_mfc_err
	b	LBB0_16
LBB0_13:
	str	xzr, [x19]
Lloh19:
	adrp	x8, _QUEUE_FREE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QUEUE_FREE@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	bl	_s5p_mfc_clock_off
LBB0_15:
	mov	w22, #0
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh21:
	adrp	x8, _QUEUE_BUFS_REQUESTED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QUEUE_BUFS_REQUESTED@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing buffers\n"

	.comm	_QUEUE_FREE,8,3                 ; @QUEUE_FREE
	.comm	_MFCINST_INIT,8,3               ; @MFCINST_INIT
l_.str.1:                               ; @.str.1
	.asciz	"Reqbufs called in an invalid state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Allocating %d buffers for OUTPUT queue\n"

	.comm	_QUEUE_BUFS_REQUESTED,8,3       ; @QUEUE_BUFS_REQUESTED
l_.str.3:                               ; @.str.3
	.asciz	"Buffers have already been requested\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed allocating buffers for OUTPUT queue\n"

	.no_dead_strip	_reqbufs_output
.subsections_via_symbols
