	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_get_output
_vfe_get_output:                        ## @vfe_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_to_vfe
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rax
	movq	_VFE_OUTPUT_OFF@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.3:
	movq	_VFE_OUTPUT_RESERVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	$0, 40(%r12)
	movl	48(%r12), %eax
	andl	$-4, %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	sete	%cl
	incl	%ecx
	movl	%ecx, 16(%r12)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_vfe_reserve_wm
	testl	%eax, %eax
	js	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.10:
	movq	$0, 32(%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_2
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	-8(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_vfe_release_wm
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_7
LBB0_8:
	movq	(%r15), %rax
	movq	%rax, 8(%r12)
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFE_OUTPUT_OFF,8,3             ## @VFE_OUTPUT_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Output is running\n"

	.comm	_VFE_OUTPUT_RESERVED,8,3        ## @VFE_OUTPUT_RESERVED
L_.str.1:                               ## @.str.1
	.asciz	"Can not reserve wm\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vfe_get_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_get_output
_vfe_get_output:                        ; @vfe_get_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_to_vfe
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x21, _VFE_OUTPUT_OFF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VFE_OUTPUT_OFF@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x8, _VFE_OUTPUT_RESERVED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VFE_OUTPUT_RESERVED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	str	xzr, [x20, #40]
	ldr	w8, [x20, #48]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	mov	w8, #1
	cinc	w8, w8, eq
	str	w8, [x20, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vfe_reserve_wm
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #24]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x20, #16]
	cmp	x22, x8
	b.lt	LBB0_2
; %bb.4:
	str	xzr, [x20, #32]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	cbz	w22, LBB0_9
; %bb.7:
	sub	x22, x22, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_vfe_release_wm
	add	x8, x22, #1
	sub	x22, x22, #1
	cmp	x8, #1
	b.gt	LBB0_8
LBB0_9:
	ldr	x8, [x21]
	str	x8, [x20, #8]
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VFE_OUTPUT_OFF,8,3             ; @VFE_OUTPUT_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output is running\n"

	.comm	_VFE_OUTPUT_RESERVED,8,3        ; @VFE_OUTPUT_RESERVED
l_.str.1:                               ; @.str.1
	.asciz	"Can not reserve wm\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vfe_get_output
.subsections_via_symbols
