	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multipart_buffer_headers
_multipart_buffer_headers:              ## @multipart_buffer_headers
	.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	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movl	12(%rdi), %esi
	callq	_find_boundary
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_get_line
	movq	%rax, %r15
	movl	$1, %eax
	testq	%r15, %r15
	je	LBB0_22
## %bb.3:
	leaq	-64(%rbp), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_smart_string_appends
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_get_line
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpb	$0, (%r15)
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_php_rfc1867_encoding_translation
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_zend_multibyte_encoding_detector
	movl	%eax, 8(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movsbl	(%r15), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_8
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	cmpq	$0, -64(%rbp)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_smart_string_0
	movq	%r14, -96(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	callq	_zend_llist_add_element
	movq	$0, -64(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%r13)
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%r13), %edi
	incq	%r13
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_estrdup
	movq	%rax, %r14
	movq	%r13, %r15
	jmp	LBB0_16
LBB0_18:
	cmpq	$0, -64(%rbp)
	je	LBB0_21
## %bb.19:
	testq	%r14, %r14
	je	LBB0_21
## %bb.20:
	leaq	-64(%rbp), %rdi
	callq	_smart_string_0
	movq	%r14, -96(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
	leaq	-96(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_zend_llist_add_element
LBB0_21:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_1:
	xorl	%eax, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_multipart_buffer_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multipart_buffer_headers
_multipart_buffer_headers:              ; @multipart_buffer_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	stp	xzr, xzr, [sp, #8]
	ldr	w1, [x0, #12]
	bl	_find_boundary
	cbz	w0, LBB0_20
; %bb.1:
	mov	x0, x20
	bl	_get_line
	cbz	x0, LBB0_19
; %bb.2:
	mov	x21, x0
	mov	x22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_smart_string_appends
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_get_line
	mov	x21, x0
	cbz	x0, LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldrb	w8, [x21]
	cbz	w8, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_php_rfc1867_encoding_translation
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	ldp	w3, w2, [x20]
	mov	x0, x21
	bl	_zend_multibyte_encoding_detector
	str	w0, [x20, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w0, [x21]
	bl	_isspace
	cbz	x0, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_3
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_smart_string_0
	ldr	x8, [sp, #8]
	stp	x22, x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_zend_llist_add_element
	str	xzr, [sp, #8]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x23]
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x23, #1]!
	bl	_isspace
	cbnz	x0, LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_estrdup
	mov	x22, x0
	mov	x21, x23
	b	LBB0_3
LBB0_17:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_19
; %bb.18:
	add	x0, sp, #8
	bl	_smart_string_0
	ldr	x8, [sp, #8]
	stp	x22, x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_zend_llist_add_element
LBB0_19:
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_multipart_buffer_headers
.subsections_via_symbols
