	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function callback
_callback:                              ## @callback
	.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
	movq	_buf_w@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_buf_r@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	subl	%eax, %ecx
	movq	_BUF_MASK@GOTPCREL(%rip), %rdi
	andl	(%rdi), %ecx
	movq	%rsi, %r14
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	cmpl	%ebx, %ecx
	cmovgel	%ebx, %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movslq	%eax, %rsi
	movq	_BUF_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r15
	subq	%rsi, %r15
	movl	%ecx, %r13d
	subl	%r15d, %r13d
	jle	LBB0_2
## %bb.3:
	movq	_buf@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	(%r15,%r15), %rdx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	leaq	(%r14,%r15,8), %r14
	movl	$0, (%r12)
	subl	%r15d, %ebx
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, %r13d
LBB0_4:
	movq	_buf@GOTPCREL(%rip), %rcx
	movslq	%eax, %rsi
	addq	(%rcx), %rsi
	leal	(%r13,%r13), %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	subl	%r13d, %ebx
	addl	(%r12), %r13d
	leaq	(%r14,%rax,4), %r14
	movq	_BUF_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	%r13d, (%r12)
LBB0_5:
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.7:
	addl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf_w,4,2                      ## @buf_w
	.comm	_buf_r,4,2                      ## @buf_r
	.comm	_BUF_MASK,4,2                   ## @BUF_MASK
	.comm	_BUF_LEN,4,2                    ## @BUF_LEN
	.comm	_buf,8,3                        ## @buf
	.no_dead_strip	_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function callback
_callback:                              ; @callback
	.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	x19, x1
Lloh0:
	adrp	x8, _buf_w@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buf_w@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x22, _buf_r@GOTPAGE
Lloh4:
	ldr	x22, [x22, _buf_r@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _BUF_MASK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BUF_MASK@GOTPAGEOFF]
	ldr	w10, [x23]
	sub	w9, w9, w8
	and	w9, w9, w10
	cmp	w2, #0
	cinc	w10, w2, lt
	asr	w21, w10, #1
	cmp	w9, w21
	csel	w24, w9, w21, lt
	cmp	w24, #1
	b.lt	LBB0_4
; %bb.1:
Lloh7:
	adrp	x9, _BUF_LEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BUF_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sub	w27, w9, w8
	subs	w26, w24, w27
Lloh10:
	adrp	x25, _buf@GOTPAGE
Lloh11:
	ldr	x25, [x25, _buf@GOTPAGEOFF]
	b.le	LBB0_3
; %bb.2:
	sxtw	x8, w8
	ldr	x9, [x25]
	add	x1, x9, x8
	lsl	w20, w27, #1
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
	mov	w8, #0
	str	wzr, [x22]
	sub	w21, w21, w27
	mov	x24, x26
	add	x19, x19, w20, sxtw #2
LBB0_3:
	ldr	x9, [x25]
	add	x1, x9, w8, sxtw
	lsl	w20, w24, #1
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
	add	x19, x19, w20, sxtw #2
	ldr	w8, [x22]
	ldr	w9, [x23]
	add	w8, w8, w24
	and	w8, w8, w9
	str	w8, [x22]
	sub	w21, w21, w24
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.5:
	lsl	w2, w21, #1
	mov	x0, x19
	mov	w1, #0
	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
	b	_memset
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_buf_w,4,2                      ; @buf_w
	.comm	_buf_r,4,2                      ; @buf_r
	.comm	_BUF_MASK,4,2                   ; @BUF_MASK
	.comm	_BUF_LEN,4,2                    ; @BUF_LEN
	.comm	_buf,8,3                        ; @buf
	.no_dead_strip	_callback
.subsections_via_symbols
