	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_buffer_stderr
_pp_buffer_stderr:                      ## @pp_buffer_stderr
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_poll
	testl	%eax, %eax
	js	LBB0_1
LBB0_5:
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.6:
	movl	$12, %ebx
	xorl	%r15d, %r15d
	movq	_GIT_CP_WORKING@GOTPCREL(%rip), %r13
	movq	_POLLHUP@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx), %edi
	callq	_close
	movq	_GIT_CP_WAIT_CLEANUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, -12(%rcx,%rbx)
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	-12(%rdi,%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12), %rax
	movl	(%r14), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%ecx, (%rax,%r15,4)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-4(%rdi,%rbx), %esi
	addq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strbuf_read_once
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	jns	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdi
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_poll
	testl	%eax, %eax
	jns	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_pp_cleanup
	movq	%r15, %rdi
	callq	_die_errno
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll"

	.comm	_GIT_CP_WORKING,8,3             ## @GIT_CP_WORKING
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_GIT_CP_WAIT_CLEANUP,8,3        ## @GIT_CP_WAIT_CLEANUP
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"read"

	.no_dead_strip	_pp_buffer_stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_buffer_stderr
_pp_buffer_stderr:                      ; @pp_buffer_stderr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_poll
	tbnz	w0, #31, LBB0_12
LBB0_1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _GIT_CP_WORKING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GIT_CP_WORKING@GOTPAGEOFF]
Lloh2:
	adrp	x24, _POLLIN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _POLLIN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _POLLHUP@GOTPAGE
Lloh5:
	ldr	x25, [x25, _POLLHUP@GOTPAGEOFF]
Lloh6:
	adrp	x26, _GIT_CP_WAIT_CLEANUP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GIT_CP_WAIT_CLEANUP@GOTPAGEOFF]
Lloh8:
	adrp	x27, _errno@GOTPAGE
Lloh9:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh12:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_close
	ldr	x8, [x26]
	ldr	x9, [x19, #8]
	str	x8, [x9, x21]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x21]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x22, lsl #2]
	ldr	w10, [x24]
	ldr	w11, [x25]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x21
	add	x0, x8, #12
	ldr	w1, [x8, #8]
	mov	w2, #0
	bl	_strbuf_read_once
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w0, #31, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_die_errno
	b	LBB0_4
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh14:
	adrp	x22, _errno@GOTPAGE
Lloh15:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x23, _EINTR@GOTPAGE
Lloh17:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str@PAGE
Lloh19:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, #16]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_poll
	tbz	w0, #31, LBB0_1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_pp_cleanup
	mov	x0, x21
	bl	_die_errno
	b	LBB0_13
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll"

	.comm	_GIT_CP_WORKING,8,3             ; @GIT_CP_WORKING
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_GIT_CP_WAIT_CLEANUP,8,3        ; @GIT_CP_WAIT_CLEANUP
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"read"

	.no_dead_strip	_pp_buffer_stderr
.subsections_via_symbols
