	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_wpf_set_rotation
_vsp1_wpf_set_rotation:                 ## @vsp1_wpf_set_rotation
	.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
	cmpl	$90, %esi
	sete	%al
	cmpl	$270, %esi                      ## imm = 0x10E
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %r12d
	xorl	%ebx, %ebx
	cmpl	%r12d, 8(%rdi)
	je	LBB0_9
## %bb.1:
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movl	4(%r15), %esi
	movq	_RWPF_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %rbx
	movl	4(%r15), %esi
	movq	_RWPF_PAD_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$270, %r13d                     ## imm = 0x10E
	je	LBB0_5
## %bb.4:
	cmpl	$90, %r13d
	jne	LBB0_6
LBB0_5:
	movl	(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	addq	$4, %rbx
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
LBB0_7:
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movl	%r12d, 8(%r15)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RWPF_PAD_SINK,4,2              ## @RWPF_PAD_SINK
	.comm	_RWPF_PAD_SOURCE,4,2            ## @RWPF_PAD_SOURCE
	.no_dead_strip	_vsp1_wpf_set_rotation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_wpf_set_rotation
_vsp1_wpf_set_rotation:                 ; @vsp1_wpf_set_rotation
	.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
	cmp	w1, #90
	mov	w8, #270
	ccmp	w1, w8, #4, ne
	cset	w24, eq
	ldr	w8, [x0, #8]
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x19, #4
	bl	_vb2_is_busy
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_4:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x8, _RWPF_PAD_SINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RWPF_PAD_SINK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vsp1_entity_get_pad_format
	mov	x22, x0
	ldr	w1, [x20, #4]
Lloh6:
	adrp	x8, _RWPF_PAD_SOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RWPF_PAD_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vsp1_entity_get_pad_format
	mov	x23, x0
	mov	x0, x20
	bl	_mutex_lock
	cmp	w21, #270
	b.eq	LBB0_6
; %bb.5:
	cmp	w21, #90
	b.ne	LBB0_7
LBB0_6:
	ldr	w8, [x22], #4
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22, #4]
LBB0_8:
	str	w8, [x23, #4]
	ldr	w8, [x22]
	str	w8, [x23]
	str	w24, [x20, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RWPF_PAD_SINK,4,2              ; @RWPF_PAD_SINK
	.comm	_RWPF_PAD_SOURCE,4,2            ; @RWPF_PAD_SOURCE
	.no_dead_strip	_vsp1_wpf_set_rotation
.subsections_via_symbols
