	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_request_eof
_read_request_eof:                      ## @read_request_eof
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_xmalloc
	movq	%rax, %r12
	movq	_max_request_buffer@GOTPCREL(%rip), %r14
	cmpq	$8191, (%r14)                   ## imm = 0x1FFF
	ja	LBB0_2
## %bb.1:
	movq	$8192, (%r14)                   ## imm = 0x2000
LBB0_2:
	movl	$8192, %ebx                     ## imm = 0x2000
	movl	$8192, %edx                     ## imm = 0x2000
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_read_in_full
	testq	%rax, %rax
	js	LBB0_9
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_alloc_nr
	movq	(%r14), %rbx
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_REALLOC_ARRAY
	leaq	(%r12,%r13), %rsi
	movq	%rbx, %rdx
	subq	%r13, %rdx
	movl	%r15d, %edi
	callq	_read_in_full
	testq	%rax, %rax
	js	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rcx
	movq	%rax, %r13
	addq	%rcx, %r13
	cmpq	%rbx, %r13
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r14), %rbx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
	jmp	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	callq	_free
	movq	$-1, %r13
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_10:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_request_buffer,8,3         ## @max_request_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request was larger than our maximum size (%lu); try setting GIT_HTTP_MAX_REQUEST_BUFFER"

	.no_dead_strip	_read_request_eof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_request_eof
_read_request_eof:                      ; @read_request_eof
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	w0, #8192
	bl	_xmalloc
	mov	x21, x0
Lloh0:
	adrp	x25, _max_request_buffer@GOTPAGE
Lloh1:
	ldr	x25, [x25, _max_request_buffer@GOTPAGEOFF]
	ldr	x8, [x25]
	lsr	x8, x8, #13
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w8, #8192
	str	x8, [x25]
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8192
	bl	_read_in_full
	tbnz	x0, #63, LBB0_8
; %bb.3:
	mov	x22, #0
	mov	w24, #8192
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_alloc_nr
	ldr	x8, [x25]
	cmp	x0, x8
	csel	x24, x0, x8, lo
	mov	x0, x21
	mov	x1, x24
	bl	_REALLOC_ARRAY
	add	x1, x21, x22
	sub	x2, x24, x22
	mov	x0, x20
	bl	_read_in_full
	tbnz	x0, #63, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x0, x22
	cmp	x22, x24
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x24, x8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_die
	b	LBB0_4
LBB0_8:
	mov	x0, x21
	bl	_free
	mov	x22, #-1
	b	LBB0_10
LBB0_9:
	str	x21, [x19]
LBB0_10:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_max_request_buffer,8,3         ; @max_request_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request was larger than our maximum size (%lu); try setting GIT_HTTP_MAX_REQUEST_BUFFER"

	.no_dead_strip	_read_request_eof
.subsections_via_symbols
