	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multipart_buffer_new
_multipart_buffer_new:                  ## @multipart_buffer_new
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$64, %esi
	callq	_ecalloc
	movq	%rax, %r15
	addl	$6, %ebx
	movq	_FILLUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	leal	1(%rbx), %esi
	movl	$1, %edi
	callq	_ecalloc
	movq	%rax, (%r15)
	movl	%ebx, 8(%r15)
	leaq	60(%r15), %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_spprintf
	leaq	56(%r15), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_spprintf
	movl	%eax, 12(%r15)
	movq	(%r15), %rax
	movq	%rax, 16(%r15)
	movq	$0, 48(%r15)
	xorl	%eax, %eax
	callq	_php_rfc1867_encoding_translation
	leaq	32(%r15), %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$40, %rdi
	callq	_php_rfc1867_get_detect_order
	jmp	LBB0_3
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
LBB0_3:
	movq	$0, 24(%r15)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILLUNIT,4,2                   ## @FILLUNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--%s"

L_.str.1:                               ## @.str.1
	.asciz	"\n--%s"

	.no_dead_strip	_multipart_buffer_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multipart_buffer_new
_multipart_buffer_new:                  ; @multipart_buffer_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #64
	bl	_ecalloc
	mov	x19, x0
	add	w8, w20, #6
Lloh0:
	adrp	x9, _FILLUNIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FILLUNIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w20, w8, w9, gt
	add	w1, w20, #1
	mov	w0, #1
	bl	_ecalloc
	str	x0, [x19]
	str	w20, [x19, #8]
	add	x0, x19, #60
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	mov	x3, x21
	bl	_spprintf
	add	x0, x19, #56
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	x3, x21
	bl	_spprintf
	str	w0, [x19, #12]
	ldr	x8, [x19]
	str	x8, [x19, #16]
	str	xzr, [x19, #48]
	bl	_php_rfc1867_encoding_translation
	add	x1, x19, #32
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #40
	bl	_php_rfc1867_get_detect_order
	b	LBB0_3
LBB0_2:
	stp	xzr, xzr, [x1]
LBB0_3:
	str	xzr, [x19, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FILLUNIT,4,2                   ; @FILLUNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--%s"

l_.str.1:                               ; @.str.1
	.asciz	"\n--%s"

	.no_dead_strip	_multipart_buffer_new
.subsections_via_symbols
