	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_lbm_size
_vc4_lbm_size:                          ## @vc4_lbm_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_vc4_plane_state
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_max
	movq	(%rbx), %rdx
	movq	(%rdx), %rcx
	movq	_VC4_SCALING_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
## %bb.1:
	cmpq	%rcx, 8(%rdx)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 8(%rbx)
	sete	%dl
	movq	_VC4_SCALING_TPZ@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%bl
	andb	%dl, %bl
	movb	$4, %cl
	subb	%bl, %cl
	shll	%cl, %eax
	movl	%eax, %edi
	movl	$32, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_roundup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_SCALING_NONE,8,3           ## @VC4_SCALING_NONE
	.comm	_VC4_SCALING_TPZ,8,3            ## @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_lbm_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_lbm_size
_vc4_lbm_size:                          ; @vc4_lbm_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_vc4_plane_state
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_max
	ldr	x9, [x19]
	ldr	x8, [x9]
Lloh0:
	adrp	x10, _VC4_SCALING_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VC4_SCALING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x9, #8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w9, [x19, #8]
Lloh3:
	adrp	x10, _VC4_SCALING_TPZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC4_SCALING_TPZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	w9, #0, #0, eq
	mov	w8, #3
	cinc	w8, w8, ne
	lsl	w0, w0, w8
	mov	w1, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_roundup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_SCALING_NONE,8,3           ; @VC4_SCALING_NONE
	.comm	_VC4_SCALING_TPZ,8,3            ; @VC4_SCALING_TPZ
	.no_dead_strip	_vc4_lbm_size
.subsections_via_symbols
