	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispmanx_set_texture_frame
_dispmanx_set_texture_frame:            ## @dispmanx_set_texture_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 28(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	leaq	16(%rbx), %r10
	movl	%ecx, (%rbx)
	movl	%r8d, 4(%rbx)
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	addl	%eax, %eax
	addl	$2, %eax
	imull	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	_VC_IMAGE_RGBA16@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	24(%rbx), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%r8d, %edx
	movl	%eax, %ecx
	movl	$16, %r8d
	pushq	%r10
	pushq	$0
	pushq	$1
	pushq	%r11
	pushq	$210
	callq	_dispmanx_surface_setup
	addq	$48, %rsp
	movq	16(%rbx), %rsi
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dispmanx_surface_update_async  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_IMAGE_RGBA16,4,2            ## @VC_IMAGE_RGBA16
	.no_dead_strip	_dispmanx_set_texture_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispmanx_set_texture_frame
_dispmanx_set_texture_frame:            ; @dispmanx_set_texture_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x9, x0
	ldr	x1, [x9, #16]!
	cbnz	x1, LBB0_3
; %bb.2:
	stp	w3, w4, [x20]
	mov	w8, #4
	mov	w10, #2
	cmp	w2, #0
	csel	w8, w10, w8, eq
	mul	w8, w8, w3
	str	w8, [x20, #8]
Lloh0:
	adrp	x10, _VC_IMAGE_RGBA16@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VC_IMAGE_RGBA16@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x10]
	ldr	w7, [x20, #24]
	mov	w10, #1
	stp	x10, x9, [sp]
	mov	x0, x20
	mov	x1, x3
	mov	x2, x4
	mov	x3, x8
	mov	w4, #16
	mov	w6, #210
	bl	_dispmanx_surface_setup
	ldr	x1, [x20, #16]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_dispmanx_surface_update_async
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_IMAGE_RGBA16,4,2            ; @VC_IMAGE_RGBA16
	.no_dead_strip	_dispmanx_set_texture_frame
.subsections_via_symbols
