	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bytepad
_bytepad:                               ## @bytepad
	.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	%r9d, %ebx
	movq	%r8, %r13
	movl	%ecx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	16(%rbp), %r14d
	movb	$1, (%rdi)
	addq	$2, %rdi
	movb	%r14b, 1(%r12)
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	leaq	(%r12,%rax), %r15
	addq	$2, %r15
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %eax
	addq	%rax, %r15
LBB0_3:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, %eax
	subl	%r12d, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r14d, %ebx
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.5:
	subl	%r15d, %r12d
	addl	%ebx, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	%ebx, (%r13)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bytepad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bytepad
_bytepad:                               ; @bytepad
	.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	x20, x6
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x19, x1
	mov	x22, x0
	mov	w8, #1
	strb	w8, [x0]
	strb	w6, [x0, #1]
	add	x25, x0, #2
	mov	x0, x25
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	add	x21, x25, w21, sxtw
	cbz	x24, LBB0_3
; %bb.1:
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	add	x21, x21, w23, uxtw
LBB0_3:
	sub	w8, w21, w22
	cmp	w20, w8
	csel	w9, w20, w8, gt
	cmp	w8, w20
	cinc	w10, w20, gt
	sub	w9, w9, w10
	cmp	w20, #1
	csinc	w10, w20, wzr, hi
	cmp	w8, w20
	udiv	w9, w9, w10
	cinc	w9, w9, gt
	add	w10, w9, #1
	mov	x9, x20
	cmp	w10, #4
	b.lo	LBB0_8
; %bb.4:
	mov	w12, #0
	and	w11, w10, #0xfffffffc
	madd	w9, w11, w20, w20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w12, #4
	cmp	w12, w11
	b.ne	LBB0_5
; %bb.6:
	cmp	w10, w11
	b.ne	LBB0_8
; %bb.7:
	mul	w22, w11, w20
	b	LBB0_10
LBB0_8:
	sub	w22, w9, w20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, w20
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_10:
	sub	w2, w22, w8
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	str	w22, [x19]
	mov	w0, #1
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bytepad
.subsections_via_symbols
