	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_get_enc_frame_buffer_v5
_s5p_mfc_get_enc_frame_buffer_v5:       ## @s5p_mfc_get_enc_frame_buffer_v5
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_BANK_R_CTX@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_S5P_FIMV_ENCODED_Y_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mfc_read
	movq	_MFC_OFFSET_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	shlq	%cl, %rax
	addq	%r13, %rax
	movq	%rax, (%r15)
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_S5P_FIMV_ENCODED_C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mfc_read
	movb	(%r14), %cl
	shlq	%cl, %rax
	addq	%r15, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_R_CTX,8,3                 ## @BANK_R_CTX
	.comm	_S5P_FIMV_ENCODED_Y_ADDR,4,2    ## @S5P_FIMV_ENCODED_Y_ADDR
	.comm	_MFC_OFFSET_SHIFT,8,3           ## @MFC_OFFSET_SHIFT
	.comm	_S5P_FIMV_ENCODED_C_ADDR,4,2    ## @S5P_FIMV_ENCODED_C_ADDR
	.no_dead_strip	_s5p_mfc_get_enc_frame_buffer_v5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_get_enc_frame_buffer_v5
_s5p_mfc_get_enc_frame_buffer_v5:       ; @s5p_mfc_get_enc_frame_buffer_v5
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _BANK_R_CTX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BANK_R_CTX@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x23, [x8, x9, lsl #3]
Lloh2:
	adrp	x8, _S5P_FIMV_ENCODED_Y_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5P_FIMV_ENCODED_Y_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mfc_read
Lloh5:
	adrp	x24, _MFC_OFFSET_SHIFT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MFC_OFFSET_SHIFT@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x8, x0, x8
	add	x8, x8, x23
	str	x8, [x20]
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x20, [x8, x9, lsl #3]
Lloh7:
	adrp	x8, _S5P_FIMV_ENCODED_C_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5P_FIMV_ENCODED_C_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mfc_read
	ldr	x8, [x24]
	lsl	x8, x0, x8
	add	x8, x8, x20
	str	x8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_R_CTX,8,3                 ; @BANK_R_CTX
	.comm	_S5P_FIMV_ENCODED_Y_ADDR,4,2    ; @S5P_FIMV_ENCODED_Y_ADDR
	.comm	_MFC_OFFSET_SHIFT,8,3           ; @MFC_OFFSET_SHIFT
	.comm	_S5P_FIMV_ENCODED_C_ADDR,4,2    ; @S5P_FIMV_ENCODED_C_ADDR
	.no_dead_strip	_s5p_mfc_get_enc_frame_buffer_v5
.subsections_via_symbols
