	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glk_max_plane_width
_glk_max_plane_width:                   ## @glk_max_plane_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	(%rdi), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.3:
	cmpl	$8, %ecx
	movl	$2048, %ecx                     ## imm = 0x800
	movl	$5120, %eax                     ## imm = 0x1400
	cmovel	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	leal	-132(%rdi), %eax
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$8, %ecx
	setne	%al
	orl	$4, %eax
	shll	$10, %eax
	popq	%rbp
	retq
LBB0_4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	movl	$2048, %eax                     ## imm = 0x800
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_glk_max_plane_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glk_max_plane_width
_glk_max_plane_width:                   ; @glk_max_plane_width
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, w1, sxtw #2]
	ldr	w0, [x0]
	sub	w9, w0, #128
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #5120
	mov	w10, #2048
	b	LBB0_4
LBB0_2:
	sub	w9, w0, #132
	cmp	w9, #1
	b.hi	LBB0_5
; %bb.3:
	mov	w9, #5120
	mov	w10, #4096
LBB0_4:
	cmp	w8, #8
	csel	w0, w10, w9, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_MISSING_CASE
	mov	w0, #2048
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_glk_max_plane_width
.subsections_via_symbols
