	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_get_scaling_mode
_vc4_get_scaling_mode:                  ## @vc4_get_scaling_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	leal	(%rsi,%rsi,2), %eax
	leal	(%rdi,%rdi), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_1
## %bb.2:
	movq	_VC4_SCALING_TPZ@GOTPCREL(%rip), %rax
	cmpl	%edi, %esi
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_VC4_SCALING_PPF@GOTPCREL(%rip), %rax
	cmpl	%edi, %esi
	jne	LBB0_5
LBB0_4:
	movq	_VC4_SCALING_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_SCALING_NONE,4,2           ## @VC4_SCALING_NONE
	.comm	_VC4_SCALING_PPF,4,2            ## @VC4_SCALING_PPF
	.comm	_VC4_SCALING_TPZ,4,2            ## @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_get_scaling_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_get_scaling_mode
_vc4_get_scaling_mode:                  ; @vc4_get_scaling_mode
	.cfi_startproc
; %bb.0:
	add	w8, w1, w1, lsl #1
Lloh0:
	adrp	x9, _VC4_SCALING_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC4_SCALING_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _VC4_SCALING_TPZ@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VC4_SCALING_TPZ@GOTPAGEOFF]
Lloh4:
	adrp	x11, _VC4_SCALING_PPF@GOTPAGE
Lloh5:
	ldr	x11, [x11, _VC4_SCALING_PPF@GOTPAGEOFF]
	cmp	w8, w0, lsl #1
	csel	x8, x10, x11, lt
	cmp	w1, w0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_SCALING_NONE,4,2           ; @VC4_SCALING_NONE
	.comm	_VC4_SCALING_PPF,4,2            ; @VC4_SCALING_PPF
	.comm	_VC4_SCALING_TPZ,4,2            ; @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_get_scaling_mode
.subsections_via_symbols
