	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotator_src_set_fmt
_rotator_src_set_fmt:                   ## @rotator_src_set_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_ROT_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rot_read
	movq	_ROT_CONTROL_FMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_ROT_CONTROL_FMT_YCBCR420_2P@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ROT_CONTROL_FMT_RGB888@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %edi
LBB0_5:
	movl	(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rot_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROT_CONTROL,4,2                ## @ROT_CONTROL
	.comm	_ROT_CONTROL_FMT_MASK,4,2       ## @ROT_CONTROL_FMT_MASK
	.comm	_ROT_CONTROL_FMT_YCBCR420_2P,4,2 ## @ROT_CONTROL_FMT_YCBCR420_2P
	.comm	_ROT_CONTROL_FMT_RGB888,4,2     ## @ROT_CONTROL_FMT_RGB888
	.no_dead_strip	_rotator_src_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotator_src_set_fmt
_rotator_src_set_fmt:                   ; @rotator_src_set_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _ROT_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ROT_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rot_read
Lloh2:
	adrp	x8, _ROT_CONTROL_FMT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROT_CONTROL_FMT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	cmp	w19, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _ROT_CONTROL_FMT_YCBCR420_2P@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ROT_CONTROL_FMT_YCBCR420_2P@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ROT_CONTROL_FMT_RGB888@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ROT_CONTROL_FMT_RGB888@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_5:
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rot_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ROT_CONTROL,4,2                ; @ROT_CONTROL
	.comm	_ROT_CONTROL_FMT_MASK,4,2       ; @ROT_CONTROL_FMT_MASK
	.comm	_ROT_CONTROL_FMT_YCBCR420_2P,4,2 ; @ROT_CONTROL_FMT_YCBCR420_2P
	.comm	_ROT_CONTROL_FMT_RGB888,4,2     ; @ROT_CONTROL_FMT_RGB888
	.no_dead_strip	_rotator_src_set_fmt
.subsections_via_symbols
