	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_env_tag
_resolve_env_tag:                       ## @resolve_env_tag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_YOML_TYPE_SCALAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_getenv
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %r15
	cmovneq	%rax, %r15
	movq	%r14, %rdi
	callq	_free
	movq	24(%rbx), %rdi
	callq	_free
	movq	$0, 24(%rbx)
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_h2o_strdup
	movq	%rax, 16(%rbx)
	incl	8(%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YOML_TYPE_SCALAR,8,3           ## @YOML_TYPE_SCALAR
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value of !env must be a scalar"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.no_dead_strip	_resolve_env_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_env_tag
_resolve_env_tag:                       ; @resolve_env_tag
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _YOML_TYPE_SCALAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _YOML_TYPE_SCALAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_getenv
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x21, x8, x0, eq
	mov	x0, x20
	bl	_free
	ldr	x0, [x19, #24]
	bl	_free
	str	xzr, [x19, #24]
Lloh5:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x21
	bl	_h2o_strdup
	str	x0, [x19, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_YOML_TYPE_SCALAR,8,3           ; @YOML_TYPE_SCALAR
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value of !env must be a scalar"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.no_dead_strip	_resolve_env_tag
.subsections_via_symbols
