	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_frame_to_surface
_map_frame_to_surface:                  ## @map_frame_to_surface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_4
## %bb.3:
	movq	16(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, 20(%rsi)
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, 16(%rsi)
	movl	(%rax), %ecx
	addl	$2, %ecx
	movl	%ecx, 12(%rsi)
	movl	(%rax), %eax
	addl	$3, %eax
	movl	%eax, 8(%rsi)
	jmp	LBB0_6
LBB0_5:
	movq	16(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, 32(%rsi)
	movl	4(%rax), %eax
	movl	%eax, 36(%rsi)
	jmp	LBB0_6
LBB0_8:
	movq	16(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, 32(%rsi)
	movl	4(%rax), %ecx
	movl	%ecx, 28(%rsi)
	movl	8(%rax), %eax
	movl	%eax, 24(%rsi)
LBB0_6:
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movl	4(%rdi), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_MFX_ERR_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFX_ERR_UNSUPPORTED,4,2        ## @MFX_ERR_UNSUPPORTED
	.no_dead_strip	_map_frame_to_surface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_frame_to_surface
_map_frame_to_surface:                  ; @map_frame_to_surface
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	str	w9, [x1, #20]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x1, #16]
	ldr	w9, [x8]
	add	w9, w9, #2
	str	w9, [x1, #12]
	ldr	w8, [x8]
	add	w8, w8, #3
	str	w8, [x1, #8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	str	w9, [x1, #32]
	ldr	w8, [x8, #4]
	str	w8, [x1, #36]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	str	w9, [x1, #32]
	ldr	w9, [x8, #4]
	str	w9, [x1, #28]
	ldr	w8, [x8, #8]
	str	w8, [x1, #24]
LBB0_6:
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	ldr	w10, [x0, #4]
	stp	w10, w9, [x1]
	mov	w0, #0
	ret
LBB0_7:
Lloh0:
	adrp	x8, _MFX_ERR_UNSUPPORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFX_ERR_UNSUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MFX_ERR_UNSUPPORTED,4,2        ; @MFX_ERR_UNSUPPORTED
	.no_dead_strip	_map_frame_to_surface
.subsections_via_symbols
