	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gitsetenv                      ## -- Begin function gitsetenv
	.p2align	4, 0x90
_gitsetenv:                             ## @gitsetenv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$61, %esi
	callq	_strchr
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$2, %edx
	callq	_st_add3
	movl	%eax, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movb	$61, (%r13,%r15)
	leaq	(%r15,%r13), %rdi
	incq	%rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	addq	%r12, %r15
	movb	$0, 1(%r13,%r15)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putenv                         ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_getenv
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gitsetenv                      ; -- Begin function gitsetenv
	.p2align	2
_gitsetenv:                             ; @gitsetenv
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w1, #61
	bl	_strchr
	cbz	x19, LBB0_6
; %bb.2:
	cbnz	x0, LBB0_6
; %bb.3:
	cbz	w21, LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_st_add3
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	add	x0, x23, x21
	mov	w8, #61
	strb	w8, [x0], #1
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	add	x8, x21, x22
	add	x8, x8, x23
	strb	wzr, [x8, #1]
	mov	x0, x23
	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	_putenv
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _errno@GOTPAGE
Lloh3:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	w0, #-1
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_getenv
	cbz	x0, LBB0_4
; %bb.10:
	mov	w0, #0
	b	LBB0_8
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
