	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wndwc57e_ilut
_wndwc57e_ilut:                         ## @wndwc57e_ilut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rsi), %rax
	movl	(%rax), %eax
	andl	$-4, %eax
	xorl	%ecx, %ecx
	cmpl	$1024, %eax                     ## imm = 0x400
	sete	%cl
	movl	$261, %eax                      ## imm = 0x105
	movl	$1029, %edx                     ## imm = 0x405
	cmovel	%eax, %edx
	movl	$2, %eax
	subl	%ecx, %eax
	movl	%eax, (%rsi)
	movl	%edx, 4(%rsi)
	movq	$0, 16(%rsi)
	movq	_wndwc57e_ilut_load@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wndwc57e_ilut_load,4,2         ## @wndwc57e_ilut_load
	.no_dead_strip	_wndwc57e_ilut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wndwc57e_ilut
lCPI0_0:
	.long	2                               ; 0x2
	.long	1029                            ; 0x405
lCPI0_1:
	.long	1                               ; 0x1
	.long	261                             ; 0x105
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wndwc57e_ilut:                         ; @wndwc57e_ilut
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #24]
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffc
	cmp	w8, #1024
	cset	w8, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	d2, [x8, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x1]
	str	xzr, [x1, #16]
Lloh4:
	adrp	x8, _wndwc57e_ilut_load@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wndwc57e_ilut_load@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wndwc57e_ilut_load,4,2         ; @wndwc57e_ilut_load
	.no_dead_strip	_wndwc57e_ilut
.subsections_via_symbols
