	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_rwpf_get_selection
_vsp1_rwpf_get_selection:               ## @vsp1_rwpf_get_selection
	.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, %r15
	movq	%rsi, %r12
	callq	_to_rwpf
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_VSP1_ENTITY_WPF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	movq	_RWPF_PAD_SINK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	28(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	8(%r15), %ecx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_vsp1_rwpf_get_crop
	movups	(%rax), %xmm0
	movups	%xmm0, 12(%r15)
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_vsp1_entity_get_pad_format
	movq	$0, 20(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 16(%r15)
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_ENTITY_WPF,8,3            ## @VSP1_ENTITY_WPF
	.comm	_RWPF_PAD_SINK,8,3              ## @RWPF_PAD_SINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vsp1_rwpf_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_rwpf_get_selection
_vsp1_rwpf_get_selection:               ; @vsp1_rwpf_get_selection
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	bl	_to_rwpf
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VSP1_ENTITY_WPF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VSP1_ENTITY_WPF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x23, _RWPF_PAD_SINK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RWPF_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w2, [x20, #28]
	mov	x0, x21
	mov	x1, x22
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_vsp1_rwpf_get_crop
	mov	w21, #0
	ldr	q0, [x0]
	stur	q0, [x20, #12]
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_8:
	ldr	x2, [x23]
	mov	x0, x21
	bl	_vsp1_entity_get_pad_format
	mov	w21, #0
	stp	wzr, wzr, [x20, #20]
	ldr	d0, [x0]
	stur	d0, [x20, #12]
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_ENTITY_WPF,8,3            ; @VSP1_ENTITY_WPF
	.comm	_RWPF_PAD_SINK,8,3              ; @RWPF_PAD_SINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vsp1_rwpf_get_selection
.subsections_via_symbols
