	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_key
_get_key:                               ## @get_key
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	_WHITESPACES@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_strspn
	movslq	%eax, %r14
	addq	%rbx, %r14
	xorl	%ebx, %ebx
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12), %edi
	callq	_is_key_char
	incq	%r12
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	leaq	-1(%r12), %rdi
	callq	_strspn
	movslq	%eax, %r15
	movb	-1(%r12,%r15), %al
	testb	%al, %al
	je	LBB0_4
## %bb.3:
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_strchr
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%ebx, %edi
	callq	_av_malloc
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	-1(%rbx), %rdx
	addq	%r15, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	(%r13), %rax
	movb	$0, -1(%rax,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WHITESPACES,4,2                ## @WHITESPACES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_key
_get_key:                               ; @get_key
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x24, _WHITESPACES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WHITESPACES@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_strspn
	mov	x21, #0
	add	x22, x22, w0, sxtw
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, x21]
	bl	_is_key_char
	add	x21, x21, #1
	cbnz	x0, LBB0_1
; %bb.2:
	ldr	w1, [x24]
	add	x8, x22, x21
	sub	x0, x8, #1
	bl	_strspn
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	add	x8, x22, x24
	add	x8, x8, x21
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_6
; %bb.3:
	sxtb	w1, w8
	mov	x0, x23
	bl	_strchr
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_av_malloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.5:
	sub	x2, x21, #1
	add	x8, x22, x24
	add	x23, x8, x21
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x21
	sturb	wzr, [x8, #-1]
	str	x23, [x19]
	mov	w0, #0
	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
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WHITESPACES,4,2                ; @WHITESPACES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_key
.subsections_via_symbols
