	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realloc_argv
_realloc_argv:                          ## @realloc_argv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %eax
	leal	(%rax,%rax), %ebx
	testl	%eax, %eax
	movl	$8, %eax
	cmovel	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	cmoveq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edx
	shll	$3, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	%ebx, (%r14)
LBB0_3:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.no_dead_strip	_realloc_argv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realloc_argv
_realloc_argv:                          ; @realloc_argv
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	lsl	w9, w8, #1
	mov	w10, #8
	cmp	w8, #0
	csel	w21, w10, w9, eq
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_kmalloc_array
	mov	x22, x0
	cbz	x19, LBB0_3
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	lsl	w2, w8, #3
	mov	x0, x22
	mov	x1, x19
	bl	_memcpy
	str	w21, [x20]
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.no_dead_strip	_realloc_argv
.subsections_via_symbols
