	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_get_user_label
_vc4_get_user_label:                    ## @vc4_get_user_label
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.1:
	movl	$-1, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%r13d, %rax
	addq	$24, %r15
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %r13d
	jmp	LBB0_6
LBB0_7:
	cmpl	$-1, %r14d
	je	LBB0_9
## %bb.8:
	movq	8(%r12), %rax
	movslq	%r14d, %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	xorl	%edi, %edi
	cmpq	$0, 8(%rax,%rbx)
	setne	%dil
	callq	_WARN_ON
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%rbx)
	jmp	LBB0_12
LBB0_9:
	movq	8(%r12), %rdi
	leal	8(,%r13,8), %eax
	leal	(%rax,%rax,2), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	incl	%r13d
	movslq	(%r12), %r14
	movq	%rax, 8(%r12)
	movl	%r13d, (%r12)
	leaq	(%r14,%r14,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax,%rcx,8)
	jmp	LBB0_12
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_vc4_get_user_label
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_get_user_label
_vc4_get_user_label:                    ; @vc4_get_user_label
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, #0
	mov	x22, #0
	mov	w21, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x23, x23, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x0, [x9, x23]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	b	LBB0_3
LBB0_7:
	cmn	w21, #1
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	mov	w9, #24
	smaddl	x8, w21, w9, x8
	smull	x22, w21, w9
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x20, #8]
	str	x19, [x8, x22]
	b	LBB0_13
LBB0_9:
	add	w22, w8, #1
	ldr	x0, [x20, #8]
	add	w8, w22, w22, lsl #1
	lsl	w1, w8, #3
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_12
; %bb.10:
	ldrsw	x21, [x20]
	str	x0, [x20, #8]
	str	w22, [x20]
	mov	w8, #24
	madd	x8, x21, x8, x0
	stp	xzr, xzr, [x8, #8]
	str	x19, [x8]
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x21, x22
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_kfree
	mov	w21, #-1
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_vc4_get_user_label
.subsections_via_symbols
