	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_service
_select_service:                        ## @select_service
	.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	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_skip_prefix
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_forbidden
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_rpc_service@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	(%r13,%rbx), %rdi
	movq	-56(%rbp), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_forbidden
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_6:
	addq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	js	LBB0_8
## %bb.11:
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_13:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpb	$0, (%rax)
	setne	%cl
LBB0_10:
	movq	%rcx, 8(%r13)
	testq	%rcx, %rcx
	jne	LBB0_13
LBB0_12:
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_forbidden
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git-"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported service: '%s'"

	.comm	_rpc_service,8,3                ## @rpc_service
L_.str.2:                               ## @.str.2
	.asciz	"REMOTE_USER"

L_.str.3:                               ## @.str.3
	.asciz	"Service not enabled: '%s'"

	.no_dead_strip	_select_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_service
_select_service:                        ; @select_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_skip_prefix
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_forbidden
LBB0_2:
Lloh4:
	adrp	x22, _rpc_service@GOTPAGE
Lloh5:
	ldr	x22, [x22, _rpc_service@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x22]
	ldr	x0, [x21, x23]
	ldr	x1, [sp, #8]
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x24, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_forbidden
	mov	x20, #0
	ldr	x8, [x20, #8]
	tbnz	x8, #63, LBB0_11
LBB0_7:
	cbnz	x8, LBB0_9
LBB0_8:
	ldr	x2, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_forbidden
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	add	x20, x21, x23
	ldr	x8, [x20, #8]
	tbz	x8, #63, LBB0_7
LBB0_11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_13
; %bb.12:
	ldrb	w8, [x0]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_14
LBB0_13:
	mov	x8, #0
LBB0_14:
	str	x8, [x20, #8]
	cbnz	x8, LBB0_9
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git-"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported service: '%s'"

	.comm	_rpc_service,8,3                ; @rpc_service
l_.str.2:                               ; @.str.2
	.asciz	"REMOTE_USER"

l_.str.3:                               ; @.str.3
	.asciz	"Service not enabled: '%s'"

	.no_dead_strip	_select_service
.subsections_via_symbols
