	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _osd_dm6446_vid0_pingpong
__osd_dm6446_vid0_pingpong:             ## @_osd_dm6446_vid0_pingpong
	.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	(%rdi), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	%rcx, %r13
	cmpl	$0, 8(%rcx)
	je	LBB0_4
## %bb.5:
	movq	_OSD_MISCCTL_PPRV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andq	$-32, %r12
	movq	%r12, %rsi
	subq	(%r13), %rsi
	movq	_OSD_VIDWIN0ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_osd_write
	addq	(%r13), %r12
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_4:
	andq	$-32, %r12
	movq	_OSD_VIDWIN0ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_osd_write
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_6:
	movq	_OSD_PPVWIN0ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_osd_write
	movq	_OSD_MISCCTL_PPSW@GOTPCREL(%rip), %rax
	movq	_OSD_MISCCTL_PPRV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_OSD_MISCCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_osd_modify
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSD_VIDWIN0ADR,4,2             ## @OSD_VIDWIN0ADR
	.comm	_OSD_PPVWIN0ADR,4,2             ## @OSD_PPVWIN0ADR
	.comm	_OSD_MISCCTL_PPSW,4,2           ## @OSD_MISCCTL_PPSW
	.comm	_OSD_MISCCTL_PPRV,4,2           ## @OSD_MISCCTL_PPRV
	.comm	_OSD_MISCCTL,4,2                ## @OSD_MISCCTL
	.no_dead_strip	__osd_dm6446_vid0_pingpong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _osd_dm6446_vid0_pingpong
__osd_dm6446_vid0_pingpong:             ; @_osd_dm6446_vid0_pingpong
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x23, _OSD_MISCCTL_PPRV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OSD_MISCCTL_PPRV@GOTPAGEOFF]
	cbz	w1, LBB0_6
; %bb.3:
	mov	x21, x3
	ldr	w8, [x3, #8]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w20, [x23]
	and	x22, x2, #0xffffffffffffffe0
	ldr	x8, [x21]
	sub	x1, x22, x8
Lloh2:
	adrp	x8, _OSD_VIDWIN0ADR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OSD_VIDWIN0ADR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_osd_write
	ldr	x8, [x21]
	add	x22, x8, x22
	mov	w21, #1
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	and	x22, x2, #0xffffffffffffffe0
Lloh5:
	adrp	x8, _OSD_VIDWIN0ADR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSD_VIDWIN0ADR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_osd_write
	mov	w20, #0
	mov	w21, #0
LBB0_7:
Lloh8:
	adrp	x8, _OSD_PPVWIN0ADR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OSD_PPVWIN0ADR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_osd_write
Lloh11:
	adrp	x8, _OSD_MISCCTL_PPSW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OSD_MISCCTL_PPSW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w1, w9, w8
Lloh14:
	adrp	x8, _OSD_MISCCTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OSD_MISCCTL@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_osd_modify
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OSD_VIDWIN0ADR,4,2             ; @OSD_VIDWIN0ADR
	.comm	_OSD_PPVWIN0ADR,4,2             ; @OSD_PPVWIN0ADR
	.comm	_OSD_MISCCTL_PPSW,4,2           ; @OSD_MISCCTL_PPSW
	.comm	_OSD_MISCCTL_PPRV,4,2           ; @OSD_MISCCTL_PPRV
	.comm	_OSD_MISCCTL,4,2                ; @OSD_MISCCTL
	.no_dead_strip	__osd_dm6446_vid0_pingpong
.subsections_via_symbols
