	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_subdev_enum_frame_size    ## -- Begin function vsp1_subdev_enum_frame_size
	.p2align	4, 0x90
_vsp1_subdev_enum_frame_size:           ## @vsp1_subdev_enum_frame_size
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_to_vsp1_entity
	movq	%rax, %r14
	movl	40(%r12), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %ebx
	movl	24(%r12), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 32(%r12)
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.5:
	cmpl	$0, 24(%r12)
	je	LBB0_6
## %bb.7:
	movq	8(%r15), %xmm0                  ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 8(%r12)
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	16(%rbp), %eax
	movl	%r13d, 8(%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%r12)
	movl	%ebx, 16(%r12)
	movl	%eax, 20(%r12)
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_subdev_enum_frame_size    ; -- Begin function vsp1_subdev_enum_frame_size
	.p2align	2
_vsp1_subdev_enum_frame_size:           ; @vsp1_subdev_enum_frame_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	bl	_to_vsp1_entity
	mov	x19, x0
	ldr	w2, [x21, #40]
	mov	x1, x25
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, x0
	ldr	w2, [x21, #24]
	mov	x0, x19
	bl	_vsp1_entity_get_pad_format
	mov	x26, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_9
; %bb.4:
	mov	w25, #0
	add	x8, x21, #8
	ldr	d0, [x26, #8]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_8:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w25, #0
	stp	w24, w23, [x21, #8]
	stp	w22, w20, [x21, #16]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
