	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lut_set_table
_lut_set_table:                         ## @lut_set_table
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_vsp1_dl_body_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_LUT_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	andl	$-4, %esi
	movq	_VI6_LUT_TABLE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r13, %rdi
	callq	_vsp1_dl_body_write
	incq	%r12
	movl	(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jb	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	4(%rbx), %edi
	movq	%r13, %rsi
	callq	_swap
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r13, %rdi
	callq	_vsp1_dl_body_put
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.comm	_VI6_LUT_TABLE,8,3              ## @VI6_LUT_TABLE
	.no_dead_strip	_lut_set_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lut_set_table
_lut_set_table:                         ; @lut_set_table
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_vsp1_dl_body_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _VI6_LUT_TABLE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VI6_LUT_TABLE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	and	x9, x23, #0xfffffffc
	add	x1, x8, x9
	ldr	x8, [x21]
	ldr	w2, [x8, x23]
	mov	x0, x20
	bl	_vsp1_dl_body_write
	add	x24, x24, #1
	ldr	w8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_swap
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_vsp1_dl_body_put
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.comm	_VI6_LUT_TABLE,8,3              ; @VI6_LUT_TABLE
	.no_dead_strip	_lut_set_table
.subsections_via_symbols
