	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_g_fmt_vid_cap
_pvr2_g_fmt_vid_cap:                    ## @pvr2_g_fmt_vid_cap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_pvr_format@GOTPCREL(%rip), %rax
	movq	_PVR_FORMAT_PIX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%rdx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	$0, -28(%rbp)
	movq	_PVR2_CID_HRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	leaq	-28(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_pvr2_ctrl_get_value
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	movl	$0, -28(%rbp)
	movq	_PVR2_CID_VRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_pvr2_ctrl_get_value
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pvr_format,8,3                 ## @pvr_format
	.comm	_PVR_FORMAT_PIX,8,3             ## @PVR_FORMAT_PIX
	.comm	_PVR2_CID_HRES,4,2              ## @PVR2_CID_HRES
	.comm	_PVR2_CID_VRES,4,2              ## @PVR2_CID_VRES
	.no_dead_strip	_pvr2_g_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_g_fmt_vid_cap
_pvr2_g_fmt_vid_cap:                    ; @pvr2_g_fmt_vid_cap
	.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
	mov	x19, x2
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _pvr_format@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pvr_format@GOTPAGEOFF]
	ldr	x20, [x8]
Lloh2:
	ldr	x8, [x9]
Lloh3:
	adrp	x9, _PVR_FORMAT_PIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PVR_FORMAT_PIX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x2
	mov	w2, #8
	bl	_memcpy
	str	wzr, [sp, #12]
Lloh6:
	adrp	x8, _PVR2_CID_HRES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PVR2_CID_HRES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #12
	bl	_pvr2_ctrl_get_value
	ldr	w8, [sp, #12]
	str	w8, [x19]
	str	wzr, [sp, #12]
Lloh9:
	adrp	x8, _PVR2_CID_VRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PVR2_CID_VRES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #12
	bl	_pvr2_ctrl_get_value
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pvr_format,8,3                 ; @pvr_format
	.comm	_PVR_FORMAT_PIX,8,3             ; @PVR_FORMAT_PIX
	.comm	_PVR2_CID_HRES,4,2              ; @PVR2_CID_HRES
	.comm	_PVR2_CID_VRES,4,2              ; @PVR2_CID_VRES
	.no_dead_strip	_pvr2_g_fmt_vid_cap
.subsections_via_symbols
