	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm63_lut_looks_bad
_lm63_lut_looks_bad:                    ## @lm63_lut_looks_bad
	.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, %r12
	movq	%rdi, %r15
	leaq	24(%rsi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_lm63_update_lut
	movl	(%r12), %r8d
	cmpl	$2, %r8d
	movl	$1, %esi
	cmovll	%esi, %r8d
	movl	$1, %r9d
	subq	%r8, %r9
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ebx
	leaq	(%r9,%rdi), %rsi
	cmpq	$2, %rsi
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdi, %rcx
	movq	8(%r12), %rsi
	movq	-8(%rsi,%rdi,8), %rdi
	cmpq	(%rsi,%rcx,8), %rdi
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movq	8(%rax,%rcx,8), %rdx
	leal	1(%rbx), %esi
	leaq	1(%rcx), %rdi
	cmpq	16(%rax,%rcx,8), %rdx
	jle	LBB0_1
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_warn
	jmp	LBB0_6
LBB0_2:
	movl	%r8d, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	(%r12), %ebx
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lookup table doesn't look sane (check entries %d and %d)\n"

	.no_dead_strip	_lm63_lut_looks_bad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm63_lut_looks_bad
_lm63_lut_looks_bad:                    ; @lm63_lut_looks_bad
	.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	x22, x0
	add	x20, x1, #24
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_lm63_update_lut
	mov	x10, #0
	ldr	w8, [x19]
	cmp	w8, #1
	csinc	w21, w8, wzr, gt
	sub	x8, x21, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x10
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x9, x10
	ldr	x10, [x19, #8]
	add	x10, x10, x9, lsl #3
	ldp	x11, x10, [x10, #8]
	cmp	x11, x10
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x19, #16]
	add	x10, x10, x9, lsl #3
	ldp	x11, x12, [x10, #24]
	add	x10, x9, #1
	cmp	x11, x12
	b.le	LBB0_1
LBB0_4:
	add	w3, w9, #2
	add	w21, w9, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_warn
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19]
	cmp	w21, w8
	cset	w0, ne
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lookup table doesn't look sane (check entries %d and %d)\n"

	.no_dead_strip	_lm63_lut_looks_bad
.subsections_via_symbols
