	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_buffer
_update_buffer:                         ## @update_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_inst_buf_index@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_inst_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %ebx
	movl	8(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_assign_pipes
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, (%r15)
	movq	(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	(%r12), %rax
	movl	%ebx, %r14d
	movl	%ebx, 4(%rax)
	movq	(%r12), %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 8(%rax)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_assign_pipes
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	movl	$1, (%r15)
	movq	(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	(%r12), %rax
	movl	%r14d, 4(%rax)
	movq	(%r12), %rax
	movl	%ebx, 8(%rax)
	movl	%r14d, %r13d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_assign_pipes
	testq	%rax, %rax
	je	LBB0_18
## %bb.22:
	xorl	%eax, %eax
	callq	_SLJIT_UNREACHABLE
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SLJIT_UNREACHABLE              ## TAILCALL
LBB0_1:
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_get_bundle_bit
	orl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	$0, (%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_6:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_get_bundle_bit
	orl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$3, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
## %bb.11:
	movq	(%r12), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	$1, (%r15)
	jmp	LBB0_14
LBB0_18:
	movl	%r13d, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_21
## %bb.19:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_get_bundle_bit
	orl	%eax, %r14d
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_20
LBB0_21:
	movq	(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	(%r12), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	jmp	LBB0_16
LBB0_12:
	movq	(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	$1, (%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_SLJIT_UNREACHABLE
LBB0_14:
	movq	%rbx, %rdi
LBB0_15:
	movl	%r13d, %esi
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_push_inst                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_inst_buf_index,4,2             ## @inst_buf_index
	.comm	_inst_buf,8,3                   ## @inst_buf
	.no_dead_strip	_update_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_buffer
_update_buffer:                         ; @update_buffer
	.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, x0
Lloh0:
	adrp	x21, _inst_buf_index@GOTPAGE
Lloh1:
	ldr	x21, [x21, _inst_buf_index@GOTPAGEOFF]
	ldr	w26, [x21]
Lloh2:
	adrp	x22, _inst_buf@GOTPAGE
Lloh3:
	ldr	x22, [x22, _inst_buf@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	w20, w24, [x8]
	ldr	w23, [x8, #8]
	bl	_assign_pipes
	cbz	x0, LBB0_4
; %bb.1:
	sub	w25, w26, #1
	str	w25, [x21]
	ldr	x8, [x22]
	str	w20, [x8]
	ldr	x8, [x22]
	str	w24, [x8, #4]
	ldr	x8, [x22]
	str	w23, [x8, #8]
	bl	_assign_pipes
	cbz	x0, LBB0_8
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x22]
	str	w20, [x8]
	ldr	x8, [x22]
	str	w24, [x8, #4]
	ldr	x8, [x22]
	str	w23, [x8, #8]
	bl	_assign_pipes
	cbz	x0, LBB0_14
; %bb.3:
	bl	_SLJIT_UNREACHABLE
	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	_SLJIT_UNREACHABLE
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x23
	bl	_get_bundle_bit
	orr	w20, w0, w20
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_6
; %bb.7:
	str	wzr, [x21]
	b	LBB0_24
LBB0_8:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.9:
	mov	x25, #0
	mov	x27, #0
	mov	w20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x25
	bl	_get_bundle_bit
	orr	w20, w0, w20
	add	x27, x27, #1
	ldrsw	x8, [x21]
	add	x25, x25, #4
	cmp	x27, x8
	b.lt	LBB0_10
; %bb.11:
	cmp	w26, #2
	b.eq	LBB0_19
LBB0_12:
	cmp	w26, #3
	b.ne	LBB0_21
; %bb.13:
	ldr	x8, [x22]
	str	w23, [x8]
	b	LBB0_20
LBB0_14:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.15:
	mov	x26, #0
	mov	x27, #0
	mov	w20, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x26
	bl	_get_bundle_bit
	orr	w20, w0, w20
	add	x27, x27, #1
	ldrsw	x8, [x21]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_16
	b	LBB0_23
LBB0_17:
	mov	w20, #0
	str	wzr, [x21]
	b	LBB0_24
LBB0_18:
	mov	w20, #0
	cmp	w26, #2
	b.ne	LBB0_12
LBB0_19:
	ldr	x8, [x22]
	str	w24, [x8]
LBB0_20:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_24
LBB0_21:
	bl	_SLJIT_UNREACHABLE
	b	LBB0_24
LBB0_22:
	mov	w20, #0
LBB0_23:
	ldr	x8, [x22]
	str	w24, [x8]
	ldr	x8, [x22]
	str	w23, [x8, #4]
	str	w25, [x21]
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	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	_push_inst
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_inst_buf_index,4,2             ; @inst_buf_index
	.comm	_inst_buf,8,3                   ; @inst_buf
	.no_dead_strip	_update_buffer
.subsections_via_symbols
