	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_video_mode             ## -- Begin function pwc_set_video_mode
	.p2align	4, 0x90
_pwc_set_video_mode:                    ## @pwc_set_video_mode
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %ecx
	movl	%r13d, %r8d
	callq	_PWC_DEBUG_FLOW
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_pwc_get_size
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_PWC_TRACE
	movl	40(%r12), %edi
	callq	_DEVICE_USE_CODEC1
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	16(%rbp), %r9d
	callq	_set_video_mode_Nala
	movl	%eax, %ebx
	movl	%r14d, %r13d
	testl	%ebx, %ebx
	js	LBB0_7
LBB0_8:
	movq	16(%r12), %rax
	addq	24(%r12), %rax
	addq	8(%r12), %rax
	movq	%rax, 32(%r12)
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_PWC_DEBUG_SIZE
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	%r14d, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	40(%r12), %edi
	callq	_DEVICE_USE_CODEC3
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%ebx, %r13d
	movl	%ebx, %ecx
	movq	%r14, %r8
	movl	16(%rbp), %r9d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_set_video_mode_Kiara
	jmp	LBB0_5
LBB0_4:
	callq	_set_video_mode_Timon
LBB0_5:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_8
LBB0_7:
	movq	_size2name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_PWC_ERROR
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_video_mode(%dx%d @ %d, pixfmt %08x).\n"

L_.str.1:                               ## @.str.1
	.asciz	"decode_size = %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set video mode %s@%d fps; return code = %d\n"

	.comm	_size2name,8,3                  ## @size2name
L_.str.3:                               ## @.str.3
	.asciz	"Set resolution to %dx%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_video_mode             ; -- Begin function pwc_set_video_mode
	.p2align	2
_pwc_set_video_mode:                    ; @pwc_set_video_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x4
	mov	x4, x24
	bl	_PWC_DEBUG_FLOW
	mov	x0, x20
	mov	x1, x25
	mov	x2, x21
	bl	_pwc_get_size
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_PWC_TRACE
	ldr	w0, [x20, #40]
	bl	_DEVICE_USE_CODEC1
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	bl	_set_video_mode_Nala
	mov	x22, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_6
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_DEVICE_USE_CODEC3
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	bl	_set_video_mode_Kiara
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
LBB0_4:
	ldp	x9, x8, [x20, #16]
	ldr	x10, [x20, #8]
	add	x8, x9, x8
	add	x8, x8, x10
	str	x8, [x20, #32]
	ldp	w2, w1, [x20]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_PWC_DEBUG_SIZE
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	bl	_set_video_mode_Timon
	mov	x22, x0
	tbz	w0, #31, LBB0_4
LBB0_6:
Lloh6:
	adrp	x8, _size2name@GOTPAGE
Lloh7:
	ldr	x8, [x8, _size2name@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, w21, sxtw #2]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_PWC_ERROR
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_video_mode(%dx%d @ %d, pixfmt %08x).\n"

l_.str.1:                               ; @.str.1
	.asciz	"decode_size = %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set video mode %s@%d fps; return code = %d\n"

	.comm	_size2name,8,3                  ; @size2name
l_.str.3:                               ; @.str.3
	.asciz	"Set resolution to %dx%d\n"

.subsections_via_symbols
