	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ## -- Begin function cmd_main
	.p2align	4, 0x90
_cmd_main:                              ## @cmd_main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_die_webcgi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_die_routine
	movq	_die_webcgi_recursing@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_die_is_recursing_routine
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_getdir
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_services@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	leaq	-92(%rbp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r12
	movl	16(%r12,%r13), %esi
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_regcomp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r12,%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_regfree
	incq	%r15
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r13
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	leaq	-72(%rbp), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_not_found
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_12:
	xorl	%eax, %eax
	callq	_setup_path
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_enter_repo
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_not_found
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	_F_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.9(%rip), %rsi
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_not_found
LBB0_17:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_http_config
	movq	_max_request_buffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.10(%rip), %rdi
	callq	_git_env_ulong
	movl	%eax, (%rbx)
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	(%r12,%r13), %r15
	movq	(%r12,%r13), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	callq	_bad_request
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_9:
	movq	-56(%rbp), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rsi), %rdi
	incq	%rdi
	notq	%rsi
	addq	-64(%rbp), %rsi
	callq	_xmemdupz
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movb	$0, (%rbx,%rax)
	jmp	LBB0_12
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"REQUEST_METHOD"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_die_webcgi,4,2                 ## @die_webcgi
	.comm	_die_webcgi_recursing,4,2       ## @die_webcgi_recursing
L_.str.1:                               ## @.str.1
	.asciz	"No REQUEST_METHOD from server"

L_.str.2:                               ## @.str.2
	.asciz	"HEAD"

L_.str.3:                               ## @.str.3
	.asciz	"GET"

	.comm	_services,8,3                   ## @services
	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
L_.str.4:                               ## @.str.4
	.asciz	"Bogus regex in service table: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Request not supported: '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"Not a git repository: '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"GIT_HTTP_EXPORT_ALL"

L_.str.8:                               ## @.str.8
	.asciz	"git-daemon-export-ok"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.9:                               ## @.str.9
	.asciz	"Repository not exported: '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"GIT_HTTP_MAX_REQUEST_BUFFER"

	.comm	_max_request_buffer,4,2         ## @max_request_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ; -- Begin function cmd_main
	.p2align	2
_cmd_main:                              ; @cmd_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh5:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh8:
	adrp	x8, _die_webcgi@GOTPAGE
Lloh9:
	ldr	x8, [x8, _die_webcgi@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_set_die_routine
Lloh11:
	adrp	x8, _die_webcgi_recursing@GOTPAGE
Lloh12:
	ldr	x8, [x8, _die_webcgi_recursing@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_set_die_is_recursing_routine
	cbnz	x19, LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_2:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
Lloh18:
	adrp	x8, l_.str.3@PAGE
Lloh19:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x21, x8, x19, eq
	bl	_getdir
	mov	x19, x0
Lloh20:
	adrp	x22, _services@GOTPAGE
Lloh21:
	ldr	x22, [x22, _services@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x23, #0
	mov	x24, #0
Lloh22:
	adrp	x25, _REG_EXTENDED@GOTPAGE
Lloh23:
	ldr	x25, [x25, _REG_EXTENDED@GOTPAGEOFF]
Lloh24:
	adrp	x20, l_.str.4@PAGE
Lloh25:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x22]
	add	x27, x26, x23
	ldr	w1, [x27, #16]
	ldr	w2, [x25]
	add	x0, sp, #12
	bl	_regcomp
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27, #16]
	str	x8, [sp]
	mov	x0, x20
	bl	_die
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	add	x3, sp, #24
	mov	x1, x19
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	cbz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_regfree
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x24, w0, sxtw
	b.lt	LBB0_4
LBB0_8:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #16
	mov	x2, x19
	bl	_not_found
	mov	x21, #0
	mov	x20, #0
LBB0_9:
	bl	_setup_path
	mov	x0, x19
	mov	w1, #0
	bl	_enter_repo
	cbnz	w0, LBB0_11
; %bb.10:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #16
	mov	x2, x19
	bl	_not_found
LBB0_11:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_14
; %bb.12:
Lloh32:
	adrp	x8, _F_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_OK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x0, l_.str.8@PAGE
Lloh36:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_access
	cbz	x0, LBB0_14
; %bb.13:
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #16
	mov	x2, x19
	bl	_not_found
LBB0_14:
	bl	_http_config
Lloh39:
	adrp	x19, _max_request_buffer@GOTPAGE
Lloh40:
	ldr	x19, [x19, _max_request_buffer@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh41:
	adrp	x0, l_.str.10@PAGE
Lloh42:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_git_env_ulong
	str	w0, [x19]
	ldr	x8, [x20, #8]
	add	x0, sp, #16
	mov	x1, x21
	blr	x8
	mov	w0, #0
LBB0_15:
	ldr	x8, [sp, #40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_17:
	add	x20, x26, x23
	ldr	x1, [x20]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.18:
	add	x0, sp, #16
	mov	x1, x20
	bl	_bad_request
	b	LBB0_15
LBB0_19:
	ldp	x8, x9, [sp, #24]
	add	x10, x19, x9
	add	x0, x10, #1
	mvn	x9, x9
	add	x1, x8, x9
	bl	_xmemdupz
	mov	x21, x0
	ldr	x8, [sp, #32]
	strb	wzr, [x19, x8]
	b	LBB0_9
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"REQUEST_METHOD"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_die_webcgi,4,2                 ; @die_webcgi
	.comm	_die_webcgi_recursing,4,2       ; @die_webcgi_recursing
l_.str.1:                               ; @.str.1
	.asciz	"No REQUEST_METHOD from server"

l_.str.2:                               ; @.str.2
	.asciz	"HEAD"

l_.str.3:                               ; @.str.3
	.asciz	"GET"

	.comm	_services,8,3                   ; @services
	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
l_.str.4:                               ; @.str.4
	.asciz	"Bogus regex in service table: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Request not supported: '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"Not a git repository: '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"GIT_HTTP_EXPORT_ALL"

l_.str.8:                               ; @.str.8
	.asciz	"git-daemon-export-ok"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.9:                               ; @.str.9
	.asciz	"Repository not exported: '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"GIT_HTTP_MAX_REQUEST_BUFFER"

	.comm	_max_request_buffer,4,2         ; @max_request_buffer
.subsections_via_symbols
