	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpf_configure_frame
_wpf_configure_frame:                   ## @wpf_configure_frame
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_WPF_CTRL_VFLIP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_WPF_CTRL_HFLIP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_to_rwpf
	movq	%rax, %r15
	leaq	16(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r15), %eax
	movl	12(%r15), %ecx
	xorl	%eax, %ecx
	andl	%ebx, %ecx
	xorl	%eax, %ecx
	movl	%ecx, 8(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_VI6_WPF_OUTFMT_PDV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%r15), %ebx
	shll	%cl, %ebx
	movl	8(%r15), %r12d
	orl	4(%r15), %ebx
	movl	(%r14), %edi
	callq	_BIT
	andl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movq	_VI6_WPF_OUTFMT_FLP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	movl	8(%r15), %r14d
	movl	(%r13), %edi
	callq	_BIT
	andl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	_VI6_WPF_OUTFMT_HFLP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %ebx
	movq	_VI6_WPF_OUTFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_wpf_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPF_CTRL_VFLIP,4,2             ## @WPF_CTRL_VFLIP
	.comm	_WPF_CTRL_HFLIP,4,2             ## @WPF_CTRL_HFLIP
	.comm	_VI6_WPF_OUTFMT_PDV_SHIFT,4,2   ## @VI6_WPF_OUTFMT_PDV_SHIFT
	.comm	_VI6_WPF_OUTFMT_FLP,4,2         ## @VI6_WPF_OUTFMT_FLP
	.comm	_VI6_WPF_OUTFMT_HFLP,4,2        ## @VI6_WPF_OUTFMT_HFLP
	.comm	_VI6_WPF_OUTFMT,4,2             ## @VI6_WPF_OUTFMT
	.no_dead_strip	_wpf_configure_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpf_configure_frame
_wpf_configure_frame:                   ; @wpf_configure_frame
	.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	x19, x3
	mov	x20, x0
Lloh0:
	adrp	x22, _WPF_CTRL_VFLIP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WPF_CTRL_VFLIP@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	mov	x21, x0
Lloh2:
	adrp	x23, _WPF_CTRL_HFLIP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WPF_CTRL_HFLIP@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	orr	w24, w0, w21
	mov	x0, x20
	bl	_to_rwpf
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20, #8]
	bic	w8, w8, w24
	and	w9, w9, w24
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh4:
	adrp	x8, _VI6_WPF_OUTFMT_PDV_SHIFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VI6_WPF_OUTFMT_PDV_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	lsl	w8, w9, w8
	orr	w21, w8, w10
	ldr	w24, [x20, #8]
	ldr	w0, [x22]
	bl	_BIT
Lloh7:
	adrp	x8, _VI6_WPF_OUTFMT_FLP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VI6_WPF_OUTFMT_FLP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w0, w24
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
	ldr	w22, [x20, #8]
	ldr	w0, [x23]
	bl	_BIT
Lloh10:
	adrp	x8, _VI6_WPF_OUTFMT_HFLP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VI6_WPF_OUTFMT_HFLP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w0, w22
	csel	w8, wzr, w8, eq
Lloh13:
	adrp	x9, _VI6_WPF_OUTFMT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VI6_WPF_OUTFMT@GOTPAGEOFF]
	orr	w3, w21, w8
Lloh15:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x19
	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
	b	_vsp1_wpf_write
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WPF_CTRL_VFLIP,4,2             ; @WPF_CTRL_VFLIP
	.comm	_WPF_CTRL_HFLIP,4,2             ; @WPF_CTRL_HFLIP
	.comm	_VI6_WPF_OUTFMT_PDV_SHIFT,4,2   ; @VI6_WPF_OUTFMT_PDV_SHIFT
	.comm	_VI6_WPF_OUTFMT_FLP,4,2         ; @VI6_WPF_OUTFMT_FLP
	.comm	_VI6_WPF_OUTFMT_HFLP,4,2        ; @VI6_WPF_OUTFMT_HFLP
	.comm	_VI6_WPF_OUTFMT,4,2             ; @VI6_WPF_OUTFMT
	.no_dead_strip	_wpf_configure_frame
.subsections_via_symbols
