	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_configurator_get_cmd_path  ## -- Begin function h2o_configurator_get_cmd_path
	.p2align	4, 0x90
_h2o_configurator_get_cmd_path:         ## @h2o_configurator_get_cmd_path
	.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, %rbx
	cmpb	$47, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_H2O_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_H2O_TO_STR
	movq	%rax, %r14
LBB0_4:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	leaq	(%r15,%rax), %rdi
	addq	$2, %rdi
	callq	_h2o_mem_alloc
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_sprintf
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_strdup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"H2O_ROOT"

	.comm	_H2O_ROOT,4,2                   ## @H2O_ROOT
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_configurator_get_cmd_path  ; -- Begin function h2o_configurator_get_cmd_path
	.p2align	2
_h2o_configurator_get_cmd_path:         ; @h2o_configurator_get_cmd_path
	.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
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _H2O_ROOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_ROOT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_H2O_TO_STR
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	add	x8, x21, x0
	add	x0, x8, #2
	bl	_h2o_mem_alloc
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_sprintf
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x19
	bl	_h2o_strdup
	mov	x21, x0
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"H2O_ROOT"

	.comm	_H2O_ROOT,4,2                   ; @H2O_ROOT
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

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